Announcement: The Alexa Skills Community Is Moving To Stack Overflow

For improved usability and experience, Alexa skills related forum support will be transitioned to Stack Overflow. Effective January 10, 2024, the Amazon Developer Forums will no longer be available. For continued Alexa skills support you can reach out to us on Stack Overflow or via Contact Us.

question

KalpaTest avatar image
KalpaTest asked

Thermostat MODE doesn't work properly with Alexa skill

Thermostat 1.pngThermostat 2.png

Hi all,
we have a strange behaviour on Thermostat skill controller.
Using two different Thermostat, mode property (HEAT, COOL, AUTO. ON-OFF) can be set via vocal commands, but Alexa skill doesn't display setting menu tapping on current mode label.

Even more strange, the behaviuor is dfferent using two account based on US region and non-US regiom. Deep in detail


Case Thermostat 1:
the behaviuor is the same using on US region and non-US.
Alexa skill displays current mode value that IS NOT tappable (NO select menu with HEAT, COOL, AUTO. ON-OFF values)
Mode setting works fine triggered by vocal commands with both accounts.


Case Thermostat 2:
the behaviuor is the different using on US region and non-US.
Using US account, Alexa skill displays current mode value that IS tappable (select menu appears with HEAT, COOL, AUTO. ON-OFF).
Using non-US account, Alexa skill displays works like Tjermosta 1 case (NO select menu)
In this case also, mode setting works fine triggered by vocal commands with both accounts.


Discovery JSON follows below.

Could anyone help ?
Thanks a lot.


