I want to create a WiFi controlled light switch with NodeMCU and a relay board. But the problem is, that NodeMCU usualy takes +- 90mA, so a battery is probably not a good choice. Is there any way to connect the NodeMCU to the power? (It is light on the ceiling - no sockets there) I thought of cutting the wires and connecting my old USB charger. Have someone tried it? Will it be legal in EU?
Thanks for all replies