thanks,
That is the type that is created by the HomeWizard Battery plugin and is called "Active Power" and possible to include in the Electricity Dashboard.
But no possibility to include more than one battery per hardware integration. So you have to do combine them in one single hardware setup,as you did apparently. But that needs a mayor update of the plugin with some extra token/ip settings. Therefor I just combine them with a dzventz script. I used a "usage electric" sensor but apparently I could have better use a "general kwh" dummy sensor.
Regards,
HomeWizard Battery plugin
Moderator: leecollings
-
- Posts: 38
- Joined: Friday 10 June 2022 23:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: HomeWizard Battery plugin
Domoticz running on Pi-4, Ubuntu(amd64), Synology Nas and VM
Hardware: RFXCOM, RFLINK, P1-smartmeter-HomeWizard, Z2M Sonoff dongle(20+ devices), Esp8266 (counters), Eaton_3S ups
Hardware: RFXCOM, RFLINK, P1-smartmeter-HomeWizard, Z2M Sonoff dongle(20+ devices), Esp8266 (counters), Eaton_3S ups
-
- Posts: 17
- Joined: Sunday 07 October 2018 17:21
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Bollenstreek
- Contact:
Re: HomeWizard Battery plugin
Thanks for the feedback. I will mention in README.md that one can combine multiple batteries using some additional event handling code. I don't feel like combining multiple batteries together with the plugin.rini52 wrote: ↑Friday 23 May 2025 11:47 This is really great stuff. I just received 3 batteries and they work great as they were designed. However the p1-senseor is not selectable from the energy dashboard the "active power" sensor is. This sensor shows the Import-Export power of the battery. Since I had 3 batteries i had to sum them and put the result in a "usage electricity" sensor. Similar for the percentage(SOC) sensors. They can both be used in the Energy Dashboard"
I myself have 2 batteries and I just configured them in domoticz as 2 separate hardware devices. And indeed I'm using a dummy device to sum the actual power together using some lua scripting. A similar script runs when the SOC of a battery changes to provide the overal SOC value.
Code: Select all
return
{
on =
{
devices = {1827, 1828}
},
execute = function(domoticz, item)
local battery1Power = domoticz.devices(1827) -- Battery set 1, existing General kwh device
local battery2Power = domoticz.devices(1828) -- Battery set 2, existing General kwh device
-- Create manually a dummy kWh, Electricity (instant and counter) device in generation mode
local totalPower = domoticz.devices(1813) -- Total, to be used in Energy dashboard configuration
totalPower.updateElectricity(
battery1Power.actualWatt + battery2Power.actualWatt,
battery1Power.WhTotal + battery2Power.WhTotal)
end
}
-
- Posts: 16
- Joined: Monday 02 January 2023 15:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.1
- Location: Eindhoven
- Contact:
Re: HomeWizard Battery plugin
Hi,
Great work.
I have a HW battery and i want to include it into Domoticz.
Although i'm an Domoticz enthusiast since 2017 i'n not femilliar with scripting.
Can someone guide me through setting up this plugin?
PS; I've considered following a course scripting before, any suggestions on where to start are welcome!
Great work.
I have a HW battery and i want to include it into Domoticz.
Although i'm an Domoticz enthusiast since 2017 i'n not femilliar with scripting.
Can someone guide me through setting up this plugin?
PS; I've considered following a course scripting before, any suggestions on where to start are welcome!
Raspberry 3B with Raspberry PI OS
-
- Posts: 17
- Joined: Sunday 07 October 2018 17:21
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Bollenstreek
- Contact:
Re: HomeWizard Battery plugin
Good news, with 1 battery there is no need for scripting.
To install the python plugin see this wiki page: https://wiki.domoticz.com/Using_Python_plugins
Consider using the domoticz python plugin manager, as that takes the burden away from the git checkout. To be honest, I have not used the plugin manager plugin. See https://wiki.domoticz.com/Python_Plugin_Manager
Read the readme.md of the battery plugin to get a token needed to communicate with it.
Let me know in case of questions.
-
- Posts: 38
- Joined: Friday 10 June 2022 23:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: HomeWizard Battery plugin
Thanks for the example.
Attached I included tthe percentage as well.
Regards
Attached I included tthe percentage as well.
Regards
Domoticz running on Pi-4, Ubuntu(amd64), Synology Nas and VM
Hardware: RFXCOM, RFLINK, P1-smartmeter-HomeWizard, Z2M Sonoff dongle(20+ devices), Esp8266 (counters), Eaton_3S ups
Hardware: RFXCOM, RFLINK, P1-smartmeter-HomeWizard, Z2M Sonoff dongle(20+ devices), Esp8266 (counters), Eaton_3S ups
Who is online
Users browsing this forum: reinestein and 1 guest