Tripp Lite UPS Monitoring

Hi all, has anyone integrated a Tripp-Lite UPS in Node-Red to monitor power and gracefully shutdown that could share their setup? The UPS has the USB interface and no network capability and I'm running NR on an RPi4 which has a UPS port available.
Thanks!

You may need to elaborate more on that.

What does the USB offer for commands? Is it a serial port?
Is there any protocol needed to log in?

Sure, from what I can glean, it's a serial interface with set of basic commands. I haven't found any specs on the interface yet (the search continues). The closest I came so far is this npm package... https://www.npmjs.com/package/node-tripp-lite which matches the connection type (USB) and makes sense as to what info would be available. Before I start down a rabbit hole I was wondering if anyone tried this interface yet.

You will have to study the commands sent/received and how they are parsed.

I know nothing of the UPS.

What exactly is it you want to do? If you don't know that, then the rabbit hole just got a whole lot bigger.

My plan is simple... I want to put my automation hardware on a UPS and I want to monitor the UPS to see if it's on battery power and if after xx minutes on battery power gracefully shutdown all the hardware.

I've not but I do have my APC UPS connected. APC has a well-known API though and an app for Linux.

Incidentally, if you shut down the Pi, Node-RED will also shut down fairly cleanly.

That npm library you have found looks like a great place to start. It should be fairly simple to wrap into a node if you have any JavaScript programming experience.

All my programming experience is in industrial automation (PLCs, HMIs, etc) and I have little exposure to JavaScript so it'll take a while to plow through it but I'll see what I can come up with. I did a little more research and the TrippLite's USB connection is HID enabled so it should work with this npm package or possibly the NR usbhid package. So we'll see, thanks for the feedback all.
@TotallyInformation, thanks, although I'm not as concerned about NR as I am with my Hubitat; possible dB corruption can happen with an abrupt power loss. Hubitat can't monitor the UPS but I can pass the shutdown command from NR to Hubitat.

Again, thanks all for the help.

Well that should be easy enough. How is Hubitat started, is it from a systemd script?

Yea, the hooks are there I just need to create the event to kick it all off. I just can't monitor it directly in hubitat so I'm leveraging my NR interface.