Advertisement
jrgarrett

Hass Ecobee Home/Away

Jan 14th, 2017
781
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.05 KB | None | 0 0
  1. # Sets thermostat to away mode if all mobile devices are away
  2. - alias: 'Away Mode'
  3.   trigger:
  4.     - platform: state
  5.       entity_id: group.mobile_devices
  6.       from: "home"
  7.       to: "not_home"
  8.   condition:
  9.     - condition: state
  10.       entity_id: group.mobile_devices
  11.       state: "not_home"
  12.     - condition: state
  13.       entity_id: input_boolean.location_override
  14.       state: "off"
  15.   action:
  16.     - service: climate.set_away_mode
  17.       entity_id:
  18.        - climate.downstairs
  19.       data:
  20.         away_mode: true
  21.  
  22. # Sets thermostats to home mode if mobile devices change from away to home
  23. - alias: 'Home Mode'
  24.   trigger:
  25.     - platform: state
  26.       entity_id: group.mobile_devices
  27.       from: "not_home"
  28.       to: "home"
  29.   condition:
  30.     - condition: state
  31.       entity_id: group.mobile_devices
  32.       state: "home"
  33.     - condition: state
  34.       entity_id: input_boolean.location_override
  35.       state: "off"
  36.   action:
  37.     - service: climate.set_away_mode
  38.       entity_id:
  39.        - climate.downstairs
  40.       data:
  41.         away_mode: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement