Timeline events
Change a zone once, at a set time in the next seven days.
A timeline event is a one-off change to one or more zones at a future moment: "set my side to 18 °C at 22:30 tonight". It runs once and is gone.
Events or schedules
The steps of a sleep schedule are not timeline events. You cannot list or cancel them here; change them with the schedule operations.
Schedule an event
Schedule timeline event takes the device, the time and the zone changes:
JSON
The answer is the new event:
JSON
Rules
- The time must be in the future, and at most 7 days away.
- Events on the same zone must be at least 5 minutes apart.
tempmust be inside the device'stemperature_rangefrom List devices. Unlike Set zone, a value outside it is refused.- Events run only on the device you are on now, and only on zones that device has.
- An event that cannot run within 30 minutes of its time is skipped, not run late.
- Sending the same event again does not add a second one.
List pending events
List timeline events returns the events on a device that have not run yet. Pass the device id as a query parameter:
Shell
JSON
Cancel events
Cancel timeline events takes the device and one event_id, or several in event_ids:
JSON
Each id gets its own result, and one failing does not stop the others: