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

+6 -6
View File
@@ -76,14 +76,14 @@ external_components:
# UPS HID Component
ups_hid:
id: ups_monitor
simulation_mode: false # Test with real APC UPS hardware
simulation_mode: false # Test with real hardware
update_interval: 5s
# 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:
# 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_timeout: 10s