Commit Graph
111 Commits
Author SHA1 Message Date
uncarvedblock 2a42efc5c8 fix compile issues #25 2026-07-21 18:51:47 +00:00
Roy Walker 4012ccaa96 Revert to force linkage. 2026-07-17 13:42:49 -05:00
Roy Walker 74cdb3d56f Bugfix 2026.7.0. 2026-07-17 13:36:06 -05:00
rwalker777 c69b2e0754 Add explicit protocol creator function declarations to protocol_factory.h
Make protocol dependencies explicit by declaring the built-in protocol creator functions in the header. This provides better type safety and clearer dependency tracking for the factory initialization.
2026-07-17 13:23:01 -05:00
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 39fe49e0ec fix(nut-server): credentials passed by commands instead of args
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-08 09:19:43 +02:00
bullshit 61c70d6489 chore: organize protocol bug development process
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-02 23:12:50 +02:00
bullshit 1b585ff746 chore: organize new protocol development process
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-02 23:01:49 +02:00
bullshit ae2a1f0e3c chore: remove unused boot esphome config
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-02 21:59:22 +02:00
bullshit 564bcc0f86 feat(nut-server): overwrite UPS name
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-01 22:12:44 +02:00
bullshit 7ee6783fd7 feat(nut-server): adding missing industrial standard variables
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-01 21:23:28 +02:00
bullshit 6f77e17f7a chore: licensing change
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-01 16:44:05 +02:00
bullshit e4592cd8be docs: update project documentation
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-01 16:40:54 +02:00
bullshit efba7a84be feat(nut-server): nut v2.8 compatibile implementation
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-01 16:38:16 +02:00
bullshit 5ac47b9462 feat(ups-status-led): ups led controller component
Signed-off-by: bullshit <coding@ow-software.pl>
2025-09-01 01:22:28 +02: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 1df84b0473 fix(config): ups-hid number for delay configuration
Signed-off-by: bullshit <coding@ow-software.pl>
2025-08-31 13:49:54 +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 a2c9618d78 feat(configs): grouping sensors and switching to new design
Signed-off-by: bullshit <coding@ow-software.pl>
2025-08-26 11:04:35 +02:00
bullshit 7cf68bd78e chore(configs): update protocol-selection-demo
Signed-off-by: bullshit <coding@ow-software.pl>
2025-08-26 10:04:17 +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