Aircoookie/Espalexa

How to make a voice command turn a relay on and off another command and another relay

Opened this issue · 2 comments

I have a problem.
That way it's already working, but when I perform the voice or manual command via the button, it's not disabling the state in Alexa's App.
For example,
when I say "Ventilador 1 On", I want to disa
Captura de tela 2021-11-13 200210
WhatsApp Image 2021-11-13 at 20 03 44
ble the other "ventilador 2, 3" in Alexa's App, "OFF"

I can't read text on your picture, but I think you have to create your own device, only this is the way to make update to alexa.

You can get a pointer to the other devices (ventilador 2 or 3) and turn them off in devFunc1Changed(). For example, espalexa->getDevice(1)->setState(false) will turn off ventilador 2.