Re:I bought some awful light bulbs so you don't have to
by bryanlarsen on Thursday February 25, 2016 @02:58PM
(#11177310)
This problem has been solved for a long time. You can use long polling, websockets, server sent events or some of the older hacks that preceded those mechanisms. Heck, you don't have to use HTTP, you can just use a long lived TCP connection.
Some of these will have to poll fairly frequently. For example, users expect lights to go on the moment they flip a switch, not 0.1 seconds later.
Possible? Yes, but taking duty cycle into account, that 5W lightbulb may use more power while switched off than while switched on.