Aircoookie/Espalexa

Updating light status in the alexa app

TERM4X opened this issue · 1 comments

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

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

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