123
Senior Member
I need the ability to detect when household AC power is lost and restored.
I have an M1 and I believe the simplest technique would be to look for events "1138 = AC FAILURE TROUBLE" and "1158 = AC FAIL RESTORE". The M1 automatically reports events via its serial/ethernet port using command "LD - System Log Data Update" so there'd be no need for my HA application to poll for status. A recent firmware upgrade introduced the new "System Trouble Status (SS)" command, it includes AC status, but you have to poll the M1 to acquire this information.
I also have a Tripplite UPS powering my HA server. There may be some sort of software hook into Tripplite's UPS driver, or maybe via Windows WMI, that'd let me monitor the AC status. I couldn't find anything of the sort documented on Tripplite's site. Plus, I never bothered to install the monitoring software because of its onerous size (20Mb download ... to shutdown a PC?).
It seems like monitoring the M1's events is the simplest technique. It could also serve as the means for sending a shutdown signal to my PC (thereby eliminating the need for a 20MB UPS driver).
How are other Cocooners handling this?
I have an M1 and I believe the simplest technique would be to look for events "1138 = AC FAILURE TROUBLE" and "1158 = AC FAIL RESTORE". The M1 automatically reports events via its serial/ethernet port using command "LD - System Log Data Update" so there'd be no need for my HA application to poll for status. A recent firmware upgrade introduced the new "System Trouble Status (SS)" command, it includes AC status, but you have to poll the M1 to acquire this information.
I also have a Tripplite UPS powering my HA server. There may be some sort of software hook into Tripplite's UPS driver, or maybe via Windows WMI, that'd let me monitor the AC status. I couldn't find anything of the sort documented on Tripplite's site. Plus, I never bothered to install the monitoring software because of its onerous size (20Mb download ... to shutdown a PC?).
It seems like monitoring the M1's events is the simplest technique. It could also serve as the means for sending a shutdown signal to my PC (thereby eliminating the need for a 20MB UPS driver).
How are other Cocooners handling this?