schmiddydel

HA Abfallerinnerung

Jul 26th, 2024
166
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.58 KB | Source Code | 0 0
  1. alias: Abfallerinnerung
  2. description: |-
  3.   Wenn zwischen 6 und 10 Uhr die Tür geöffnet wird
  4.   und eine Müllsorte heute dran ist, gibt es eine
  5.   Benachrichtigung
  6. trigger:
  7.   - platform: state
  8.     entity_id:
  9.      - binary_sensor.haustur_tur
  10.     to: "on"
  11. condition:
  12.   - condition: time
  13.     after: "06:00:00"
  14.     before: "10:00:00"
  15. action:
  16.   - if:
  17.       - condition: state
  18.         entity_id: sensor.bioabfall
  19.         state: "0"
  20.     then:
  21.       - service: notify.mobile_app_iphone13schmidtke
  22.         data:
  23.           message: Biotonne raus stellen
  24.           title: Biotonne
  25.   - if:
  26.       - condition: state
  27.         entity_id: sensor.restabfall
  28.         state: "0"
  29.     then:
  30.       - service: notify.mobile_app_iphone13schmidtke
  31.         data:
  32.           message: Restmüll raus stellen
  33.           title: Restmüll
  34.   - if:
  35.       - condition: state
  36.         entity_id: sensor.gelbe_tonne
  37.         state: "0"
  38.     then:
  39.       - service: notify.mobile_app_iphone13schmidtke
  40.         data:
  41.           message: gelbe Tonne raus stellen
  42.           title: Gelbe Tonne
  43.   - if:
  44.       - condition: state
  45.         entity_id: sensor.altglas
  46.         state: "0"
  47.     then:
  48.       - service: notify.mobile_app_iphone13schmidtke
  49.         data:
  50.           message: Altglas raus stellen
  51.           title: Altglas
  52.   - if:
  53.       - condition: state
  54.         entity_id: sensor.altpapier_und_altglas
  55.         state: "0"
  56.     then:
  57.       - service: notify.mobile_app_iphone13schmidtke
  58.         data:
  59.           message: Altpapier und Altglas raus stellen
  60.           title: Altpapier und Altglas
  61. mode: single
  62.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment