diff --git a/source/_integrations/schedule.markdown b/source/_integrations/schedule.markdown index 1ad04a09f4b..f6025ffeeb8 100644 --- a/source/_integrations/schedule.markdown +++ b/source/_integrations/schedule.markdown @@ -101,6 +101,23 @@ automations and templates. | Attribute | Description | | ----- | ----- | | `next_event` | A datetime object containing the next time the schedule is going to change state. | + +### Automation example + +A schedule creates an on/off (binary) sensor within the times set. Using the thermostat schedule example above, you can turn on your thermostat: + +```yaml +trigger: + - platform: state + entity_id: + - binary_sensor.thermostat_schedule + to: "on" + action: + - service: climate.turn_on + target: + entity_id: climate.thermostat +``` + ### Services Available service: `schedule.reload`.