Skip to content

Instantly share code, notes, and snippets.

- id: '1587504201931'
alias: Water leak sensor notification
description: ''
trigger:
- entity_id: binary_sensor.water_leak_sensor_water
platform: state
to: wet
condition: []
action:
- data:
@langelguy
langelguy / Ring
Last active April 21, 2020 00:46
- id: doorbell_alert
alias: Doorbell Alert
trigger:
- entity_id: binary_sensor.front_doorbell_ding
platform: state
to: 'on'
condition:
- condition: template
value_template: '{{ (as_timestamp(now()) - as_timestamp(state_attr(''automation.doorbell_alert'',
''last_triggered'') | default(0)) | int > 5)}}'
- id: '1586812692976'
alias: Doorbell Ring to Unlock Front Door
description: ''
trigger:
- entity_id: binary_sensor.front_doorbell_ding
from: 'off'
platform: state
to: 'on'
condition: []
action:
#automations.yaml#
- alias: 'Take picture when Door Bell Pressed'
id: Take_picture_when_Door_Bell_Pressed
initial_state: 'on'
trigger:
platform: state
entity_id: binary_sensor.front_door_ding
to: 'on'
action:
- service: camera.snapshot
automaiton.yaml
- id: '1586812692976'
alias: ring doorbell
description: ''
trigger:
- entity_id: binary_sensor.front_door_ding
platform: state
to: detected
condition: []