sinricpro / sample_messages

Sinric Pro example JSON messages
https://sinric.pro
8 stars 6 forks source link

targetTemperature does'nt handle value "0" correctly #16

Closed sivar2311 closed 4 years ago

sivar2311 commented 4 years ago

1) If targetTemperature is set to "0" there is no value-object in request:

  "payload": {
    "action": "targetTemperature",
    "clientId": "alexa-skill",
    "createdAt": 1571029709,
    "deviceAttributes": [],
    "deviceId": "5d8f5ade41307b450335925d",
    "replyToken": "92a48d0f-1a35-4ea3-82e8-0b438ffdb815",
    "type": "request",
    "value": {}
  }

2) If response is "0", it will be set to -1 automaticly (you can check this via alexa-app)