Energy Dashboard - Template

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: 2537
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard - Template

Post by gizmocuz »

New version (1.6)

- fixed issue when using a battery that was powering the house (did not add to home usage)
- Removed all blocking remote queries
- Real-time updates (Requires Domoticz version 16032 or higher)
- Added costs to grid widget (needs dynamic energy prices configured in Domoticz meter settings)

This version is now using web sockets and does update in real-time.
It's no longer needed to call up to 6 blocking http queries each 5 seconds
For the initial call an update to Domoticz was required.

Energy_Dashboard.zip
(8.03 KiB) Downloaded 51 times
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2537
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard - Template

Post by gizmocuz »

New version (1.7)

- Added 3 extra widgets

It 'might' be possible to have a fixed few (max 5) icons to choose from for them.
EnergyDashboardBatt.png
EnergyDashboardBatt.png (171.83 KiB) Viewed 1573 times
Energy_Dashboard.zip
(9.73 KiB) Downloaded 61 times
Quality outlives Quantity!
HvdW
Posts: 612
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Energy Dashboard - Template

Post by HvdW »

Great @gizmocuz!

Could you consider adding a heat pump as well?
Air/air or hybrid.
I'm using a S0 pulse meter for metering car charger and heatpump.

How meneer Klaas his idea has grown.
Bugs bug me.
User avatar
gizmocuz
Posts: 2537
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard - Template

Post by gizmocuz »

@HvdW, not sure what you mean ... I added a heater icon... you want a different icon?
If you mean integrate them, you can already do that by using one of the three extra widgets
You should also have no issues adding your S0 pulse meter in one of the three widgets
(You can put almost anything in there)
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2537
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard - Template

Post by gizmocuz »

v1.8 2024-06-07
- Option to choose 5 different icons for the 3 extra widgets
- Using styles for icon/text colors
- Optimized SVG/Code

Energy_Dashboard.zip
(10.53 KiB) Downloaded 43 times
Quality outlives Quantity!
eddieb
Posts: 335
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Energy Dashboard - Template

Post by eddieb »

Great work !
are there plans to get this code in github ?
If the config part was in a separate file upgrading would be a lot easier
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
eddieb
Posts: 335
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Energy Dashboard - Template

Post by eddieb »

btw, no walking line between solar and home on 1.8 ...
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Energy Dashboard - Template

Post by Kedi »

Works good now. 1 minor issue, the text does not completely fit. (Text from Buienradar.)
07.06.2024_08.00.34_REC.png
07.06.2024_08.00.34_REC.png (12.27 KiB) Viewed 1467 times
07.06.2024_08.01.54_REC.png
07.06.2024_08.01.54_REC.png (2.49 KiB) Viewed 1467 times
I am using Enever hardware, and I wonder which widget should be used for dynamic prices, because my Euro' are still on 0 (zero).
Logic will get you from A to B. Imagination will take you everywhere.
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Energy Dashboard - Template

Post by Kedi »

B.t.w. Where do you get the right size icons from, because I would like to replace 'other' with an 'airco' icon.
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
gizmocuz
Posts: 2537
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard - Template

Post by gizmocuz »

@kedi, that is a very long text line.. there is a mask so it does not overwrite the widgets.
(See the SVG inside the template)

You cannot replace icons! There are 5 icons you can pick from.
This template is the base for when I am building it natively into Domoticz.
One user wants a garden hose, the other wants a bbq icon... not going to happen...
These extra icons are for heavy users, car, heatpump, and 'other'.
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2537
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard - Template

Post by gizmocuz »

@eddieb, Sorry about that, new version here that solves it

v1.9 2024-06-07
- Fixed Solar to Home

Energy_Dashboard.zip
(10.59 KiB) Downloaded 57 times
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2537
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard - Template

Post by gizmocuz »

eddieb wrote: Friday 07 June 2024 8:23 Great work !
are there plans to get this code in github ?
If the config part was in a separate file upgrading would be a lot easier
Yes, eventually it will be build directly into Domoticz where you can configure it from the Settings.
(Maybe Sunday...)

For now, best to copy/paste your config in a file that you can replace back when an new version uploaded here
Quality outlives Quantity!
eddieb
Posts: 335
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Energy Dashboard - Template

Post by eddieb »

tnx, the floating line works again
somewhere between 1.5 and 1.7 the idTextObj stopped working ...
on 1.5 it displayed the status of my solar and from 1.7 on it is not visible
never mind, on 1.9 that works again too
Last edited by eddieb on Friday 07 June 2024 16:59, edited 1 time in total.
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
User avatar
heggink
Posts: 979
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Energy Dashboard - Template

Post by heggink »

gizmocuz wrote: Friday 07 June 2024 16:36 @kedi, that is a very long text line.. there is a mask so it does not overwrite the widgets.
(See the SVG inside the template)

You cannot replace icons! There are 5 icons you can pick from.
This template is the base for when I am building it natively into Domoticz.
One user wants a garden hose, the other wants a bbq icon... not going to happen...
These extra icons are for heavy users, car, heatpump, and 'other'.
Heavy users ey? So you will have to add a jacuzzi, sauna, personal gym, illegal weed plantation... :lol:
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
gizmocuz
Posts: 2537
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard - Template

Post by gizmocuz »

:D Well for the Jacuzzi, Sauna and Pool I added the 'Wave' icon (which is 'water'), so that's covered!

For the weed plantation.... Maybe I need to add a garden hose after all :mrgreen:

I could add one or two icons, but I wish to keep the template small. The icon should be black and consist of a single path object
This can be checked here:

https://www.svgviewer.dev/

And preferable small and good looking
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2537
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard - Template

Post by gizmocuz »

History:
v1.10 2024-06-08
- It is now also possible to use a kWh sensor for idBattSetpoint
- Added prices for Water/Gas and custom widgets
- Decreased font size of custom widgets a little bit

Energy_Dashboard.zip
(10.83 KiB) Downloaded 85 times
Quality outlives Quantity!
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Energy Dashboard - Template

Post by Kedi »

Tnx, after the last commit the prices for Elec and Gas are working with Enever. :D
Logic will get you from A to B. Imagination will take you everywhere.
MeneerKlaas
Posts: 11
Joined: Monday 25 September 2017 17:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Energy Dashboard - Template

Post by MeneerKlaas »

I was on holidays for a couple of weeks and what a nice surprise. Gizmocuz went berserk with my code. I really like this great progress!
Klaas

Raspberry Pi 3: Domoticz, RFXtrx433, Zigbee2MQTT, MQTT, P1 meter, SMA Solar Inverter (modbus TCP/IP)
My Hobby Page about Domoticz & ESP8266
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Energy Dashboard - Template

Post by Kedi »

Negative value from my Solar panels are not taken in to account.
Negative values because the converter takes 2-3 Watts when there is no sun.
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: Energy Dashboard - Template

Post by McMelloW »

@Gizmocuz
The latest update 16046 has the Energy Dasboard implemented. Is that correct? That is great !!!
Do I have to do anything to make it working on my Domoticz after the ./updatebeta?
Greetings McMelloW
Locked

Who is online

Users browsing this forum: No registered users and 1 guest