Energy Dashboard (Build in)
Moderator: leecollings
- gizmocuz
- Posts: 2709
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Energy Dashboard (Build in)
So you need to enable websocket support for your NGINX proxy manager (that is just a checkbox)
Quality outlives Quantity!
-
sailmich
- Posts: 245
- Joined: Wednesday 17 February 2016 22:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Germany
- Contact:
Re: Energy Dashboard (Build in)
Newest domoticz beta is running on RPi 4.
I use node red to collect data for a virtual P1 smart meter in domoticz. The values are plausible and correct in the dummy P1 device. I assume the values from my P1 meter should be equal to the values shown in the energy dashboard. For better understanding appendix screenshot. PV_total is my solar device in energy dashboard. Actual usage and Actual return sending values to P1 virtuell.
The screenshot is from the same moment as you can see of the value from PV_total. Why I got in the energy dashboard 736 Watt to grid instead of 918 Watt from P1 virtuell?
I use node red to collect data for a virtual P1 smart meter in domoticz. The values are plausible and correct in the dummy P1 device. I assume the values from my P1 meter should be equal to the values shown in the energy dashboard. For better understanding appendix screenshot. PV_total is my solar device in energy dashboard. Actual usage and Actual return sending values to P1 virtuell.
The screenshot is from the same moment as you can see of the value from PV_total. Why I got in the energy dashboard 736 Watt to grid instead of 918 Watt from P1 virtuell?
- waltervl
- Posts: 6678
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
-918+182=-736
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
sailmich
- Posts: 245
- Joined: Wednesday 17 February 2016 22:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Germany
- Contact:
Re: Energy Dashboard (Build in)
Hello waltervl,
Thank you for your answer, I understand your calculation but I don't understand why you use it.
I don't have a real P1 smart meter, so I don't know how it's working. From domoticz json/api I understand the last two numbers for P1 are for actual usage and actual return. So I interpret that actual usage is going to my house and actual return is going to the grid. I thought the minus in front of actual return is just an indicate that is going back to grid. 1100W = 182W+918W.
When I watch direct of the counter from my supplier I see 918W not 736W.
Can you tell me what actual usage and return is standing for.
- waltervl
- Posts: 6678
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
If you have 3 phase grid connection you can have for example usage from grid on phase 1 and return on phase 2 or 3.
It depends on the connection of your solar production and usage devices per phase.
Your P1 viruell meter shows "182 Watt, -968 Watt" meaning that in total there is on some phases in total 182 Watt usage and on other phases in total -968 Watt return to the grid. So nett over all phases it is 182-968=-736 Watt return. And that is shown in the energy dashboard.
If you do not have a 3 phase connection then it is not possible to have return and usage on the same time and then your P1 integration is not correct.
It depends on the connection of your solar production and usage devices per phase.
Your P1 viruell meter shows "182 Watt, -968 Watt" meaning that in total there is on some phases in total 182 Watt usage and on other phases in total -968 Watt return to the grid. So nett over all phases it is 182-968=-736 Watt return. And that is shown in the energy dashboard.
If you do not have a 3 phase connection then it is not possible to have return and usage on the same time and then your P1 integration is not correct.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
sailmich
- Posts: 245
- Joined: Wednesday 17 February 2016 22:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Germany
- Contact:
Re: Energy Dashboard (Build in)
Thank you very much for the explanation! I have a 3 phase connection, I just took power total from it and sent it to the P1 smart meter. So I will have a look on that tomorrow.waltervl wrote: Thursday 17 April 2025 19:35 If you have 3 phase grid connection you can have for example usage from grid on phase 1 and return on phase 2 or 3.
It depends on the connection of your solar production and usage devices per phase.
Your P1 viruell meter shows "182 Watt, -968 Watt" meaning that in total there is on some phases in total 182 Watt usage and on other phases in total -968 Watt return to the grid. So nett over all phases it is 182-968=-736 Watt return. And that is shown in the energy dashboard.
If you do not have a 3 phase connection then it is not possible to have return and usage on the same time and then your P1 integration is not correct.
Edit:
Spent some hours without success because my devices use plus and minus. I found a lua script from @psubiaco that did it! Thank you very much.
-
Ctenberge
- Posts: 40
- Joined: Friday 03 January 2020 15:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Zwolle, the Netherlands
- Contact:
Re: Energy Dashboard (Build in)
Hello, I can't find a way to place a new topic and how I have managed to put this, I can't reproduce.
But there is a new problem in my energy dashboard after the new version of Domoticz (Version: 2025.1)
My house does not get any energy as long as the solarpanels produce energy.
Looking at the devices and I see that there is flowing energy (it's obvious of course). in my house
Here are 3 pictures to show
Why has it changed?
But there is a new problem in my energy dashboard after the new version of Domoticz (Version: 2025.1)
My house does not get any energy as long as the solarpanels produce energy.
Looking at the devices and I see that there is flowing energy (it's obvious of course). in my house
Here are 3 pictures to show
Why has it changed?
- Attachments
-
- solar_totaal.jpg (42.98 KiB) Viewed 1726 times
-
- Electra.jpg (44.96 KiB) Viewed 1726 times
-
- dashboard.jpg (195.82 KiB) Viewed 1726 times
Raspberry Pi 3B, Raspberry Pi 4, RFXCOM - RFXtrx433, Z-wave, ESP8266
- waltervl
- Posts: 6678
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
Seems the dasboard solar production gets the wrong data. Are the settings of the dashboard correct? It could also be a changing issue. What if you open Domoticz energy dashboard in a private/incognito browser session?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
eddieb
- Posts: 391
- Joined: Wednesday 04 July 2018 7:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Energy Dashboard (Build in)
Hi,
I am trying to create a graph over the total "real" energy used in my house.
The energy dashboard allready displays this but I can not get it to work in a separate device.
So, I want to have a "device" that contains history of the "home" circle in this graph, is that possible as addition ?
OR, how is it exactly calculated, because I can not get it to work.
I am trying to create a graph over the total "real" energy used in my house.
The energy dashboard allready displays this but I can not get it to work in a separate device.
So, I want to have a "device" that contains history of the "home" circle in this graph, is that possible as addition ?
OR, how is it exactly calculated, because I can not get it to work.
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / Marstek Venus / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Feeding ADSB https://adsb.im/home
-
imautohuttraeger
- Posts: 172
- Joined: Saturday 14 March 2020 13:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.1
- Location: Germany
- Contact:
Re: Energy Dashboard (Build in)
You can get the daily total electricity consumption, which is shown in the circle withe the house, by this calculation:
purchased from grid
+ PV yield
- export to grid
I am not shure about what comes from the batterie, but actually the consumption from the battery usually also goes via the inverter, so this should be cumulative.
purchased from grid
+ PV yield
- export to grid
I am not shure about what comes from the batterie, but actually the consumption from the battery usually also goes via the inverter, so this should be cumulative.
-
eddieb
- Posts: 391
- Joined: Wednesday 04 July 2018 7:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Energy Dashboard (Build in)
I actually want just a device graph with real time updates (every minute or every 5 min is fine)
I tried the calculations but none of them work
these calculations only work if there is no power from or to the battery, somehow the battey counters do not show me what I need BUT in the energy dashboard it works ok
I tried the calculations but none of them work
Code: Select all
newEnergy = P1.actualWatt - P1.usageDelivered + solarEnergy.actualWatt + battery.actualWatt
updateEnergy(usageReal, newEnergy )
newElectricity = P1.usage1 + P1.usage2 - P1.return1 - P1.return2 + solarEnergy.WhTotal + battery.return1 - battery.usage1
updateElectricity(realUsage, ( newElectricity ) , ( newEnergy ) )RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / Marstek Venus / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Feeding ADSB https://adsb.im/home
- waltervl
- Posts: 6678
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
Here is the code were the calculation of the energydashboard is done:
https://github.com/domoticz/domoticz/bl ... er.js#L595
If you click on the parameters you see how they get calculated.
https://github.com/domoticz/domoticz/bl ... er.js#L595
If you click on the parameters you see how they get calculated.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
eddieb
- Posts: 391
- Joined: Wednesday 04 July 2018 7:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Energy Dashboard (Build in)
tnx Walter, I will look into the battery communication for a counter ...
Until now I did not find a "inc/decreasing" counter ...
Until now I did not find a "inc/decreasing" counter ...
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / Marstek Venus / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Feeding ADSB https://adsb.im/home
- waltervl
- Posts: 6678
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
There isnt one specific for a battery. You can use a P1 that can monitor delivery and return.eddieb wrote: Friday 19 September 2025 11:21 tnx Walter, I will look into the battery communication for a counter ...
Until now I did not find a "inc/decreasing" counter ...
A Electricity (instant and counter) kWh device can also increase/decrease (like the old turning disc energy meter of your home)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
gvandick
- Posts: 39
- Joined: Saturday 01 July 2017 12:48
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Energy Dashboard (Build in)
Just an idea.
I used the enegry monitor from april this year. Recently I buy a second plugin battery Homewizard. I added this as a widget to the monitor.
So I wonder if it is possible to added more batteries to the scheme with a flow.
I made a flow scheme. Most battery suppliers plugins have 4 units.
I used the enegry monitor from april this year. Recently I buy a second plugin battery Homewizard. I added this as a widget to the monitor.
So I wonder if it is possible to added more batteries to the scheme with a flow.
I made a flow scheme. Most battery suppliers plugins have 4 units.
Re: Energy Dashboard (Build in)
How can I invert the colors? A white background looks very ugly in dark themes.
- Attachments
-
- download.png (278.67 KiB) Viewed 199 times
- waltervl
- Posts: 6678
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
Colors are hardcoded in domoticz/www/views/energy_dashboard.html
https://github.com/domoticz/domoticz/bl ... d.html#L79
You can modify the colors on your system, be aware after a domoticz update the colors are reset to default.
https://github.com/domoticz/domoticz/bl ... d.html#L79
You can modify the colors on your system, be aware after a domoticz update the colors are reset to default.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Re: Energy Dashboard (Build in)
A completely unattractive image with an unnecessary menu and a complete lack of style.
- Attachments
-
- IMAGE.jpg (114.95 KiB) Viewed 139 times
- jvdz
- Posts: 2441
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Energy Dashboard (Build in)
Sounds like you have some frustration and assume you will "fix" this with a nice PR that will show a shiny new page?MYXOMOP wrote: Tuesday 21 October 2025 10:22 A completely unattractive image with an unnecessary menu and a complete lack of style.
Re: Energy Dashboard (Build in)
I found the source of the design and the white background. These are children's coloring pages.jvdz wrote: Tuesday 21 October 2025 11:02 Sounds like you have some frustration and assume you will "fix" this with a nice PR that will show a shiny new page?
- Attachments
-
- IMAGE 2025-10-21.jpg (87.5 KiB) Viewed 119 times
Who is online
Users browsing this forum: No registered users and 1 guest