kakopappa / sinric

Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
https://sinric.com
284 stars 166 forks source link

Create function GetPowerState #454

Open pentahertz opened 3 years ago

pentahertz commented 3 years ago

ceci permettrai de connaitre l'état de l'alimentation ON ou OFF et Alexa dit power outlet 1 is ON or power outlet 1 is OFF

{ "header": { "payloadVersion": 2, "signatureVersion": 1 }, "payload": { "action": "GetPowerState", "clientId": "alexa-skill", "createdAt": 1567860300, "deviceId": "5d737888aea17c30a056d759", "message": "OK outlet is ON", "replyToken": "6ec1f778-e92f-487c-9818-bdbe3438f30e", "success": true, "type": "response", "value": { "state": "On" } }, "signature": { "HMAC": "xxxxxxxx" } }

kakopappa commented 3 years ago

SinricPro.restoreDeviceStates(true);

https://github.com/sinricpro/esp8266-esp32-sdk/blob/master/examples/Switch/MultiSwitch_advance/MultiSwitch_advance.ino#L170

On Wed, 11 Nov 2020 at 1:00 AM pentahertz notifications@github.com wrote:

ceci permettrai de connaitre l'état de l'alimentation ON ou OFF et Alexa dit power outlet 1 is ON or power outlet 1 is OFF

{ "header": { "payloadVersion": 2, "signatureVersion": 1 }, "payload": { "action": "GetPowerState", "clientId": "alexa-skill", "createdAt": 1567860300, "deviceId": "5d737888aea17c30a056d759", "message": "OK outlet is ON", "replyToken": "6ec1f778-e92f-487c-9818-bdbe3438f30e", "success": true, "type": "response", "value": { "state": "On" } }, "signature": { "HMAC": "xxxxxxxx" } }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kakopappa/sinric/issues/454, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZXEE272ZHZ2XQOK7MDSPF5TNANCNFSM4TQ7JUFQ .