added pack selector
This commit is contained in:
1 parent
f7b4d8dc37
commit
037ce83891
2 files changed
+7
-1
No files matched your search
@@ -38,6 +38,9 @@ class ProtocolV1Device(BluettiDevice):
|
||||
self.struct.add_bool_field('ac_output_on', 48)
|
||||
self.struct.add_bool_field('dc_output_on', 49)
|
||||
|
||||
# Pack selector
|
||||
self.struct.add_uint_field('pack_num', 3006) # internal
|
||||
|
||||
# Output controls
|
||||
self.struct.add_bool_field('ac_output_on_switch', 3007)
|
||||
self.struct.add_bool_field('dc_output_on_switch', 3008)
|
||||
@@ -59,4 +62,4 @@ class ProtocolV1Device(BluettiDevice):
|
||||
|
||||
@property
|
||||
def writable_ranges(self) -> List[range]:
|
||||
return [range(3007, 3008)]
|
||||
return [range(3006, 3008)]
|
||||
@@ -38,6 +38,9 @@ class ProtocolV2Device(BluettiDevice):
|
||||
#self.struct.add_bool_field('ac_output_on', ?)
|
||||
#self.struct.add_bool_field('dc_output_on', ?)
|
||||
|
||||
# Pack selector
|
||||
#self.struct.add_uint_field('pack_num', ?) # internal
|
||||
|
||||
# Output controls
|
||||
#self.struct.add_bool_field('ac_output_on_switch', ?)
|
||||
#self.struct.add_bool_field('dc_output_on_switch', ?)
|
||||
|
||||
Reference in new issue
Block a user