From 646fe6346673ceed86ad3e0c2b70a26a39760a06 Mon Sep 17 00:00:00 2001 From: HA Admin Date: Sat, 20 Jun 2026 20:15:01 +0100 Subject: [PATCH 1/2] Add dc_output and dc_power_out properties to C1000 (Gen 1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The C1000 class has turn_dc_on/off control methods but no corresponding status property, requiring callers to use the private _parse_int("b2") directly. The C1000G2 class already defines dc_output and dc_power_out from the same b2 parameter; this adds the same two properties to Gen 1. Confirmed on real C1000 Gen 1 hardware (A1761, firmware 1.6.6): b2 telemetry was 020100 with DC output on — byte 1 = 0x01 = PortStatus.OUTPUT. --- SolixBLE/devices/c1000.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/SolixBLE/devices/c1000.py b/SolixBLE/devices/c1000.py index 3539da9..30b4f8d 100644 --- a/SolixBLE/devices/c1000.py +++ b/SolixBLE/devices/c1000.py @@ -186,6 +186,25 @@ def power_out(self) -> int: """ return self._parse_int("b0", begin=1) + @property + def dc_output(self) -> PortStatus: + """DC Port Status. + + PortStatus.NOT_CONNECTED signifies off. + PortStatus.OUTPUT signifies on. + + :returns: Status of the DC output port. + """ + return PortStatus(self._parse_int("b2", begin=1, end=2)) + + @property + def dc_power_out(self) -> int: + """DC Power Out. + + :returns: DC power out or default int value. + """ + return self._parse_int("b2", begin=2) + @property def software_version(self) -> str: """Main software version. From 7232e6cd782b1336c9b34ccd17e9efc71e9280bb Mon Sep 17 00:00:00 2001 From: Harvey <42912136+flip-dots@users.noreply.github.com> Date: Wed, 8 Jul 2026 15:51:22 +0100 Subject: [PATCH 2/2] Update C1000(X) capabilities --- docs/source/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index e6b6f8f..0e8dd70 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -50,9 +50,9 @@ AC on/off state ✅ N/A ✅ ✅ ✅ AC Timer ✅ N/A ✅ ✅ ❌ ❌ ❌ DC on/off control ✅ ❌ ✅ ✅ ✅ ❌ ❌ DC Power in ✅ ✅ ✅ ✅ ✅ ✅ ✅ -DC Power out ✅ ✅ ❌ ❌ ✅ ✅ ✅ +DC Power out ✅ ✅ ❌ ✅ ✅ ✅ ✅ DC Power in status ✅ ✅ ❌ ❌ ✅ ❌ ❌ -DC Power out status ✅ ❌ ❌ ❌ ✅ ❌ ✅ +DC Power out status ✅ ❌ ❌ ✅ ✅ ❌ ✅ DC Timer ✅ ✅ ❌ ❌ ❌ ❌ ❌ USB Power out ✅ ✅ ✅ ✅ ✅ ✅ ✅ USB Port status ✅ ✅ ❌ ❌ ✅ ❌ ✅