Power Outage and HA

Hi guys,

I have HA setup on VB with a ups power backup.
However since the power cuts are very often in my country, I want to know when it happens so that I can disable/enable some automation based on power status. I have done this before using Rpi GPIO connected to a relay triggered by incoming power. But since the PC does not have GPIO, I am out of idea. Please advise !

Thanks in advance :relaxed:

Can’t you monitor the UPS? And use the UPS state to turn on and off your automations?