Energy Dashboard (Build in)
Moderator: leecollings
- FireWizard
- Posts: 1980
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Energy Dashboard (Build in)
Good afternoon @MYXOMOP,
It looks your are a creative designer, or is the image of that clown simply stolen from the creativity of someone else?
Keep in mind that Domoticz is opensource. You can use the software for free and except of the needed hardware, no costs are involved.
Opensource means also, that you have the possibility to change and to improve the code yourself. If you share that work with the community, everybody is happy.
However, if you dislike Domoticz for its design, you may move to another solution.
A lot of people prefer Home Assistant and the have an Energy dashboard, as well.
It looks like:
Just this afternoon, some commercial advertisement has been dropped in my mailbox.
They had also an Energy Dashboard. The solution will cost you 999 Euro.
You like it, then buy it.
So the community is now very curious for your revolutionary new design of the Energy Dashboard.
Regards
It looks your are a creative designer, or is the image of that clown simply stolen from the creativity of someone else?
Keep in mind that Domoticz is opensource. You can use the software for free and except of the needed hardware, no costs are involved.
Opensource means also, that you have the possibility to change and to improve the code yourself. If you share that work with the community, everybody is happy.
However, if you dislike Domoticz for its design, you may move to another solution.
A lot of people prefer Home Assistant and the have an Energy dashboard, as well.
It looks like:
Just this afternoon, some commercial advertisement has been dropped in my mailbox.
They had also an Energy Dashboard. The solution will cost you 999 Euro.
You like it, then buy it.
So the community is now very curious for your revolutionary new design of the Energy Dashboard.
Regards
Re: Energy Dashboard (Build in)
In general, it was a joke with a hint of criticism. I only use Domotics as a dashboard, and I like its graphics. My main smart home system is the free and highly professional HOMEd system from a programmer who is a C++ genius. Therefore, I have a choice among free programs.
I hope many people here understand humor and criticism.

