[Nut-upsdev] Cyberpower add HID Usage (NeedReplacement)

Jim Klimov jimklimov+nut at gmail.com
Sat Jan 17 13:23:20 GMT 2026


Thanks, revised and posted as PR
https://github.com/networkupstools/nut/pull/3268

I suppose it will soon become part of master branch, eventually part of NUT
v2.8.5 release whenever that happens (hopefully even soon, before FOSDEM),
and available in OS distributions following their schedule (maybe in new
major releases).

Jim Klimov


On Tue, Jan 13, 2026 at 2:28 AM John.Chang via Nut-upsdev <
nut-upsdev at alioth-lists.debian.net> wrote:

> Hi NUT,
>
>
>
> We kindly request adding a HID usage for “NeedReplacement” to the NUT usb
> driver file cps-hid.c (USBHID-UPS(8)
> https://networkupstools.org/docs/man/usbhid-ups.html), that “RB” (Replace
> battery) information can be displayed in the ups.status.
>
>
>
> In NUT source code file cps-hid.c , the line 400 is
>
> { "BOOL", 0, 0,
> "UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired", NULL, NULL, 0,
> timelimitexpired_info },
>
> Please insert the following code after line 400 for our new HID usage
> (NeedReplacement).
>
> { "BOOL", 0, 0, "UPS.PowerSummary.PresentStatus.NeedReplacement", NULL,
> NULL, 0, replacebatt_info },
>
>
>
> Once you have confirmed the request to add the source code, please provide
> a test version of the NUT software with the added HID usage
> (NeedReplacement) code for our testing and verification.
>
> Please let me know if you have any questions. Thank you very much.
>
>
>
> John
> _______________________________________________
> Nut-upsdev mailing list
> Nut-upsdev at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsdev/attachments/20260117/31608355/attachment.htm>


More information about the Nut-upsdev mailing list