vejvik

automatizace prepnuti FVE

Nov 17th, 2023
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. alias: FVE notifikace o prepnutí stridace
  2. description: ""
  3. trigger:
  4. - platform: state
  5. entity_id:
  6. - sensor.must_grid_relay
  7. from: "0"
  8. to: "1"
  9. id: prepnuti na sit
  10. - platform: state
  11. entity_id:
  12. - sensor.must_grid_relay
  13. from: "1"
  14. to: "0"
  15. id: prepnuti na baterii
  16. condition: []
  17. action:
  18. - choose:
  19. - conditions:
  20. - condition: trigger
  21. id:
  22. - prepnuti na sit
  23. sequence:
  24. - service: notify.mobile_app_rn10pro
  25. data:
  26. message: přepnutí střídače na síť
  27. - service: notify.mobile_app_poco_m5s
  28. data:
  29. message: přepnutí střídače na síť
  30. - conditions:
  31. - condition: trigger
  32. id:
  33. - prepnuti na baterii
  34. sequence:
  35. - service: notify.mobile_app_rn10pro
  36. data:
  37. message: přepnutí střídače zpět na baterii
  38. - service: notify.mobile_app_poco_m5s
  39. data:
  40. message: přepnutí střídače zpět na baterii
  41. mode: single
  42.  
Advertisement
Add Comment
Please, Sign In to add comment