esp8266-yeelight-switch
esp8266-yeelight-switch copied to clipboard
Add support for returning bulb status
On demand, show the current state of the bulb.
In v2.0.0 a method YBulb::getPower()
was added, and the appropriate interface was implemented on the web. Still, it relies on the status returned from discovery + on the record of the switch's own operations. If the bulb is acted via some other channel, the status will be shown incorrectly. Maybe bulbs should be polled from time to time to sync their status.