mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 02:46:53 +00:00
Add example automation using the schedule helper (#30668)
* Added example automation using the schedule helper. * Correct example title. * Apply suggestions from code review Co-authored-by: Franck Nijhof <frenck@frenck.nl> --------- Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
262cf36b2c
commit
80128c159a
@ -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`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user