Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Example automation using snapshot
- - alias: "Window opened"
- trigger:
- - platform: state
- entity_id: binary_sensor.window
- from: "off"
- to: "on"
- condition: []
- action:
- - service: scene.create
- data:
- scene_id: before
- snapshot_entities:
- - climate.ecobee
- - light.ceiling_lights
- - service: light.turn_off
- target:
- entity_id: light.ceiling_lights
- - service: climate.set_hvac_mode
- target:
- entity_id: climate.ecobee
- data:
- hvac_mode: "off"
- - alias: "Window closed"
- trigger:
- - platform: state
- entity_id: binary_sensor.window
- from: "on"
- to: "off"
- condition: []
- action:
- - service: scene.turn_on
- target:
- entity_id: scene.before
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement