Hi. Being notified when you unplug the shore power it’s not a problem (you know the reason of the alarm).
Somebody suggested to use an optocoupler connected to the AC shorepower to produce an alert via a GPIO pin in the raspberry. That could work for me, it’s very cheap!
A different suggestion I have received is to use a Tuya wifi smart plug, it seems that can produce an alarm when disconnected from the main power.
Somebody suggested to use an optocoupler connected to the AC shorepower to produce an alert via a GPIO pin in the raspberry. That could work for me, it’s very cheap!
A different suggestion I have received is to use a Tuya wifi smart plug, it seems that can produce an alarm when disconnected from the main power.

