Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Home Assistant automation rule with a condition
automation:
alias: Notify Lars when door is opened
trigger:
platform: state
entity_id: sensor.front_door_opened
condition:
condition: state
entity_id: device_tracker.larsiphone
state: not_home
action:
service: notify.ios_larsiphone
data:
message: The front door has been opened!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment