refactor(ups-hid): auto detect device and protocol logic

Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
bullshit committed 2025-08-17 19:43:14 +02:00
1 parent 753b015139
commit ed284af812
9 files changed
+142 -128

No files matched your search

+5 -5
View File
@@ -143,11 +143,11 @@ ups_hid:
id: ups_monitor
update_interval: 10s
# Hardware Configuration
usb_vendor_id: 0x051d # APC vendor ID (0x051d)
usb_product_id: 0x0002 # APC Back-UPS ES series
#usb_vendor_id: 0x0764 # CyberPower (0x0764)
# Component now auto-detects all USB devices and protocols
# Manual USB IDs only needed for troubleshooting when auto-detection fails:
#usb_vendor_id: 0x051d # APC vendor ID (uncomment if auto-detection fails)
#usb_product_id: 0x0002 # APC Back-UPS ES series
#usb_vendor_id: 0x0764 # CyberPower (uncomment if auto-detection fails)
#usb_product_id: 0x0501 # CP1500 AVR UPS
# Protocol Configuration