rwalker777
6d84a83236
Force protocol registration at factory initialization to work with ESPHome 2026.7.0
...
The self-registration mechanism using static initializers can fail with certain compiler/linker settings. Move built-in protocol registration into ensure_initialized() to guarantee all protocols (APC, CyberPower, GoldenMate, Generic) are registered before any protocol lookup occurs.
This fixes the issue where Goldenmate detection fails and there are no fallback protocols registered, resulting in "No suitable protocol found for vendor 0x075D".
2026-07-17 13:18:12 -05:00
Roy Walker
2283a38ff7
Fix formating.
2026-07-17 13:09:32 -05:00
Roy Walker
7bce757401
Add additional error handling. The Goldenmate USB is trash.
2026-05-05 21:02:40 -05:00
Roy Walker
fea2dc4963
Another fix for the Goldenmate reporting to stop log spamming.
2026-05-05 16:22:22 -05:00
Roy Walker
141cc0d897
Fix the Goldenmate hardware from sending trash values.
2026-05-05 10:54:19 -05:00
Roy Walker
bc0b3f4306
Fix manf and model to be static for GoldenMate.
2026-05-04 18:29:58 -05:00
Roy Walker
e313a8ff92
Fix read error.
2026-05-04 18:02:48 -05:00
Roy Walker
58fba03ad6
Fix Goldenmate protocol.
2026-05-04 17:42:06 -05:00
Roy Walker
e802e06d5e
Add raw hex dump when log VERY_VERBOSE.
2026-05-04 15:57:45 -05:00
Roy Walker
3d8f348e46
Update goldenmate protocol.
2026-05-03 15:23:40 -05:00
rwalker777
1b63f30b4b
Update protocol_goldenmate.cpp
2026-05-02 13:15:00 -05:00
rwalker777
d5d81ab445
Refine GoldenMate UPS protocol documentation
...
Updated protocol description and field mappings for GoldenMate UPS.
2026-05-02 13:14:27 -05:00
rwalker777
d9a8260a73
Remove GoldenMate vendor registration
...
Removed registration for vendor 0x06DA (GoldenMate) with high priority.
2026-05-02 12:44:30 -05:00
rwalker777
e28c0ef24e
Update protocol_goldenmate.cpp
2026-05-02 12:42:50 -05:00
rwalker777
3ca23e9bf4
Add include for protocol_goldenmate.h
2026-05-02 12:29:07 -05:00
rwalker777
c5b88ddec2
Change 'Idowell' to 'Goldenmate' in UPS list
2026-05-02 12:25:50 -05:00
rwalker777
de5cc0e617
Refactor detect() to log hex dumps for report IDs
...
Updated the detect() method to include hex dump logging for multiple report IDs and removed the previous report checks.
2026-05-01 22:07:48 -05:00
rwalker777
f58e0d3b72
Update protocol_goldenmate.cpp
2026-05-01 22:05:37 -05:00
rwalker777
b5706d46e7
Create protocol_goldenmate.h
2026-05-01 20:21:45 -05:00
rwalker777
156905bab2
Add GoldenMate UPS protocol implementation
...
Implement GoldenMate UPS protocol for handling feature reports and device initialization.
2026-05-01 20:21:25 -05:00
rwalker777
039e7d53ad
Update protocol_factory.cpp
2026-04-08 16:27:46 -05:00
rwalker777
890e1a013d
Disable logging for registered protocol
...
Comment out logging for registered protocol.
2026-04-08 16:25:37 -05:00
rwalker777
0d2c9b2b54
Disable logging for fallback protocol registration
...
Commented out logging for registered fallback protocol.
2026-04-08 16:20:56 -05:00
rwalker777
f97093ae7d
Add explicit initialization check in ProtocolFactory
2026-04-08 16:12:00 -05:00
rwalker777
e70c936813
Add logger checks before logging in ProtocolFactory
2026-04-08 15:55:01 -05:00
rwalker777
a71b90cf3e
Remove device class override in binary sensor config
...
Removed device class override for binary sensor configuration.
2026-04-08 15:39:45 -05:00
rwalker777
0a573bb602
Remove device class setting from sensor config
...
Removed setting device class from sensor configuration if not specified.
2026-04-08 15:39:09 -05:00
bullshit
82248c0a86
fix(ups-hid): CPS input/output voltage scaling issue
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-09-01 01:20:31 +02:00
bullshit
49e24d3170
feat(usp-hid): data provider pattern
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-31 15:03:28 +02:00
bullshit
e260446f2f
refactor(ups-hid): file structure
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-31 13:49:26 +02:00
bullshit
19e85c0761
feat(usp-hid): improve generic hid protocol
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-30 17:15:56 +02:00
bullshit
f3db5e1dba
docs(ups-hid): timer and delay functionality
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-26 10:04:01 +02:00
bullshit
ae6cf92f27
feat(ups-hid): timer delay commands
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-26 09:27:32 +02:00
bullshit
58e5cc71f7
refactor(ups-hid): test result constants
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-25 21:59:17 +02:00
bullshit
2b26ebacd9
refactor(ups-hid): remove hardcoded values into constants and fix couple sensors
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-25 21:47:56 +02:00
bullshit
3a2ebfae55
refactor(ups-hid): remove unused UpsVendor class
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-25 13:53:36 +02:00
bullshit
900e6f1dab
refactor(ups-hid): UPS HID component codebase use proper constants instead of hardcoded values
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-25 13:45:59 +02:00
bullshit
fe1637a940
fix(ups-hid): voltage, frequency and runtime
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-25 12:45:27 +02:00
bullshit
7015fd2239
refactor(ups-hid): clean abstraction layers, strategy pattern for protocol selection and proper data structure
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-23 14:22:02 +02:00
bullshit
cda3c39f1f
docs: update documentation
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-22 16:12:53 +02:00
bullshit
38b2079354
refactor(ups-hid): known issues after refactoring, stale data and further troubleshooting reconnection issues
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-22 16:10:11 +02:00
bullshit
6e79ba8ebd
refactor(ups-hid): esp32-idf v5.4+ usb communication
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-22 14:40:56 +02:00
bullshit
ecf606593d
feat(ups-hid): UPS and Battery test initial implementation
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-18 16:55:00 +02:00
bullshit
0c1e24b525
fix(ups-hid): handle wonky esp32-idf disconnect/reconnect issues with v5.3
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-18 14:53:45 +02:00
bullshit
bbacfcb5c8
feat(ups-hid): Beeper control
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-18 12:04:20 +02:00
bullshit
64f29e49c8
refactor(ups-hid): battery status parsing in cyberpower protocol
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-18 01:37:31 +02:00
bullshit
2d26f2d54e
refactor(ups-hid): fix values in apc and cyberpower protocol
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-18 01:04:50 +02:00
bullshit
e23f0f9acf
refactor(ups-hid): switch to dynamic value reading implementing the devices descriptors
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-17 23:20:43 +02:00
bullshit
ed284af812
refactor(ups-hid): auto detect device and protocol logic
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-17 19:43:14 +02:00
bullshit
753b015139
refactor(ups-hid): improve generic hid protocol implementation
...
Signed-off-by: bullshit <coding@ow-software.pl >
2025-08-17 18:52:17 +02:00