Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Brievenbus Notifier
- description: ""
- mode: queued
- max: 10
- triggers:
- - entity_id:
- - binary_sensor.aqara_brievenbus_klep_sensor_contact
- id: klep
- to: "off"
- trigger: state
- - entity_id:
- - binary_sensor.aqara_brievenbus_deur_sensor_contact
- to: "on"
- id: deur_open
- trigger: state
- conditions: []
- actions:
- - choose:
- - conditions:
- - condition: trigger
- id:
- - klep
- - condition: state
- entity_id: input_boolean.brievenbus_post_notification_sent
- state: "off"
- - condition: state
- entity_id: binary_sensor.aqara_brievenbus_deur_sensor_contact
- state: "off"
- sequence:
- - data: {}
- target:
- entity_id: input_boolean.brievenbus_post_notification_sent
- action: input_boolean.turn_on
- alias: When trigger by klep
- - conditions:
- - condition: trigger
- id:
- - deur_open
- sequence:
- - wait_for_trigger:
- - entity_id:
- - binary_sensor.aqara_brievenbus_deur_sensor_contact
- to: "off"
- for:
- hours: 0
- minutes: 0
- seconds: 0
- trigger: state
- timeout:
- hours: 0
- minutes: 2
- seconds: 0
- milliseconds: 0
- - target:
- entity_id: input_boolean.brievenbus_post_notification_sent
- data: {}
- action: input_boolean.turn_off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement