I have an older APC BX1000G UPS and would like to get the UPS Battery % into HE to use as the decision point for hub shutdown rather than my arbitrarily 3 hour delay time, UPS says it has almost 5 hours of backup time.
APC has a Windows Power-Chute app. I've never used it, but it seems all warnings are on the Windows machine, with no way to send an external notification. The app monitors the UPS via a weird network to USB-a cable that must be plugged into the monitoring connector on the UPS.
I realize this may be a futile endeavor. Any ideas appreciated.
if you have a smart ups (expensive model) which i do with a optional network card it has telnet access.
i have recently used telnet to write a sendmail program..
I will be coding something using telnet to log into the ups and get status and optionally check runtime and then hopefully parse it and shutdown if below a value
Schneider Electric Network Management Card AOS v6.8.2
(c) Copyright 2019 All Rights Reserved Smart-UPS & Matrix-UPS APP v6.8.0
Name : netups Date : 09/11/2020
Contact : Unknown Time : 14:19:51
Location : Unknown User : Administrator
Up Time : 101 Days 16 Hours 21 Minutes Stat : P+ N+ A+
If you have a Rpi and want a guide on how to get NUT setup and working with HE, check this thread out. Down near the end I linked the guide I used and a few posts later filled in missing pieces for me. I have it notify me when the power source has changed and do a saving shutdown for HE. I also use it to detect when the TV is in use.
Thank you everyone for all of the interesting, creative, and diverse solutions. I have a lot of reading to do. I am attempting to do this on a very small $$ budget, so the Qnap NAS or any NAS is ruled out.
The only remaining bit of my puzzle is the power % issue, the other stuff is working. When and if I get the UPS' power %, it likely will alter my solution. My UPS is good for 287 minutes, and I do a graceful shutdown at 180 minutes. This may or my not work in the real world, and I prefer getting it 100% right.
My current power solution
An older not-smart UPS backup for Cable Modem, Router, and HE hub
An RM shown at the end of this, notifying me after a 5 minute outage
An old mains powered Samsung phone used as a dashboard, no sim chip, with it's own battery backup (not on UPS), with three MacroDroid macros that at this time do not communicate with the HE hub or any other devices. They are:
Power off (Screen is shut off to preserve battery, then turned on when power is restored)
Reboot Power on (in case the phone's battery gives up)
The Power on macros send an email for outages > 5 minutes to my Verizon phone's SMS via email using an email to address of email@example.com
including the date and time power was restored, and the outage duration in days hh:mm:ss
A TP-Link Kasa Wifi plug between the UPS plug and the HE Hub, allows for hub reboot in case the hub must be power cycled to restart after a graceful shutdown. This occurs when the hub is gracefully shutdown, but the UPS does not lose backup power, and subsequently power is restored. In all other cases: hub does not get shutdown, Ups loses backup power, this is not needed.
I'm going to add a RM rule that notifies me when the hub initializes.
So true! Spending more time and effort on this than I want or expected. Too many changes, hardware adjustments, software packages, software changes, power restored reboot issues, etc, etc. Note no RPi here, attempted this with an older W10 laptop, apcupsd, and a ups to USB connector cable. Unable to dedicate laptop 100% plugged in to UPS for power.
Although a bit pricey, the easiest and most sensible solution for me, when I'm ready to do it, is replacing my older dumb APC UPS with an "APC SmartConnect UPS" using @kahn-hubitat's driver. The SMC1000C is currently $299 on Amazon