Espalexa icon indicating copy to clipboard operation
Espalexa copied to clipboard

Updating light status in the alexa app

Open TERM4X opened this issue 3 years ago • 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

TERM4X avatar Jan 22 '22 10:01 TERM4X

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

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

orifer avatar Jul 29 '22 15:07 orifer