Sends a mobile phone notification when the power is cut to an APC UPS.
Required Devices
APC UPS device using the NUT integration.
Mobile app to receive notifications.
You may need to edit the sensor name, the example uses apc_ups.
You will need to edit xx_yyyy to set to the correct mobile device.
Title and message can be customised as desired.
blueprint:
name: UPS power outage
description: 'send notification on power cut'
domain: automation
trigger:
- platform: state
entity_id: sensor.apc_ups_status_data
from:
- OL
- OL CHRG
to: OB DISCHRG
action:
- service: notify.mobile_app_xx_yyyy
data:
message: Power failure detected
title: POWER OUTAGE
mode: single