How do I create a Timer(schedule) on a Thermostat using the API
Posted: Thursday 29 January 2026 18:30
I would like to add a timer to a Thermostat Setpoint using the api but the "addtimer" api command does not an to
When a Timer is created on a Thermostat Setpoint device through the UI it is possible to include a setpoint in the values: I can inspect the timer information that has been created using the "getschedules" API command:
"Active" : "true",
"Date" : "",
"Days" : 128,
"DevName" : "Test Setpoint",
"DeviceRowID" : 607,
"IsThermostat" : "true",
"MDay" : 0,
"Month" : 0,
"Occurence" : 0,
"ScheduleDate" : "2026-01-30 14:48:00",
"Temperature" : "25.0",
"Time" : "06:00",
"TimerID" : 1,
"TimerType" : 2,
"TimerTypeStr" : "On Time",
"Type" : "Device"
When I compare this data to the data from a timer created on a switch, I can see differences with the available properties:
"IsThermostat" is set to false for the switch
"Temperature" does not exist for a switch
A switch timer has options for "Level" and "TimerCmd" that are not available to the Thermostat timer
When I create a timer for this Thermostat Setpoint device using the "addtimer" API call, the timer is created with the "IsThermostat" value set to false and no option for adding a value for "Temperature".
Is there a way to create a timer on a Thermostat Setpoint device, which sets the temperature, using API?
When a Timer is created on a Thermostat Setpoint device through the UI it is possible to include a setpoint in the values: I can inspect the timer information that has been created using the "getschedules" API command:
"Active" : "true",
"Date" : "",
"Days" : 128,
"DevName" : "Test Setpoint",
"DeviceRowID" : 607,
"IsThermostat" : "true",
"MDay" : 0,
"Month" : 0,
"Occurence" : 0,
"ScheduleDate" : "2026-01-30 14:48:00",
"Temperature" : "25.0",
"Time" : "06:00",
"TimerID" : 1,
"TimerType" : 2,
"TimerTypeStr" : "On Time",
"Type" : "Device"
When I compare this data to the data from a timer created on a switch, I can see differences with the available properties:
"IsThermostat" is set to false for the switch
"Temperature" does not exist for a switch
A switch timer has options for "Level" and "TimerCmd" that are not available to the Thermostat timer
When I create a timer for this Thermostat Setpoint device using the "addtimer" API call, the timer is created with the "IsThermostat" value set to false and no option for adding a value for "Temperature".
Is there a way to create a timer on a Thermostat Setpoint device, which sets the temperature, using API?