lacrima08

exemple_notif_ouverture_de_porte

Dec 29th, 2023
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. alias: "[EXEMPLE] Notification PUSH Ouverture porte"
  2. description: ""
  3. trigger:
  4. - platform: state
  5. entity_id:
  6. - binary_sensor.porte_entree
  7. from: "off"
  8. to: "on"
  9. id: porte_ouverte
  10. - platform: state
  11. entity_id:
  12. - binary_sensor.porte_entree
  13. from: "off"
  14. to: "on"
  15. id: porte_fermee
  16. condition: []
  17. action:
  18. - choose:
  19. - conditions:
  20. - condition: trigger
  21. id:
  22. - porte_ouverte
  23. sequence:
  24. - service: notify.mobile_app_xiaomi_mi_11t_pro
  25. data:
  26. title: Information
  27. message: La porte d'entrée a été ouverte.
  28. - conditions:
  29. - condition: trigger
  30. id:
  31. - porte_fermee
  32. sequence:
  33. - service: notify.mobile_app_xiaomi_mi_11t_pro
  34. data:
  35. title: Information
  36. message: La porte d'entrée a été fermée.
  37. mode: single
  38.  
Advertisement
Add Comment
Please, Sign In to add comment