added power_generation to base devices
This commit is contained in:
1 parent
4231b34bb8
commit
cac64b40bd
2 files changed
+6
No files matched your search
@@ -21,6 +21,9 @@ class ProtocolV1Device(BluettiDevice):
|
||||
self.struct.add_uint_field('ac_output_power', 38)
|
||||
self.struct.add_uint_field('dc_output_power', 39)
|
||||
|
||||
# Power IO statistics
|
||||
self.struct.add_decimal_field('power_generation', 41, 1) # Total power generated since last reset (kwh)
|
||||
|
||||
# Battery
|
||||
self.struct.add_uint_field('total_battery_percent', 43)
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ class ProtocolV2Device(BluettiDevice):
|
||||
#self.struct.add_uint_field('ac_output_power', ?)
|
||||
#self.struct.add_uint_field('dc_output_power', ?)
|
||||
|
||||
# Power IO statistics
|
||||
self.struct.add_decimal_field('power_generation', 154, 1) # Total power generated since last reset (kwh)
|
||||
|
||||
# Battery
|
||||
self.struct.add_uint_field('total_battery_percent', 102)
|
||||
|
||||
|
||||
Reference in new issue
Block a user