2023-06-12 23:56:22 +02:00
|
|
|
- id: ups_discharging
|
2022-05-02 15:08:24 +02:00
|
|
|
alias: '[UPS] Discharging'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.myups_status_data
|
|
|
|
to: OB DISCHRG
|
|
|
|
condition: [ ]
|
|
|
|
action:
|
2022-10-19 22:25:52 +02:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-05-02 15:08:24 +02:00
|
|
|
data:
|
|
|
|
title: "UPS Alert"
|
|
|
|
message: UPS started discharging
|
2023-02-05 15:43:19 +01:00
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
UPS Alert ⚠️
|
|
|
|
UPS started discharging
|
|
|
|
@everyone
|
2023-05-21 22:14:03 +02:00
|
|
|
target: [ "1109936159951441960" ]
|
2022-05-02 15:08:24 +02:00
|
|
|
|
2023-06-12 23:56:22 +02:00
|
|
|
- id: ups_charging
|
2022-05-02 15:08:24 +02:00
|
|
|
alias: '[UPS] Charging'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.myups_status_data
|
|
|
|
to: OL CHRG
|
|
|
|
condition: [ ]
|
|
|
|
action:
|
2022-10-19 22:25:52 +02:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-05-02 15:08:24 +02:00
|
|
|
data:
|
|
|
|
title: "UPS Alert"
|
|
|
|
message: UPS is charging
|
2023-02-05 15:43:19 +01:00
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
2023-02-07 14:10:00 +01:00
|
|
|
UPS Alert ✅
|
2023-02-05 15:43:19 +01:00
|
|
|
UPS is charging
|
|
|
|
@everyone
|
2023-05-21 22:14:03 +02:00
|
|
|
target: [ "1109936159951441960" ]
|
2022-05-02 15:08:24 +02:00
|
|
|
|
2023-06-12 23:56:22 +02:00
|
|
|
- id: ups_power_back
|
2022-05-02 15:08:24 +02:00
|
|
|
alias: '[UPS] Power back'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.myups_input_voltage
|
|
|
|
above: '200'
|
|
|
|
condition: [ ]
|
|
|
|
action:
|
2022-10-19 22:25:52 +02:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-05-02 15:08:24 +02:00
|
|
|
data:
|
|
|
|
title: "UPS Alert"
|
|
|
|
message: UPS power is back
|
2023-02-05 15:43:19 +01:00
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
UPS Alert ⚠️
|
|
|
|
UPS power is back
|
|
|
|
@everyone
|
2023-05-21 22:14:03 +02:00
|
|
|
target: [ "1109936159951441960" ]
|
2022-05-02 15:08:24 +02:00
|
|
|
|
2023-06-12 23:56:22 +02:00
|
|
|
- id: ups_battery_under_100
|
2022-08-07 00:52:51 +02:00
|
|
|
alias: '[UPS] Battery Under 100%'
|
2022-05-02 15:08:24 +02:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.myups_battery_charge
|
|
|
|
below: '100'
|
|
|
|
condition: [ ]
|
|
|
|
action:
|
2022-10-19 22:25:52 +02:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-05-02 15:08:24 +02:00
|
|
|
data:
|
|
|
|
title: "UPS Alert"
|
|
|
|
message: UPS battery is below 100%, estimated time on battery 25 min
|
2023-02-05 15:43:19 +01:00
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
UPS Alert ⚠️
|
|
|
|
UPS battery is below 100%, estimated time on battery 25 min
|
|
|
|
@everyone
|
2023-05-21 22:14:03 +02:00
|
|
|
target: [ "1109936159951441960" ]
|
2022-05-02 15:08:24 +02:00
|
|
|
|
2023-06-12 23:56:22 +02:00
|
|
|
- id: ups_battery_under_50
|
2022-08-07 00:52:51 +02:00
|
|
|
alias: '[UPS] Battery Under 50%'
|
2022-05-02 15:08:24 +02:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.myups_battery_charge
|
|
|
|
below: '50'
|
|
|
|
condition: [ ]
|
|
|
|
action:
|
2022-10-19 22:25:52 +02:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-05-02 15:08:24 +02:00
|
|
|
data:
|
|
|
|
title: "UPS Alert"
|
|
|
|
message: UPS battery is below 50%, estimated time on battery 12 min
|
2023-02-05 15:43:19 +01:00
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
UPS Alert ⚠️
|
|
|
|
UPS battery is below 50%, estimated time on battery 12 min
|
|
|
|
@everyone
|
2023-05-21 22:14:03 +02:00
|
|
|
target: [ "1109936159951441960" ]
|
2022-05-02 15:08:24 +02:00
|
|
|
|
2023-06-12 23:56:22 +02:00
|
|
|
- id: ups_battery_under_10
|
2022-08-07 00:52:51 +02:00
|
|
|
alias: '[UPS] Battery Under 10%'
|
2022-05-02 15:08:24 +02:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.myups_battery_charge
|
|
|
|
below: '10'
|
|
|
|
condition: [ ]
|
|
|
|
action:
|
2022-10-19 22:25:52 +02:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-05-02 15:08:24 +02:00
|
|
|
data:
|
|
|
|
title: "UPS Alert"
|
|
|
|
message: UPS battery is below 10%, estimated time on battery 2 min
|
2023-02-05 15:43:19 +01:00
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
UPS Alert ⚠️
|
|
|
|
UPS battery is below 10%, estimated time on battery 2 min
|
|
|
|
@everyone
|
2023-05-21 22:14:03 +02:00
|
|
|
target: [ "1109936159951441960" ]
|