Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - id: '1602534906807'
- alias: Notify me if the door opens and I am not at home
- description: ''
- trigger:
- - platform: state
- entity_id: binary_sensor.dining_room_contact_contact
- to: 'on'
- from: 'off'
- - platform: state
- entity_id: binary_sensor.atalier_balcony_contact_contact
- from: 'off'
- to: 'on'
- - platform: state
- entity_id: binary_sensor.atalier_contact_contact
- from: 'off'
- to: 'on'
- - platform: state
- entity_id: binary_sensor.nursery_contact_contact
- from: 'off'
- to: 'on'
- - platform: state
- entity_id: binary_sensor.front_door_contact_contact
- from: 'off'
- to: 'on'
- condition:
- - condition: state
- entity_id: person.max
- state: Away
- action:
- - data:
- message: door opened
- service: notify.mobile_app_gm1917
- mode: single
- - alias: 'Record sensors on GSheets'
- trigger:
- platform: time_pattern
- minutes: 0
- action:
- - service: shell_command.log2gsheets
- data_template:
- atalier_temp_sensor: '{{states.sensor.atalier_temperature.state}}'
- atalier_humidity_sensor: '{{states.sensor.atalier_humidity.state}}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement