Advertisement
Einstine1984

Untitled

Sep 23rd, 2022
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.08 KB | None | 0 0
  1. alias: Refuel car reminder
  2. description: ""
  3. trigger:
  4.   - platform: zone
  5.     entity_id: person.voskov
  6.     zone: zone.kindergarten
  7.     event: leave
  8.     id: remind
  9.   - platform: zone
  10.     entity_id: person.voskov
  11.     zone: zone.gas_station
  12.     event: enter
  13.     id: remove
  14. condition:
  15.   - condition: state
  16.     entity_id: binary_sensor.in_car
  17.     state: "on"
  18. action:
  19.   - choose:
  20.       - conditions:
  21.           - condition: trigger
  22.             id: remind
  23.         sequence:
  24.           - service: notify.mobile_app_op9
  25.             data:
  26.               message: Refuel the car
  27.               title: Refuel
  28.               data:
  29.                 tag: refule_reminder
  30.       - conditions:
  31.           - condition: trigger
  32.             id: remove
  33.         sequence:
  34.           - service: notify.mobile_app_op9
  35.             data:
  36.               message: clear_notification
  37.               data:
  38.                 tag: refule_reminder
  39.           - service: automation.turn_off
  40.             data: {}
  41.             target:
  42.               entity_id: automation.refule_car_reminder
  43.     default: []
  44. mode: single
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement