alias: UPS Notification Power Down
description: ""
trigger:
- platform: state
entity_id:- sensor.ups_power_source
to: Battery
from: AC Power
condition: []
action:
- sensor.ups_power_source
- service: notify.telegrambotgroup
data:
message: Power Perenhuisje Down
title: UPS Power Status
mode: single
I have a scraper who is scraping the webpage of my ups . Its an old dell network card so smtp and mail server and crap is not working. So i want to get notified when the scraper i going from the word AC Power to Battery . Unfortunately if i do it like this it wont work . If i tell to notify me on change state null it works. But then i dont know if its back on or off the power . I have been searching with templating but i dont understand it . I can't find anything who is determing a on or off state based on these 2 word the scraper spits out . 🙏🏻