Aircoookie / Espalexa

Alexa voice control for ESP8266/ESP32 (including brightness and color!)
MIT License
537 stars 135 forks source link

Updating light status in the alexa app #198

Open TERM4X opened 2 years ago

TERM4X commented 2 years ago

Hello, I'm controlling a light throw the Alexa but also from a button

what I want is to update the brightness level in the alexa app if I change it with the button

EXAMPLE:

If the light was ON and I turn it off from the button, on the Alexa app the light status will change from ON to OFF

orifer commented 2 years ago

You can use a EspalexaDevice object and call the setValue() or setStatus functions to archive this.

d->setStatus(false); d->setValue(255);