Page 10 of 15

Re: Energy Dashboard (Build in)

Posted: Thursday 08 August 2024 19:19
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.

Re: Energy Dashboard (Build in)

Posted: Saturday 10 August 2024 15:51
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.

Re: Energy Dashboard (Build in)

Posted: Sunday 11 August 2024 15:48
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?

Re: Energy Dashboard (Build in)

Posted: Sunday 11 August 2024 16:36
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 2405 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 2405 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

Re: Energy Dashboard (Build in)

Posted: Sunday 11 August 2024 16:43
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

Re: Energy Dashboard (Build in)

Posted: Sunday 11 August 2024 18:25
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.

Re: Energy Dashboard (Build in)

Posted: Sunday 11 August 2024 18:52
by FireWizard
@NvBgm,

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

Regards

Re: Energy Dashboard (Build in)

Posted: Sunday 11 August 2024 21:20
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.

Re: Energy Dashboard (Build in)

Posted: Monday 12 August 2024 9:41
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

Re: Energy Dashboard (Build in)

Posted: Monday 12 August 2024 10:08
by waltervl
You should enable price calculation for Electricity and Gas in settings:
https://www.domoticz.com/wiki/Applicati ... alculation

Re: Energy Dashboard (Build in)

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

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

Thanks,
Mark

Re: Energy Dashboard (Build in)

Posted: Wednesday 14 August 2024 11:51
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).

Re: Energy Dashboard (Build in)

Posted: Wednesday 14 August 2024 12:43
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.

Re: Energy Dashboard (Build in)

Posted: Wednesday 14 August 2024 21:00
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

Re: Energy Dashboard (Build in)

Posted: Wednesday 14 August 2024 22:57
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.

Re: Energy Dashboard (Build in)

Posted: Friday 16 August 2024 9:07
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!

Re: Energy Dashboard (Build in)

Posted: Friday 16 August 2024 9:38
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 2054 times
Thank you.

edit: propably I answered another post by Waltervl, sorry for that.

Re: Energy Dashboard (Build in)

Posted: Friday 16 August 2024 11:14
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.

Re: Energy Dashboard (Build in)

Posted: Monday 19 August 2024 8:36
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

Re: Energy Dashboard (Build in)

Posted: Monday 19 August 2024 19:29
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 1872 times
and

Screenshot_Electricity_Map_Electricity.png
Screenshot_Electricity_Map_Electricity.png (24.01 KiB) Viewed 1872 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