question

codekorenge avatar image
codekorenge asked

Unable to schedule Thermostat with mode (thermostatMode not targetSetpoint)

Hi,

I'm developing an AC controller. I want to set my AC to AUTO for 20 minutes - fails! But setting to temperature works.

  • set Lig Aircond to auto for 20 minutes - fails, Err:"I cannot set a hold for the mode on your thermostat. Please try again with a specific temperature."
  • set Lig Aircond to twenty for 20 minutes - works


Please help, I need to move on solving the above.

Here's my discovery:


"endpoints":[
{
"endpointId":"lg-dev-00001-ac-0001",
"friendlyName":"Lig Aircond",
"description":"Lig Smart Aircond",
"manufacturerName":"Lig SB",
"displayCategories":[
"THERMOSTAT",
"TEMPERATURE_SENSOR"
],
"cookie":{
"denoted":"Livingroom"
},
"capabilities":[
{
"type":"AlexaInterface",
"interface":"Alexa",
"version":"3"
},
{
"type":"AlexaInterface",
"interface":"Alexa.EndpointHealth",
"version":"3",
"properties":{
"supported":[
{
"name":"connectivity"
}
],
"proactivelyReported":False,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.TemperatureSensor",
"version":"3",
"properties":{
"supported":[
{
"name":"temperature"
}
],
"proactivelyReported":False,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.PowerController",
"version":"3",
"properties":{
"supported":[
{
"name":"powerState"
},
{
"name":"start"
},
{
"name":"duration"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.ThermostatController",
"version":"3",
"properties":{
"supported":[
{
"name":"targetSetpoint"
},
{
"name":"thermostatMode"
}
],
"proactivelyReported":False,
"retrievable":True
},
"configuration":{
"supportsScheduling":True,
"supportedModes":[
"HEAT",
"AUTO",
"ECO",
"OFF"
]
}
}
]
}
]







thermostatsmart-home
10 |5000 characters needed characters left characters exceeded

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

1 Answer

Jason@Amazon avatar image
Jason@Amazon answered

The schedule parameter is only for the SetTargetTemperature directive:

https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-thermostatcontroller.html#settargettemperature-directive

You'll see that schedule parameter doesn't exist for the SetThermostatMode directive:

https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-thermostatcontroller.html#setthermostatmode-directive

10 |5000 characters needed characters left characters exceeded

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