1
0
ansible-home-assistant/configuration/automations/ups.yaml

84 lines
2.0 KiB
YAML
Raw Normal View History

2022-05-02 13:08:24 +00:00
- id: ups-discharging
alias: '[UPS] Discharging'
mode: single
trigger:
- platform: state
entity_id: sensor.myups_status_data
to: OB DISCHRG
condition: [ ]
action:
- service: notify.mobile_app_iphone_pg
data:
title: "UPS Alert"
message: UPS started discharging
- id: ups-charging
alias: '[UPS] Charging'
mode: single
trigger:
- platform: state
entity_id: sensor.myups_status_data
to: OL CHRG
condition: [ ]
action:
- service: notify.mobile_app_iphone_pg
data:
title: "UPS Alert"
message: UPS is charging
- id: ups-power-back
alias: '[UPS] Power back'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.myups_input_voltage
above: '200'
condition: [ ]
action:
- service: notify.mobile_app_iphone_pg
data:
title: "UPS Alert"
message: UPS power is back
- id: ups-battery-under-100
2022-08-06 22:52:51 +00:00
alias: '[UPS] Battery Under 100%'
2022-05-02 13:08:24 +00:00
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.myups_battery_charge
below: '100'
condition: [ ]
action:
- service: notify.mobile_app_iphone_pg
data:
title: "UPS Alert"
message: UPS battery is below 100%, estimated time on battery 25 min
- id: ups-battery-under-50
2022-08-06 22:52:51 +00:00
alias: '[UPS] Battery Under 50%'
2022-05-02 13:08:24 +00:00
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.myups_battery_charge
below: '50'
condition: [ ]
action:
- service: notify.mobile_app_iphone_pg
data:
title: "UPS Alert"
message: UPS battery is below 50%, estimated time on battery 12 min
- id: ups-battery-under-10
2022-08-06 22:52:51 +00:00
alias: '[UPS] Battery Under 10%'
2022-05-02 13:08:24 +00:00
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.myups_battery_charge
below: '10'
condition: [ ]
action:
- service: notify.mobile_app_iphone_pg
data:
title: "UPS Alert"
message: UPS battery is below 10%, estimated time on battery 2 min