Skip to content

Instantly share code, notes, and snippets.

@smarthomehobby
Created September 4, 2018 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smarthomehobby/0147029d814307bf0a2ec0070499bae3 to your computer and use it in GitHub Desktop.
Save smarthomehobby/0147029d814307bf0a2ec0070499bae3 to your computer and use it in GitHub Desktop.
#Add to automations.yaml
- id: water_leak_sensor
alias: Water Leak Sensor
initial_state: 'on'
trigger:
platform: state
entity_id: binary_sensor.water_leak_sensor_158d0001bb656c
from: 'off'
to: 'on'
action:
- service: ifttt.trigger
data: {"event":"text_notification", "value1":"Water Leak Detector Triggered"}
- service: ifttt.trigger
data: {"event":"alexa_notification", "value1":"Water leak detected!"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment