The weekly_schedule converter allows setting a complex schedule for HVAC thermostats. You can specify the days of the week and a list of transitions (setpoints and times).
Payload Format:
dayofweek: An array of days (e.g., ["monday", "tuesday"]) or an array of objects (e.g., [{"day": "monday"}]).transitions: An array of objects containing:heatSetpoint or heat_setpoint: The target temperature (number).coolSetpoint or cool_setpoint: The target temperature (number).transitionTime: The time of the transition. This can be:- A 24h string in
HH:mm format (e.g., "19:30"). - An object with
hour and minute (e.g., {"hour": 19, "minute": 30}).
Example Payload:
{
"weekly_schedule": {
"dayofweek": [
{"day": "monday"},
{"day": "tuesday"}
],
"transitions": [
{"heatSetpoint": 16, "transitionTime": {"hour": 0, "minute": 0}},
{"heatSetpoint": 20, "transitionTime": "18:00"},
{"heatSetpoint": 16, "transitionTime": "19:30"}
]
}
}
{
"weekly_schedule": {
"dayofweek": [
{"day": "monday"},
{"day": "tuesday"}
],
"transitions": [
{"heatSetpoint": 16, "transitionTime": {"hour": 0, "minute": 0}},
{"heatSetpoint": 20, "transitionTime": "18:00"},
{"heatSetpoint": 16, "transitionTime": "19:30"}
]
}
}