-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Is there any useful reason to append strings to a class (self)?
And if so, what is the meaning of the values?
If it is the register number, it needs another change to complete commit #9f47563:
class SungrowInverter(SungrowProduct):
def __init__(self, client, servicename, deviceinstance):
super().__init__(client, 'Sungrow Inverter', servicename, deviceinstance)
# Fixed values
maxpower = 10 # self.read(XXX)
self._dbusservice.add_path('/Ac/MaxPower', maxpower)
position = 0 # where it's connected to the inverter. 0=AC input 1; 1=AC output; 2=AC input 2
self._dbusservice.add_path('/Position', position)
self += '/Ac/Energy/Forward', 'kWh', 5004 #Total produced energy over all phases = Total power yields
self += '/Ac/Power', 'W', 5009 # Total apparent power
to
self += '/Ac/Power', 'W', 5031 # Total active power
Metadata
Metadata
Assignees
Labels
No labels