Advertisement
-Miura-

Brievenbus automation

Oct 4th, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.61 KB | None | 0 0
  1. alias: Brievenbus Notifier
  2. description: ""
  3. mode: queued
  4. max: 10
  5. triggers:
  6.   - entity_id:
  7.      - binary_sensor.aqara_brievenbus_klep_sensor_contact
  8.     id: klep
  9.     to: "off"
  10.     trigger: state
  11.   - entity_id:
  12.      - binary_sensor.aqara_brievenbus_deur_sensor_contact
  13.     to: "on"
  14.     id: deur_open
  15.     trigger: state
  16. conditions: []
  17. actions:
  18.   - choose:
  19.       - conditions:
  20.           - condition: trigger
  21.             id:
  22.              - klep
  23.           - condition: state
  24.             entity_id: input_boolean.brievenbus_post_notification_sent
  25.             state: "off"
  26.           - condition: state
  27.             entity_id: binary_sensor.aqara_brievenbus_deur_sensor_contact
  28.             state: "off"
  29.         sequence:
  30.           - data: {}
  31.             target:
  32.               entity_id: input_boolean.brievenbus_post_notification_sent
  33.             action: input_boolean.turn_on
  34.         alias: When trigger by klep
  35.       - conditions:
  36.           - condition: trigger
  37.             id:
  38.              - deur_open
  39.         sequence:
  40.           - wait_for_trigger:
  41.               - entity_id:
  42.                  - binary_sensor.aqara_brievenbus_deur_sensor_contact
  43.                 to: "off"
  44.                 for:
  45.                   hours: 0
  46.                   minutes: 0
  47.                   seconds: 0
  48.                 trigger: state
  49.             timeout:
  50.               hours: 0
  51.               minutes: 2
  52.               seconds: 0
  53.               milliseconds: 0
  54.           - target:
  55.               entity_id: input_boolean.brievenbus_post_notification_sent
  56.             data: {}
  57.             action: input_boolean.turn_off
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement