Python Plugin: Sessy battery
Posted: Saturday 23 November 2024 20:49
Hey all,
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:
As I understood that the type 243 can only take energy flow in one direction (so in or out of battery). But when I want to configure the energy dashboard, only the type 243's are selectable. How do I set this up best in the plugin? Can I enter negative values into the 243?
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()