Search found 16 matches
- Wednesday 26 March 2025 21:23
- Forum: dzVents
- Topic: Energy Costs Calculator
- Replies: 10
- Views: 1231
Re: Energy Costs Calculator
Hello @waltervl Yes I know. But at the time I started this project I did not have the cost of electricity and gas visible in the Energy Dashboard and I did not understand why. I have now found in the forum how to take care of that. https://forum.domoticz.com/viewtopic.php?p=317557#p317557 However ...
- Monday 24 March 2025 21:51
- Forum: dzVents
- Topic: Script not working as expected...
- Replies: 8
- Views: 788
- Monday 24 March 2025 21:39
- Forum: dzVents
- Topic: Energy Costs Calculator
- Replies: 10
- Views: 1231
Energy Costs Calculator
For several years I have been using a script to calculate my energy costs. I once downloaded that from https://ehoco.nl/stroom-gas-en-waterkosten-zichtbaar-maken-domoticz/ but it was also in other places. Because I have another energy supplier who uses different rates and calculations I wanted to ...
- Wednesday 19 February 2025 13:50
- Forum: dzVents
- Topic: Script not working as expected...
- Replies: 8
- Views: 788
Re: Script not working as expected...
@HvdW
This works excellent.
With this as a base, I can move on, and see what else I need, and customise it to my needs.
Great work.
Regards,
Henny
This works excellent.
With this as a base, I can move on, and see what else I need, and customise it to my needs.
Great work.
Regards,
Henny
- Tuesday 18 February 2025 22:27
- Forum: dzVents
- Topic: Script not working as expected...
- Replies: 8
- Views: 788
Re: Script not working as expected...
@HvdW, Hello, I see you are an expert in this matter. I will implement and test it tomorrow. I spent quite some time experimenting again this afternoon, but to no result. Thanks for now and I'll let you know if it works and gives the result I'm hoping for. That sensor I'll call ‘EnergieRekening’ I th ...
- Tuesday 18 February 2025 10:35
- Forum: dzVents
- Topic: Script not working as expected...
- Replies: 8
- Views: 788
Re: Script not working as expected...
@HvdW
Your AI generated script doesn't work neither.
Or the script is not right, or I'm doing something wrong.

Regards, Henny
Your AI generated script doesn't work neither.
Or the script is not right, or I'm doing something wrong.


Regards, Henny
- Tuesday 18 February 2025 10:22
- Forum: dzVents
- Topic: Script not working as expected...
- Replies: 8
- Views: 788
Re: Script not working as expected...
Oké, thanks. I don't quite understand the inpact of your last sentence. I found the script here: https://ehoco.nl/stroom-gas-en-waterkosten-zichtbaar-maken-domoticz/ and here is something similar. https://krijnermerins.nl/domoticz/dagelijkse-energiekosten-weergeven-in-domoticz/ From the responses, I ...
- Monday 17 February 2025 23:07
- Forum: dzVents
- Topic: Script not working as expected...
- Replies: 8
- Views: 788
Script not working as expected...
Hello HELP :? :roll: What is wrong with this script?????? return { on = { timer = { 'every 2 minutes' }}, execute = function(domoticz, device, timer) local vandaagKwh = domoticz.devices('Power').counterToday local vandaagM3Gas = domoticz.devices('Gas').counterToday local StroomKosten = domoticz ...
- Monday 10 February 2025 21:58
- Forum: LUA
- Topic: Syntax dates in scripts
- Replies: 2
- Views: 895
Re: Syntax dates in scripts
Oké, Thanks (Bedankt! HvdW)
I'll work on it and see if I can get it working.
I'll work on it and see if I can get it working.
- Monday 10 February 2025 21:29
- Forum: LUA
- Topic: Syntax dates in scripts
- Replies: 2
- Views: 895
Syntax dates in scripts
Hello, I hope someone can and will help me. I have a script I use to calculate my energy costs. That works. But..... Energy costs change annually, so to compare costs per year, I actually need to add a date line to that. I see in that script: if (domoticz.time == ‘Between 23:00 and 07:00’), but does ...
- Tuesday 29 November 2022 10:39
- Forum: Suggestions
- Topic: Energy prices are not really logged
- Replies: 6
- Views: 873
Re: Energy prices are not really logged
I am storing the costs components of my contract in user variables and then use a dzvent script to calculate the actual costs. The results are stored in some custom devices. Could that work for you? Note it does not take into account the daily low and high rate periods. Only uses high rate in the ...
- Monday 31 May 2021 21:43
- Forum: dzVents
- Topic: Energy costs in bar graph instead of line graph
- Replies: 7
- Views: 1480
Re: Energy costs in bar graph instead of line graph
STRANGE !!!!!! In an attempt to get column graphs of the cost of gas consumption I run into strange things. If I show the costs with a custom sensor, I get € 0.78. but when I turn it into a Counter I see € 0.78 in one place but € 0.22 in the top right (or often other values that do not match. When I ...
- Monday 24 May 2021 16:54
- Forum: dzVents
- Topic: Energy costs in bar graph instead of line graph
- Replies: 7
- Views: 1480
Re: Energy costs in bar graph instead of line graph
Oké. Now I have still one challenge...

How do I get 2 decimal place every where...
I did some testing and found that I can multiply with 100 in the script and then devide by 100 in the device..
But is there a neater way, better way to do that.

- Sunday 23 May 2021 21:12
- Forum: dzVents
- Topic: Energy costs in bar graph instead of line graph
- Replies: 7
- Views: 1480
Re: Energy costs in bar graph instead of line graph
By modifing the script I came a littlebit further and now got this:
But kWh should be EUR and I have to get two decimals instead of 3 but I think I can solve that by editing the formular in the script...
But kWh should be EUR and I have to get two decimals instead of 3 but I think I can solve that by editing the formular in the script...
- Sunday 23 May 2021 21:02
- Forum: dzVents
- Topic: Energy costs in bar graph instead of line graph
- Replies: 7
- Views: 1480
Re: Energy costs in bar graph instead of line graph
Is it possible to define a new device-type based on an existing device type? Copy a device-type and modify it????
- Friday 21 May 2021 22:21
- Forum: dzVents
- Topic: Energy costs in bar graph instead of line graph
- Replies: 7
- Views: 1480
Energy costs in bar graph instead of line graph
Hello, I hope to get an answer / solution to my challenge here. I read my energy consumption with a P1 module. That works. I found a script to calculate consumption to Energy costs and it works too. However, I see a line graph in the “log” of Gas costs and I would like a bar graph the same I see wit ...