esp8266-yeelight-switch icon indicating copy to clipboard operation
esp8266-yeelight-switch copied to clipboard

Add support for returning bulb status

Open denis-stepanov opened this issue 5 years ago • 1 comments

On demand, show the current state of the bulb.

denis-stepanov avatar Jan 05 '19 23:01 denis-stepanov

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.

denis-stepanov avatar Nov 28 '21 21:11 denis-stepanov