Skip to content

Instantly share code, notes, and snippets.

@FredrickB
Created September 9, 2018 08:49
Show Gist options
  • Save FredrickB/b9422d66cd5df6ddb173d9074d88e7b9 to your computer and use it in GitHub Desktop.
Save FredrickB/b9422d66cd5df6ddb173d9074d88e7b9 to your computer and use it in GitHub Desktop.
Adding a custom Template Binary Sensor representation of Strips Guard as a trigger in an automation
...
# Trigger automation if door has been opened and has stayed open for 10 minutes
- id: door_sensor_automation_id
alias: "Some friendly name for automation"
trigger:
platform: state
entity_id: binary_sensor.your_door_sensor_reference_name
from: 'off'
to: 'on'
for:
minutes: 10
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment