PoisonWaffle

UPS Notification YAML

Apr 7th, 2024
33
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 1 0
  1. alias: UPS Notifications
  2. description: ""
  3. trigger:
  4. - type: voltage
  5. platform: device
  6. device_id: 70e586e1e56fbe2c40b4d25d2da08825
  7. entity_id: ab465010b0a425cbaf727400aad37f49
  8. domain: sensor
  9. id: "1"
  10. below: 110
  11. - type: voltage
  12. platform: device
  13. device_id: 932845493033ec64f30093a18c2e7c3b
  14. entity_id: 71efb75315f936794427421487cb9c87
  15. domain: sensor
  16. below: 110
  17. id: "2"
  18. - type: voltage
  19. platform: device
  20. device_id: 70e586e1e56fbe2c40b4d25d2da08825
  21. entity_id: ab465010b0a425cbaf727400aad37f49
  22. domain: sensor
  23. above: 110
  24. id: "3"
  25. - type: voltage
  26. platform: device
  27. device_id: 932845493033ec64f30093a18c2e7c3b
  28. entity_id: 71efb75315f936794427421487cb9c87
  29. domain: sensor
  30. above: 110
  31. id: "4"
  32. - type: battery_level
  33. platform: device
  34. device_id: 70e586e1e56fbe2c40b4d25d2da08825
  35. entity_id: 22722b9cb14a2d1e47db923197956cac
  36. domain: sensor
  37. id: "5"
  38. below: 20
  39. - type: battery_level
  40. platform: device
  41. device_id: 932845493033ec64f30093a18c2e7c3b
  42. entity_id: 592dd0fa7509a59fcb92e6dc5464070b
  43. domain: sensor
  44. id: "6"
  45. below: 20
  46. condition: []
  47. action:
  48. - if:
  49. - condition: trigger
  50. id:
  51. - "1"
  52. then:
  53. - service: notify.mobile_app_scott_s_s23
  54. data:
  55. message: UPS1 - Left has no input power
  56. - if:
  57. - condition: trigger
  58. id:
  59. - "2"
  60. then:
  61. - service: notify.mobile_app_scott_s_s23
  62. data:
  63. message: UPS2 - Right has no input power
  64. - if:
  65. - condition: trigger
  66. id:
  67. - "3"
  68. then:
  69. - service: notify.mobile_app_scott_s_s23
  70. data:
  71. message: UPS1 - Left is back on mains power
  72. - if:
  73. - condition: trigger
  74. id:
  75. - "4"
  76. then:
  77. - service: notify.mobile_app_scott_s_s23
  78. data:
  79. message: UPS2 - Right is back on mains power
  80. - if:
  81. - condition: trigger
  82. id:
  83. - "5"
  84. then:
  85. - service: notify.mobile_app_scott_s_s23
  86. data:
  87. message: UPS1 - Left battery level below 20%
  88. - if:
  89. - condition: trigger
  90. id:
  91. - "6"
  92. then:
  93. - service: notify.mobile_app_scott_s_s23
  94. data:
  95. message: UPS2 - Right battery level below 20%
  96. mode: parallel
  97. max: 10
  98.  
Advertisement
Add Comment
Please, Sign In to add comment