{
   "event":{
      "header":{
         "namespace":"Alexa.Discovery",
         "name":"Discover.Response",
         "payloadVersion":"3",
         "messageId":"b2c7a4b4-0f56-40ae-b9ec-8922cf5b520d"
      },
      "payload":{
         "endpoints":[
            {
               "endpointId":"012519AFT00017_8",
               "friendlyName":"termostato cucina",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "THERMOSTAT"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"targetSetpoint"
                           },
                           {
                              "name":"thermostatMode"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "configuration":{
                        "supportsScheduling":true
                     },
                     "interface":"Alexa.ThermostatController"
                  },
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"temperature"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.TemperatureSensor"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1019",
               "friendlyName":"Contatto",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "CONTACT_SENSOR"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"detectionState"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.ContactSensor"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1023",
               "friendlyName":"Angelone",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "LIGHT"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"powerState"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.PowerController"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1030",
               "friendlyName":"Temperatura Clima",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "TEMPERATURE_SENSOR"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"temperature"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.TemperatureSensor"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1035",
               "friendlyName":"Temperatura Sensori",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "TEMPERATURE_SENSOR"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"temperature"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.TemperatureSensor"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1039",
               "friendlyName":"Contatto Clima",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "CONTACT_SENSOR"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"detectionState"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.ContactSensor"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1040",
               "friendlyName":"Contatto Sensori",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "CONTACT_SENSOR"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"detectionState"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.ContactSensor"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1041",
               "friendlyName":"OnOff Varie",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "SWITCH"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"powerState"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.PowerController"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1010",
               "friendlyName":"Thermostat2",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "THERMOSTAT"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"targetSetpoint"
                           },
                           {
                              "name":"thermostatMode"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "configuration":{
                        "supportsScheduling":true
                     },
                     "interface":"Alexa.ThermostatController"
                  },
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"temperature"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.TemperatureSensor"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1012",
               "friendlyName":"john",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "LIGHT"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"SetColor"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.ColorController"
                  },
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"brightness"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.BrightnessController"
                  },
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"powerState"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.PowerController"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1013",
               "friendlyName":"Blind2",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "INTERIOR_BLIND"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "instance":"height",
                     "properties":{
                        "supported":[
                           {
                              "name":"rangeValue"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "configuration":{
                        "supportedRange":{
                           "minimumValue":0,
                           "maximumValue":100,
                           "precision":5
                        },
                        "unitOfMeasure":"Alexa.Unit.Percent"
                     },
                     "semantics":{
                        "actionMappings":[
                           {
                              "actions":[
                                 "Alexa.Actions.Open",
                                 "Alexa.Actions.Raise"
                              ],
                              "directive":{
                                 "payload":{
                                    "rangeValue":100
                                 },
                                 "name":"SetRangeValue"
                              },
                              "@type":"ActionsToDirective"
                           },
                           {
                              "actions":[
                                 "Alexa.Actions.Close",
                                 "Alexa.Actions.Lower"
                              ],
                              "directive":{
                                 "payload":{
                                    "rangeValue":0
                                 },
                                 "name":"SetRangeValue"
                              },
                              "@type":"ActionsToDirective"
                           }
                        ],
                        "stateMappings":[
                           {
                              "states":[
                                 "Alexa.States.Open"
                              ],
                              "range":{
                                 "minimumValue":1,
                                 "maximumValue":100
                              },
                              "@type":"StatesToRange"
                           },
                           {
                              "states":[
                                 "Alexa.States.Closed"
                              ],
                              "@type":"StatesToValue",
                              "value":0
                           }
                        ]
                     },
                     "capabilityResources":{
                        "friendlyNames":[
                           {
                              "value":{
                                 "assetId":"Alexa.Setting.Opening"
                              },
                              "@type":"asset"
                           }
                        ]
                     },
                     "interface":"Alexa.RangeController"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1014",
               "friendlyName":"Blind6",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "INTERIOR_BLIND"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "instance":"height",
                     "properties":{
                        "supported":[
                           {
                              "name":"rangeValue"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "configuration":{
                        "supportedRange":{
                           "minimumValue":0,
                           "maximumValue":100,
                           "precision":5
                        },
                        "unitOfMeasure":"Alexa.Unit.Percent"
                     },
                     "semantics":{
                        "actionMappings":[
                           {
                              "actions":[
                                 "Alexa.Actions.Open",
                                 "Alexa.Actions.Raise"
                              ],
                              "directive":{
                                 "payload":{
                                    "rangeValue":100
                                 },
                                 "name":"SetRangeValue"
                              },
                              "@type":"ActionsToDirective"
                           },
                           {
                              "actions":[
                                 "Alexa.Actions.Close",
                                 "Alexa.Actions.Lower"
                              ],
                              "directive":{
                                 "payload":{
                                    "rangeValue":0
                                 },
                                 "name":"SetRangeValue"
                              },
                              "@type":"ActionsToDirective"
                           }
                        ],
                        "stateMappings":[
                           {
                              "states":[
                                 "Alexa.States.Open"
                              ],
                              "range":{
                                 "minimumValue":1,
                                 "maximumValue":100
                              },
                              "@type":"StatesToRange"
                           },
                           {
                              "states":[
                                 "Alexa.States.Closed"
                              ],
                              "@type":"StatesToValue",
                              "value":0
                           }
                        ]
                     },
                     "capabilityResources":{
                        "friendlyNames":[
                           {
                              "value":{
                                 "assetId":"Alexa.Setting.Opening"
                              },
                              "@type":"asset"
                           }
                        ]
                     },
                     "interface":"Alexa.RangeController"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1003",
               "friendlyName":"garage",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "LIGHT"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"powerState"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.PowerController"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1005",
               "friendlyName":"Thermostat3",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "THERMOSTAT"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"targetSetpoint"
                           },
                           {
                              "name":"thermostatMode"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "configuration":{
                        "supportsScheduling":true
                     },
                     "interface":"Alexa.ThermostatController"
                  },
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "properties":{
                        "supported":[
                           {
                              "name":"temperature"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "interface":"Alexa.TemperatureSensor"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1006",
               "friendlyName":"Blind1",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "INTERIOR_BLIND"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "instance":"height",
                     "properties":{
                        "supported":[
                           {
                              "name":"rangeValue"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "configuration":{
                        "supportedRange":{
                           "minimumValue":0,
                           "maximumValue":100,
                           "precision":5
                        },
                        "unitOfMeasure":"Alexa.Unit.Percent"
                     },
                     "semantics":{
                        "actionMappings":[
                           {
                              "actions":[
                                 "Alexa.Actions.Open",
                                 "Alexa.Actions.Raise"
                              ],
                              "directive":{
                                 "payload":{
                                    "rangeValue":100
                                 },
                                 "name":"SetRangeValue"
                              },
                              "@type":"ActionsToDirective"
                           },
                           {
                              "actions":[
                                 "Alexa.Actions.Close",
                                 "Alexa.Actions.Lower"
                              ],
                              "directive":{
                                 "payload":{
                                    "rangeValue":0
                                 },
                                 "name":"SetRangeValue"
                              },
                              "@type":"ActionsToDirective"
                           }
                        ],
                        "stateMappings":[
                           {
                              "states":[
                                 "Alexa.States.Open"
                              ],
                              "range":{
                                 "minimumValue":1,
                                 "maximumValue":100
                              },
                              "@type":"StatesToRange"
                           },
                           {
                              "states":[
                                 "Alexa.States.Closed"
                              ],
                              "@type":"StatesToValue",
                              "value":0
                           }
                        ]
                     },
                     "capabilityResources":{
                        "friendlyNames":[
                           {
                              "value":{
                                 "assetId":"Alexa.Setting.Opening"
                              },
                              "@type":"asset"
                           }
                        ]
                     },
                     "interface":"Alexa.RangeController"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1007",
               "friendlyName":"Blind4",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "INTERIOR_BLIND"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "instance":"height",
                     "properties":{
                        "supported":[
                           {
                              "name":"mode"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "configuration":{
                        "ordered":false,
                        "supportedModes":[
                           {
                              "value":"OPEN",
                              "modeResources":{
                                 "friendlyNames":[
                                    {
                                       "value":{
                                          "assetId":"Alexa.Value.Open"
                                       },
                                       "@type":"asset"
                                    }
                                 ]
                              }
                           },
                           {
                              "value":"CLOSED",
                              "modeResources":{
                                 "friendlyNames":[
                                    {
                                       "value":{
                                          "assetId":"Alexa.Value.Close"
                                       },
                                       "@type":"asset"
                                    }
                                 ]
                              }
                           }
                        ]
                     },
                     "semantics":{
                        "actionMappings":[
                           {
                              "actions":[
                                 "Alexa.Actions.Open",
                                 "Alexa.Actions.Raise"
                              ],
                              "directive":{
                                 "payload":{
                                    "mode":"OPEN"
                                 },
                                 "name":"SetMode"
                              },
                              "@type":"ActionsToDirective"
                           },
                           {
                              "actions":[
                                 "Alexa.Actions.Close",
                                 "Alexa.Actions.Lower"
                              ],
                              "directive":{
                                 "payload":{
                                    "mode":"CLOSED"
                                 },
                                 "name":"SetMode"
                              },
                              "@type":"ActionsToDirective"
                           }
                        ],
                        "stateMappings":[
                           {
                              "states":[
                                 "Alexa.States.Open"
                              ],
                              "@type":"StatesToValue",
                              "value":"OPEN"
                           },
                           {
                              "states":[
                                 "Alexa.States.Closed"
                              ],
                              "@type":"StatesToValue",
                              "value":"CLOSED"
                           }
                        ]
                     },
                     "capabilityResources":{
                        "friendlyNames":[
                           {
                              "value":{
                                 "assetId":"Alexa.Setting.Opening"
                              },
                              "@type":"asset"
                           }
                        ]
                     },
                     "interface":"Alexa.ModeController"
                  }
               ]
            },
            {
               "endpointId":"A32304FBB01136_1016",
               "friendlyName":"Blind5",
               "description":"",
               "manufacturerName":"Manufacturer1",
               "displayCategories":[
                  "INTERIOR_BLIND"
               ],
               "capabilities":[
                  {
                     "type":"AlexaInterface",
                     "version":"3",
                     "instance":"height",
                     "properties":{
                        "supported":[
                           {
                              "name":"mode"
                           }
                        ],
                        "proactivelyReported":true,
                        "retrievable":true
                     },
                     "configuration":{
                        "ordered":false,
                        "supportedModes":[
                           {
                              "value":"OPEN",
                              "modeResources":{
                                 "friendlyNames":[
                                    {
                                       "value":{
                                          "assetId":"Alexa.Value.Open"
                                       },
                                       "@type":"asset"
                                    }
                                 ]
                              }
                           },
                           {
                              "value":"CLOSED",
                              "modeResources":{
                                 "friendlyNames":[
                                    {
                                       "value":{
                                          "assetId":"Alexa.Value.Close"
                                       },
                                       "@type":"asset"
                                    }
                                 ]
                              }
                           }
                        ]
                     },
                     "semantics":{
                        "actionMappings":[
                           {
                              "actions":[
                                 "Alexa.Actions.Open",
                                 "Alexa.Actions.Raise"
                              ],
                              "directive":{
                                 "payload":{
                                    "mode":"OPEN"
                                 },
                                 "name":"SetMode"
                              },
                              "@type":"ActionsToDirective"
                           },
                           {
                              "actions":[
                                 "Alexa.Actions.Close",
                                 "Alexa.Actions.Lower"
                              ],
                              "directive":{
                                 "payload":{
                                    "mode":"CLOSED"
                                 },
                                 "name":"SetMode"
                              },
                              "@type":"ActionsToDirective"
                           }
                        ],
                        "stateMappings":[
                           {
                              "states":[
                                 "Alexa.States.Open"
                              ],
                              "@type":"StatesToValue",
                              "value":"OPEN"
                           },
                           {
                              "states":[
                                 "Alexa.States.Closed"
                              ],
                              "@type":"StatesToValue",
                              "value":"CLOSED"
                           }
                        ]
                     },
                     "capabilityResources":{
                        "friendlyNames":[
                           {
                              "value":{
                                 "assetId":"Alexa.Setting.Opening"
                              },
                              "@type":"asset"
                           }
                        ]
                     },
                     "interface":"Alexa.ModeController"
                  }
               ]
            }
         ]
      }
   }
}


alexa skillsthermostat
thermostat-2.png (337.1 KiB)
thermostat-1.png (343.6 KiB)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers