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. 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 ✅ ✅ ❌ ❌ ✅ ❌ ✅