I have these Aeotec Multisensor 6 devices that are pretty neat, and they have a recess-mounting bracket. They can be battery- or USB-powered. I’d like to USB-power them and recess them in my ceilings, but that would mean installing receptacles in the attic crawl space, and then plugging in a USB adapter and running the cable to the sensor.
My googling suggests this may not be allowed, as it would be “permanently installed.”
For measuring temperature, it might be better for the sensors to be placed on the wall, rather than on the ceiling where it’s hottest. In this case, to neatly power them, I’d have to put a receptacle in the wall, and this would not be allowed, at least not without an access panel. Would it actually be allowed if there was an access panel? I guess in that case it would be more of a cabinet, and thus acceptable, right?
Are there any other alternatives that would be code-compliant?