mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
RPI: reactive power (Blindleistung) missing
we are missing "weactive power" (Blindleistung) in our output on RPi. On ESP it is working allready.
This commit is contained in:
parent
d289d37ef1
commit
2c7e60352d
1 changed files with 13 additions and 1 deletions
|
@ -91,7 +91,7 @@ class Response:
|
||||||
|
|
||||||
class StatusResponse(Response):
|
class StatusResponse(Response):
|
||||||
"""Inverter StatusResponse object"""
|
"""Inverter StatusResponse object"""
|
||||||
e_keys = ['voltage','current','power','energy_total','energy_daily','powerfactor']
|
e_keys = ['voltage','current','power','energy_total','energy_daily','powerfactor', 'reactive_power']
|
||||||
temperature = None
|
temperature = None
|
||||||
frequency = None
|
frequency = None
|
||||||
powerfactor = None
|
powerfactor = None
|
||||||
|
@ -438,6 +438,10 @@ class Hm300Decode0B(StatusResponse):
|
||||||
""" Grid frequency in Hertz """
|
""" Grid frequency in Hertz """
|
||||||
return self.unpack('>H', 16)[0]/100
|
return self.unpack('>H', 16)[0]/100
|
||||||
@property
|
@property
|
||||||
|
def ac_reactive_power_0(self):
|
||||||
|
""" reactive power """
|
||||||
|
return self.unpack('>H', 20)[0]/10
|
||||||
|
@property
|
||||||
def temperature(self):
|
def temperature(self):
|
||||||
""" Inverter temperature in °C """
|
""" Inverter temperature in °C """
|
||||||
return self.unpack('>h', 26)[0]/10
|
return self.unpack('>h', 26)[0]/10
|
||||||
|
@ -521,6 +525,10 @@ class Hm600Decode0B(StatusResponse):
|
||||||
""" Grid frequency in Hertz """
|
""" Grid frequency in Hertz """
|
||||||
return self.unpack('>H', 28)[0]/100
|
return self.unpack('>H', 28)[0]/100
|
||||||
@property
|
@property
|
||||||
|
def ac_reactive_power_0(self):
|
||||||
|
""" reactive power """
|
||||||
|
return self.unpack('>H', 32)[0]/10
|
||||||
|
@property
|
||||||
def powerfactor(self):
|
def powerfactor(self):
|
||||||
""" Powerfactor """
|
""" Powerfactor """
|
||||||
return self.unpack('>H', 36)[0]/1000
|
return self.unpack('>H', 36)[0]/1000
|
||||||
|
@ -654,6 +662,10 @@ class Hm1200Decode0B(StatusResponse):
|
||||||
""" Grid frequency in Hertz """
|
""" Grid frequency in Hertz """
|
||||||
return self.unpack('>H', 48)[0]/100
|
return self.unpack('>H', 48)[0]/100
|
||||||
@property
|
@property
|
||||||
|
def ac_reactive_power_0(self):
|
||||||
|
""" reactive power """
|
||||||
|
return self.unpack('>H', 52)[0]/10
|
||||||
|
@property
|
||||||
def powerfactor(self):
|
def powerfactor(self):
|
||||||
""" Powerfactor """
|
""" Powerfactor """
|
||||||
return self.unpack('>H', 56)[0]/1000
|
return self.unpack('>H', 56)[0]/1000
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue