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

imautohuttraeger
Posts: 110
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by imautohuttraeger »

I understand. But honestly: Making kind of static screenshots (even if they are captured frequently) would not reflect the dynamic approach including animation and real-time change of figures.
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: Energy Dashboard (Build in)

Post by BartSr »

@Waltervl

I got it all working now. Meanwhile I cheked the wiki to get information about what is displayed, preferable with some formula's.
Sorry to say but the wiki only shows some input instructions and a screenshot of the dashboard. That's all. In my dashboard I see € values more than in wiki.
Might it be possible to update the wiki in way it makes more sense.
Maybe I'm not that clever but I presume being not the only one :-)

Anyway thanks Walter for pointing me right direction.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
NvBgm
Posts: 7
Joined: Sunday 11 August 2024 15:40
Target OS: Windows
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by NvBgm »

Hi, I have tried to enter the price of water consumption per m at meters and counters, but when I look in the log of the water meter, the amount is not correct.
E.g. liter price is 0.012, then 67 liters should amount to € 0.804.
But it consistently gives me the same value of 0.0010398 per liter.
What am I doing wrong?
User avatar
FireWizard
Posts: 1861
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Energy Dashboard (Build in)

Post by FireWizard »

No doubt, that the creators/developers has also seen the Energy dashboard in Home Assistant and probably also at other places.

In HA they have a widget, representing the fossil-free Energy, which is connected to the "Grid" circle.
See picture below.

HA_ Energy_dashboard.png
HA_ Energy_dashboard.png (195.11 KiB) Viewed 1957 times

Unfortunately it is only possible to connect an extra "Text" device, that displays the fossil-free Energy.

Screenshot_Energy dashboard part.png
Screenshot_Energy dashboard part.png (50.51 KiB) Viewed 1957 times

This information is actually stored in an Electric (Instant + Counter), but cannot be used in the Energy dashboard.

Suggestion: Could this be made possible and connected to the "Grid" circle?

Regards
User avatar
FireWizard
Posts: 1861
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Energy Dashboard (Build in)

Post by FireWizard »

Hi, @NvBgm,
Hi, I have tried to enter the price of water consumption per m at meters and counters, but when I look in the log of the water meter, the amount is not correct.
E.g. liter price is 0.012, then 67 liters should amount to € 0.804.
But it consistently gives me the same value of 0.0010398 per liter.
What am I doing wrong?
Do not insert your price in liters but use the price in m3 as indicated on the "Settings ===> Meters/Counters" page.

Regards
NvBgm
Posts: 7
Joined: Sunday 11 August 2024 15:40
Target OS: Windows
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by NvBgm »

Correct i give the price for m3.
If that price is €1,134 then is the price for 1 litre 1,134 / 1000 = 0,001134
If i have used 67 litre then it wil be € 0.075978 or € 0.076 kost.
I can change the the price in m3 as indicated on the "Settings ===> Meters/Counters" page noting happens.
User avatar
FireWizard
Posts: 1861
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Energy Dashboard (Build in)

Post by FireWizard »

@NvBgm,

If you changed the setting today, wait for another day and check tomorrow again.

Regards
NvBgm
Posts: 7
Joined: Sunday 11 August 2024 15:40
Target OS: Windows
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by NvBgm »

FireWizard wrote: Sunday 11 August 2024 18:52 @NvBgm,

If you changed the setting today, wait for another day and check tomorrow again.

Regards
Oke thanks i wil check tomorrow.
NvBgm
Posts: 7
Joined: Sunday 11 August 2024 15:40
Target OS: Windows
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by NvBgm »

Today I checked whether the price calculation was correct and it was.
But only for water consumption, I do not see a price calculation for electricity and gas. Anyone have an idea where I'm doing it wrong?

Energy Dashboard Settings:
P1/Net: P1 Smart Meter
Gas: Gas meter
Water consumption: Water consumption
User avatar
waltervl
Posts: 5711
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

You should enable price calculation for Electricity and Gas in settings:
https://www.domoticz.com/wiki/Applicati ... alculation
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
marktn
Posts: 232
Joined: Tuesday 21 April 2015 21:39
Target OS: Windows
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by marktn »

It works perfect!

Is it possible for a user with user rights to see the energy dashboard?

Thanks,
Mark
Domoticz latest stable, Intel NUC, Proxmox, Zigate, RFLink, Kaku switches, Ikea lights, Xiaomi sensors, Honeywell smoke detectors, Yeelight, Shelly, Slave Domoticz PI 3B+, Node-Red, Espeasy.
User avatar
waltervl
Posts: 5711
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

marktn wrote: Wednesday 14 August 2024 11:02 It works perfect!

Is it possible for a user with user rights to see the energy dashboard?

Thanks,
Mark
That is implemented only in 2024 Beta last week. So it will be in 2024.8 when released (unknown date).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
marktn
Posts: 232
Joined: Tuesday 21 April 2015 21:39
Target OS: Windows
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by marktn »

waltervl wrote: Wednesday 14 August 2024 11:51
marktn wrote: Wednesday 14 August 2024 11:02 It works perfect!

Is it possible for a user with user rights to see the energy dashboard?

Thanks,
Mark
That is implemented only in 2024 Beta last week. So it will be in 2024.8 when released (unknown date).
Thanks, no problem. I will wait for the release.
Domoticz latest stable, Intel NUC, Proxmox, Zigate, RFLink, Kaku switches, Ikea lights, Xiaomi sensors, Honeywell smoke detectors, Yeelight, Shelly, Slave Domoticz PI 3B+, Node-Red, Espeasy.
ricvee
Posts: 32
Joined: Wednesday 13 May 2015 9:05
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Energy Dashboard (Build in)

Post by ricvee »

Is it possible to extract the computed costs from for example P1 or Solar panels and use it to put in another dummy sensor?

Thanks
User avatar
waltervl
Posts: 5711
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

Yes, it is now part of the JSON API call

Code: Select all

/json.htm?type=command&param=getdevices&rid=IDX
so it should be possible to put in another device with some dzvents script. It is not a standard dvents function so you need to do a lot of special things.
But why? This is why the energy dashboard also is created, to see also the daily costs....
And if you open the log page of the P1 you also can see the daily costs.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
winner61
Posts: 9
Joined: Friday 02 August 2024 12:13
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: Friesland / NL
Contact:

Re: Energy Dashboard (Build in)

Post by winner61 »

Hello, first I would like to give a big thanks to all contributors who makes this all possible. Hats off!
I have a question about the built-in dynamic price calculation. I would like to work with NETTO prices because what you get for your kW's it's without the taxes. It's about 0,15 cent here in the Netherlands. Is there a way to add something to the script and how to accomplish that?
I take the prices from 'Zonneplan' from the Enever feed. Thank you!
User avatar
winner61
Posts: 9
Joined: Friday 02 August 2024 12:13
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: Friesland / NL
Contact:

Re: Energy Dashboard (Build in)

Post by winner61 »

Thank you Waltervl. If you work with dynamic prices based on the feed I assume there is no need to specify prices. These are prices with tax included so seeking a way to substract about 0,148 cent. This is my setting:

dash.png
dash.png (20.59 KiB) Viewed 1606 times
Thank you.

edit: propably I answered another post by Waltervl, sorry for that.
User avatar
waltervl
Posts: 5711
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

I do not think it is possible (yet) to calculate energy costs with different prices for usage and return in Domoticz.
So it will be all with or without Taxes.
To create a cost device without tax create a dummy Custom sensor and have a script reading the enever price device , deduct the tax and put that into the dummy device. Use that dummy device to calculate the energy costs.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
gizmocuz
Posts: 2471
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 »

FireWizard wrote: Sunday 11 August 2024 16:36 No doubt, that the creators/developers has also seen the Energy dashboard in Home Assistant and probably also at other places.

In HA they have a widget, representing the fossil-free Energy, which is connected to the "Grid" circle.
Sure, the implementation in HASS was also taken from other hardware.

How do you calculate the Fossil usage? Are you taking your countries emission factor into account and is this calculated value per year/month/day?

It could be interesting to have this natively implemented in Domoticz and calculate this for/with electricity,gas,water
Quality outlives Quantity!
User avatar
FireWizard
Posts: 1861
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Energy Dashboard (Build in)

Post by FireWizard »

Hello @gizmocuz,

You wrote:
How do you calculate the Fossil usage? Are you taking your countries emission factor into account and is this calculated value per year/month/day?
I take the data form this website: https://app.electricitymaps.com

This site is open-source and has a free API. You need an API key, but you can use it for free.
It will give you in fact the origin of the electricity, that you consume from the grid, as well as the Carbon footprint

Screenshot_Electricity_Map_CO2.png
Screenshot_Electricity_Map_CO2.png (13.61 KiB) Viewed 1424 times
and

Screenshot_Electricity_Map_Electricity.png
Screenshot_Electricity_Map_Electricity.png (24.01 KiB) Viewed 1424 times

In the second picture you will see the fossilFreePercentage for a specific area.
The site supports over 200 areas. Smaller countries, like The Netherlands or Belgium are one area each, while the real big countries have multiple areas.

I assume that the energy, I consume from the grid, consists of that percentage of fossil-free energy.

Therefore I take the power from the grid and multiply it with the percentage. Next I calculate the energy.

So the MQTT value from the P1 device is sent to (in my case) Node-RED (svalue5), multiply it with the percentage and calculate the energy.
This value is returned in a "Text" sensor.

I first created an "Electricity (Instant + Counter) sensor and let Domoticz do the "Energy" calculation, but unfortunately I could not make that sensor visible in the "Energy Dashboard". Therefore I changed it to a "Text" sensor.

I'm not sure, whether it is better to use the fossilFreePercentage or the renewablePercentage. I took for now the HASS presentation
The difference is that fossilFreePercentage includes the nuclear energy and the renewablePercentage is without the nuclear component.

The Node-RED flow I posted at: https://www.domoticz.com/forum/viewtopic.php?t=42587
Are you taking your countries emission factor into account and is this calculated value per year/month/day?
Yes, the emission factor depends on the area, so in this case the country (The Netherlands) and it is calculated hourly.

In the documentation of the API it is stated :
All endpoints return data with a resolution of 1 hour.
It could be interesting to have this natively implemented in Domoticz and calculate this for/with electricity,gas,water
Electricity is quite easy and that is the easiest to calculate. Gas is by definition not fossil-free or renewable.
Water is a different issue. I believe most, if not all, water pumps are electrical pumps. So that is covered by the electricity.

But it would be a good idea to implement in natively in Domoticz. And perhaps, you have some good and interesting ideas as well.

Best Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest