Initial Commit
This commit is contained in:
12
climate.yaml
Normal file
12
climate.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
- 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user