Energy Dashboard (Build in)

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

User avatar
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)

Post by gizmocuz »

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)

Post by sailmich »

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.
Bildschirmfoto vom 2025-04-17 11-29-00.png
Bildschirmfoto vom 2025-04-17 11-29-00.png (121.17 KiB) Viewed 2224 times
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?
User avatar
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)

Post by waltervl »

-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
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)

Post by sailmich »

waltervl wrote: Thursday 17 April 2025 17:20 -918+182=-736
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.
User avatar
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)

Post by waltervl »

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.
Domoticz running on Udoo X86 (on Ubuntu)
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)

Post by sailmich »

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.
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.
Bildschirmfoto vom 2025-04-17 20-05-57.png
Bildschirmfoto vom 2025-04-17 20-05-57.png (8.16 KiB) Viewed 2198 times
So I will have a look on that tomorrow.
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)

Post by Ctenberge »

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?
Attachments
solar_totaal.jpg
solar_totaal.jpg (42.98 KiB) Viewed 1726 times
Electra.jpg
Electra.jpg (44.96 KiB) Viewed 1726 times
dashboard.jpg
dashboard.jpg (195.82 KiB) Viewed 1726 times
Raspberry Pi 3B, Raspberry Pi 4, RFXCOM - RFXtrx433, Z-wave, ESP8266
User avatar
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)

Post by waltervl »

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
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)

Post by eddieb »

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.
Screenshot 2025-09-19 at 07.43.14.png
Screenshot 2025-09-19 at 07.43.14.png (367.05 KiB) Viewed 290 times
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
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)

Post by imautohuttraeger »

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.
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)

Post by eddieb »

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

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 )  )
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
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
User avatar
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)

Post by waltervl »

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.
Domoticz running on Udoo X86 (on Ubuntu)
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)

Post by eddieb »

tnx Walter, I will look into the battery communication for a 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
User avatar
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)

Post by waltervl »

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 ...
There isnt one specific for a battery. You can use a P1 that can monitor delivery and return.
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
gvandick
Posts: 39
Joined: Saturday 01 July 2017 12:48
Target OS: Windows
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by gvandick »

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.

Schermafbeelding 2025-10-05 114852.png
Schermafbeelding 2025-10-05 114852.png (62.44 KiB) Viewed 237 times
MYXOMOP
Posts: 17
Joined: Tuesday 16 July 2024 10:21
Target OS: Linux
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by MYXOMOP »

How can I invert the colors? A white background looks very ugly in dark themes.
Attachments
download.png
download.png (278.67 KiB) Viewed 199 times
User avatar
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)

Post by waltervl »

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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
MYXOMOP
Posts: 17
Joined: Tuesday 16 July 2024 10:21
Target OS: Linux
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by MYXOMOP »

A completely unattractive image with an unnecessary menu and a complete lack of style.
Attachments
IMAGE.jpg
IMAGE.jpg (114.95 KiB) Viewed 139 times
User avatar
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)

Post by jvdz »

MYXOMOP wrote: Tuesday 21 October 2025 10:22 A completely unattractive image with an unnecessary menu and a complete lack of style.
Sounds like you have some frustration and assume you will "fix" this with a nice PR that will show a shiny new page?
MYXOMOP
Posts: 17
Joined: Tuesday 16 July 2024 10:21
Target OS: Linux
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by MYXOMOP »

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?
I found the source of the design and the white background. These are children's coloring pages. :D :D :D
Attachments
IMAGE 2025-10-21.jpg
IMAGE 2025-10-21.jpg (87.5 KiB) Viewed 119 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest