Files
homeAssistant/climate.yaml
2019-06-22 23:10:30 -04:00

12 lines
316 B
YAML

- alias: 'Set Away Mode'
trigger:
platform: state
entity_id: device_tracker.dan_dansphone
to: 'not_home'
condition: template
value_template: "{% if not is_state('thermostat_current_status', 'off') %}true{% endif %}"
action:
- service: set_away_mode
away_mode: on