I'm creating a new plugin for the (Dutch) Sessy batteries. It's working quite ok so far, check my github if you want.
I have some questions for adding it to the energy dashboard:
I'm creating the following power related units:
Code: Select all
if deviceId not in Devices or (self.batEnergyDeliveredUnit not in Devices[deviceId].Units):
Domoticz.Unit(Name=deviceId + " - Battery delivered power", Unit=self.batEnergyDeliveredUnit, Type=243, Subtype=29, Switchtype=4, Used=1, DeviceID=deviceId).Create()
if deviceId not in Devices or (self.batEnergyStoredUnit not in Devices[deviceId].Units):
Domoticz.Unit(Name=deviceId + " - Battery stored power", Unit=self.batEnergyStoredUnit, Type=243, Subtype=29, DeviceID=deviceId).Create()
if deviceId not in Devices or (self.batPowerUnit not in Devices[deviceId].Units):
Domoticz.Unit(Name=deviceId + ' - Battery in/output power', Unit=self.batPowerUnit, Type=250, Subtype=1, DeviceID=deviceId).Create()