I hope many people here understand humor and criticism.
- Attachments
-
- IMAG.jpg (57.11 KiB) Viewed 5824 times
- FireWizard
- Posts: 1980
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Energy Dashboard (Build in)
Hi @MYXOMOP
You said:
But, you know the saying: "You must not look a gift horse in the mouth".
B.t.w. What is HOMEd. I tried to find it, but did not succeed, yet?
Regards
You said:
Yes, I do.I hope many people here understand humor and criticism
But, you know the saying: "You must not look a gift horse in the mouth".
B.t.w. What is HOMEd. I tried to find it, but did not succeed, yet?
Regards
Re: Energy Dashboard (Build in)
This is a highly classified Russian project, only to be read through an online translator.FireWizard wrote: Tuesday 21 October 2025 16:18 B.t.w. What is HOMEd. I tried to find it, but did not succeed, yet?
https://github.com/u236
- Sjonnie2017
- Posts: 378
- Joined: Wednesday 02 August 2017 19:43
- Target OS: Linux
- Domoticz version: Latest ß
- Location: The Netherlands
- Contact:
Re: Energy Dashboard (Build in)
My reply is no longer needed as Firewizard' s responses were spot on.
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
-
vlimper
- Posts: 4
- Joined: Saturday 08 November 2025 10:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Energy Dashboard (Build in)
Morning all. Just getting started with the Engery Dashboard here.. See attached picture.
My "Usage L1+L2+L3" parameter shows a total usage of my devices of 414W, whilst the P1 meter shows a flow of 638W to my home.
Do I read things wrong? Who can enlighten me?
Thanks in advance!
BR,
Marc
My "Usage L1+L2+L3" parameter shows a total usage of my devices of 414W, whilst the P1 meter shows a flow of 638W to my home.
Do I read things wrong? Who can enlighten me?
Thanks in advance!
BR,
Marc
- Attachments
-
- Snipaste_2025-11-08_11-41-36.jpg (92.62 KiB) Viewed 5963 times
- imautohuttraeger
- Posts: 486
- Joined: Saturday 14 March 2020 13:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: lat.beta
- Location: Germany
- Contact:
- waltervl
- Posts: 7047
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
Indeed probably a timing issue. The P1 meter shows -2082 Watt, the sun generates 2720 Watt, so then the dashboard calculated there is a usage in the house of 638 Watt.
Is L1+2+3 also coming directly from the P1 meter or is it measuring something else? If coming directly from the P1 meter is is a little bit strange it is so different.
Is L1+2+3 also coming directly from the P1 meter or is it measuring something else? If coming directly from the P1 meter is is a little bit strange it is so different.
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
-
vlimper
- Posts: 4
- Joined: Saturday 08 November 2025 10:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Energy Dashboard (Build in)
@waltervl Yes, L1+L2+L3 also comes from the P1 meter indeed. That's why it confused me. But like imautohuttraeger mentioned, it's probably a timing issue. Thanks for thinking with me.
-
dime
- Posts: 6
- Joined: Friday 15 September 2017 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Energy Dashboard (Build in)
Hi,hjzwiers wrote: Thursday 13 June 2024 10:24 I like the introduction of an energy board!
I have the solaredge modbustcp installed.
Only my total solar production I have calculated from the inverter + battery:
solar = inverter + to_battery
home = solar - (export - import) - to_battery
When I fill the values in the settings sheet the battery displays well, but the and the home values which are calculated by domoticz are too low, it ignores the Solar total value that I calculate.
I check these values with the solaredge monitor (have installed batter + in and export meter)
The calculation by Domoticz does indeed not take into account the actual power consumption of the ‘house’. The actual power consumption is that supplied by the panels&battery (1) + supplied by the grid (2).
(1) cannot be obtained from P1
Have you been able to find a good solution?
- waltervl
- Posts: 7047
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
The energy dashboard calculates the power consumption of the house based on the values from grid (P1), solar and battery devices.
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
-
dime
- Posts: 6
- Joined: Friday 15 September 2017 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Energy Dashboard (Build in)
Thank you for your response waltervl!waltervl wrote: Saturday 13 December 2025 15:02 The energy dashboard calculates the power consumption of the house based on the values from grid (P1), solar and battery devices.
Nevertheless, I still cannot balance the calculation in Eboard. Eboard seems to take the delivery to the grid from P1 as its starting point, not that from the panels, regardless of what I select in the Eboard settings. I always end up with an amount of power (the difference between the panels and the P1 delivery) that, according to my calculations, is vanished like the sun behind the clouds. And I'm not talking about a few watts, or due to time synchronization.
- waltervl
- Posts: 7047
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
Just select what should be selected and it works (for me).
If P1 is using 1000W from grid and Solar is producing 1000W, the house is consuming 2000W
If P1 is returning 1000W to the grid and Solar is producing 2000W, the house is consuming 1000W.
If P1 is using 1000W from grid and Solar is producing 1000W, the house is consuming 2000W
If P1 is returning 1000W to the grid and Solar is producing 2000W, the house is consuming 1000W.
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
- imautohuttraeger
- Posts: 486
- Joined: Saturday 14 March 2020 13:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: lat.beta
- Location: Germany
- Contact:
Re: Energy Dashboard (Build in)
I guess that user "dime" has similar problems like me. Formerly I just a plug and play small solar power plant and the energy dashboard worked perfectly. Later I have installed a big solar plant with a SolarEdge inverter an activated solaredge modbus hardware to domoticz. With this, the figures are not correct and due to little time for it I gave up figuring out. Somehow, the Modbus figures from SolarEdge do not deliver the current pure solar power.
Stop, look and listen.
- waltervl
- Posts: 7047
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: Energy Dashboard (Build in)
I have 3 solar plants and I combine those plants into 1 total Electric (instant+counter) solar production device and that works just fine. The dzvents script for combining multiple solar plants are in this discussion.
The calculation is very simple, it is the sum of grid (P1), Solar and Battery. Sometimes people have mixed up their Domoticz devices direction (eg Usage is in real Production) and the calculation goes wrong.
The calculation is very simple, it is the sum of grid (P1), Solar and Battery. Sometimes people have mixed up their Domoticz devices direction (eg Usage is in real Production) and the calculation goes wrong.
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
- imautohuttraeger
- Posts: 486
- Joined: Saturday 14 March 2020 13:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: lat.beta
- Location: Germany
- Contact:
Re: Energy Dashboard (Build in)
I haven't combined my big plant with the small plant. The problem also occurs, if I switch off the small plant.
The modbus "power" figure from the SolarEdge inverter is not showing the pure solar panel production. It seems to minus batterie discharging and add batterie charging, so actually a virtual device must be created from that. But every calculation fails, because there seems to be even more influencing factors which I cannot describe and which doesn't feel logic to me.
However, currently my time for debugging is very limited (and I am far away from really knowing what I am doing
), so I gave up and look ahead to maybe use an already installed Shelly 3 EM as a source of information instead in the future. But u fortunately MQTT results of this device doesn't show power in watt but only voltage, current and power factor. So I have to calculate this via script an feed a virtual device wit it. But I don't have a "copy - paste" pattern that I can use for adjustment.
The modbus "power" figure from the SolarEdge inverter is not showing the pure solar panel production. It seems to minus batterie discharging and add batterie charging, so actually a virtual device must be created from that. But every calculation fails, because there seems to be even more influencing factors which I cannot describe and which doesn't feel logic to me.
However, currently my time for debugging is very limited (and I am far away from really knowing what I am doing
Stop, look and listen.
-
BarryT
- Posts: 412
- Joined: Tuesday 31 March 2015 22:06
- Target OS: Linux
- Domoticz version: 2024.3
- Location: east netherlands
- Contact:
Re: Energy Dashboard (Build in)
I never used the energy dashboard from domoticz because i miss some essential things like history / stats,
so i made a responsive dashboard with a simple sqlite database and live stats with history saved to a csv file.
all is working out of a very simple 70mb docker compose (python webserver) with only 2 files: dashboard.html / dashboard.py
so i made a responsive dashboard with a simple sqlite database and live stats with history saved to a csv file.
all is working out of a very simple 70mb docker compose (python webserver) with only 2 files: dashboard.html / dashboard.py
- gizmocuz
- Posts: 3086
- 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)
It is what you would like/need to see...
But why would you query a live sqlite database? Not recommended. You can better do this via the JSON API calls, or even better, create a template in www/templates that reacts live on your device updates maybe?
But why would you query a live sqlite database? Not recommended. You can better do this via the JSON API calls, or even better, create a template in www/templates that reacts live on your device updates maybe?
Quality outlives Quantity!
-
BarryT
- Posts: 412
- Joined: Tuesday 31 March 2015 22:06
- Target OS: Linux
- Domoticz version: 2024.3
- Location: east netherlands
- Contact:
Re: Energy Dashboard (Build in)
That is true. I peronally really like to see what happend in the past, so you can see more flows of the energy and how the installation is working.gizmocuz wrote: Sunday 17 May 2026 8:12 It is what you would like/need to see...
But why would you query a live sqlite database? Not recommended. You can better do this via the JSON API calls, or even better, create a template in www/templates that reacts live on your device updates maybe?
It is using the (api) json calls, but when using the template (html) inside domoticz the page was not function fully due responsive issues inside the page.
The sqlite is using for storing the data to do the graphs.
Code: Select all
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# BT Energy Dashboard Optimized v6 + 1-minuut grafieken
# Server-side Domoticz polling + SQLite history + lightweight browser endpoints.
# Geen externe Python packages nodig.
#
# Fix v5:
# - Frontend companion ondersteunt nu geoptimaliseerde EMS preview modes (live/uur/dag).
# - Backend ondersteunt nu ook 1-minuut grafieken via /api/history?range=60.
# - Backend blijft 10 minuten op 5s resolutie serveren en houdt uur/dag efficiënt geaggregeerd.
#
# Oorspronkelijke fixes:
# - Domoticz nieuwe API-route:
# /json.htm?type=command¶m=getdevices&rid=<idx>
# - Parser herkent jouw realtime tekst:
# "PV totaal 14631W -> Huis 586W | PV -> Accu 7203W | PV -> Net 6842W"
# - /api/state geeft zowel top-level velden als values{} terug.
# - Grafieken worden gevuld met echte waarden in plaats van 0.
#
# Start:
# python -u dashboard.py
from http.server import ThreadingHTTPServer, SimpleHTTPRequestHandler
from urllib.parse import urlparse, parse_qs, quote
from pathlib import Path
import csv
import gzip
import io
import json
import os
import re
import sqlite3
import threading
import time
import urllib.request
import urllib.error
import base64
HOST = "0.0.0.0"
PORT = int(os.environ.get("PORT", "80"))
BASE_DIR = Path(__file__).resolve().parent
DB_FILE = BASE_DIR / "energy_history.sqlite"
DASHBOARD_FILE = os.environ.get("HTML_FILE", "dashboard.html")
# ===== Domoticz instellingen =====
DOMOTICZ_BASE = os.environ.get("DOMOTICZ_BASE", "http://192.168.1.3").rstrip("/")
DOMOTICZ_USERNAME = os.environ.get("DOMOTICZ_USERNAME", "").strip()
DOMOTICZ_PASSWORD = os.environ.get("DOMOTICZ_PASSWORD", "").strip()
REALTIME_IDX = int(os.environ.get("REALTIME_IDX", "5054"))
SOC_IDX = int(os.environ.get("SOC_IDX", "5021"))
SOC_STATUS_IDX = int(os.environ.get("SOC_STATUS_IDX", "5061"))
POLL_SECONDS = float(os.environ.get("POLL_SECONDS", "2.5"))
STORE_SECONDS = float(os.environ.get("STORE_SECONDS", "5"))
RETENTION_DAYS = int(os.environ.get("RETENTION_DAYS", "30"))
HTTP_TIMEOUT = float(os.environ.get("HTTP_TIMEOUT", "5"))
FIELDS = [
"pv", "huis", "accu", "net",
"pvHuis", "accuHuis", "netHuis",
"pvNet", "pvAccu", "accuNet", "netAccu",
]
STATE_LOCK = threading.RLock()
STATE = {
"ok": False,
"ts": 0,
"timestamp": 0,
"age": None,
"error": "nog geen data",
"raw": "",
"soc": None,
"soc_status": "",
"socStatus": "",
"poll_seconds": POLL_SECONDS,
"store_seconds": STORE_SECONDS,
"domoticz_base": DOMOTICZ_BASE,
"realtime_idx": REALTIME_IDX,
"soc_idx": SOC_IDX,
"soc_status_idx": SOC_STATUS_IDX,
"values": {k: 0 for k in FIELDS},
**{k: 0 for k in FIELDS},
}Re: Energy Dashboard (Build in)
Everything is working fine after updating to the new version of Domoticz 2026.2, but the Energy Dashboard is broken
- Attachments
-
- dashh.jpg (267.66 KiB) Viewed 4379 times
-
- dash.jpg (330.14 KiB) Viewed 4380 times