Advertisement
motsbetes

automations.yaml - app install

Feb 2nd, 2023 (edited)
1,227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.14 KB | None | 0 0
  1. - id: '1602534906807'
  2.   alias: Notify me if the door opens and I am not at home
  3.   description: ''
  4.   trigger:
  5.   - platform: state
  6.     entity_id: binary_sensor.dining_room_contact_contact
  7.     to: 'on'
  8.     from: 'off'
  9.   - platform: state
  10.     entity_id: binary_sensor.atalier_balcony_contact_contact
  11.     from: 'off'
  12.     to: 'on'
  13.   - platform: state
  14.     entity_id: binary_sensor.atalier_contact_contact
  15.     from: 'off'
  16.     to: 'on'
  17.   - platform: state
  18.     entity_id: binary_sensor.nursery_contact_contact
  19.     from: 'off'
  20.     to: 'on'
  21.   - platform: state
  22.     entity_id: binary_sensor.front_door_contact_contact
  23.     from: 'off'
  24.     to: 'on'
  25.   condition:
  26.   - condition: state
  27.     entity_id: person.max
  28.     state: Away
  29.   action:
  30.   - data:
  31.       message: door opened
  32.     service: notify.mobile_app_gm1917
  33.   mode: single
  34.  
  35.  
  36. - alias: 'Record sensors on GSheets'
  37.   trigger:
  38.     platform: time_pattern
  39.     minutes: 0
  40.   action:
  41.     - service: shell_command.log2gsheets
  42.       data_template:
  43.         atalier_temp_sensor: '{{states.sensor.atalier_temperature.state}}'
  44.         atalier_humidity_sensor: '{{states.sensor.atalier_humidity.state}}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement