APC UPS - send notification when power fails

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.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

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
1 Like

Import not working, something about “extra keys”. No idea. Maybe somebody can fix it.

2 Likes

notify.mobile_app_xx_yyyy
It is due to this service not being valid for most people.