home-automation/automations/ups_ac_status.yaml

14 lines
449 B
YAML

- id: ups_ac_status
alias: UPS AC Status
trigger:
- platform: state
entity_id: sensor.ups_status
action:
- service: notify.smtp_notifications
data:
title: "UPS AC Power Status Changed"
message: "AC Status: {{ is_state('sensor.ups_status', 'ONLINE') }}"
- service: notify.matrix_notifications
data:
message: "UPS AC Power Status: {{ is_state('sensor.ups_status', 'ONLINE') }}"