Page 1 of 1

dynamice pricing with /json.htm?type=command&param=graph&sensor=counter&idx=IDX&range=

Posted: Tuesday 09 September 2025 12:11
by infoed
I have a Dzvents script working with the json api call to retrieve electricity and gas data from my P1 meter, I'm using Tibber as dynamic e. provider.
Using 2024.7 in a docker container.

To collect the daily pricing in the historic data of electra and gas devices I have set the "dynamic price calculations" of in my domoticz settings to use 2 managed counters which are automatically created and filled by the enever plugin. Both are created as type "custom", not as "energy" or "gas".
Using the /json.htm?type=command&param=graph&sensor=counter&idx=IDX&range= API call

This script was running perfectly. Somehow I decided to delete the enever plugin and reinstall it after a week. Again, I set up the domoticz settings to use the recreated electra and gas custom managed counters.

And now the problem ..

Since the day I deleted the enever plugin (and its devices) the API call does not retrieve the ELECTRA price anymore. Even after reinstall of the enever plugin and the setting of the counter devices for dynamic pricing.
But the GAS price is retrieved again.
To make it even stranger: in the (month view) table in domoticz, the electra price is shown there on the days that are missing in the JSON result.
But on the electra graphs I see the missing days of pricing (no yellow line for those days)

I don't get it.. why is it working (again) for the gas device but not for the electra device ?
And why can I see the missing electra pricing info in the historic table which is not there (checked the multimeter tables with SQL)?

Any help appriciated!

Re: dynamice pricing with /json.htm?type=command&param=graph&sensor=counter&idx=IDX&range=

Posted: Tuesday 09 September 2025 17:08
by waltervl
What if you type the API call in a browser, do you get a result?

Re: dynamice pricing with /json.htm?type=command&param=graph&sensor=counter&idx=IDX&range=

Posted: Thursday 11 September 2025 8:00
by gizmocuz
Could you try deleting the Enever hardware again, then go to Settings->More Options->User Variables, and delete any Enever variables here (like last electricity/gas results)
Then add Enever again

Be sure you are not doing this to often else you will hit the API limit, but you can check this on the Enever website

Re: dynamice pricing with /json.htm?type=command&param=graph&sensor=counter&idx=IDX&range=

Posted: Thursday 11 September 2025 12:32
by infoed
Solved! Thanks for the quick reply.
I found out that the enever plugin comes with 2*2 kind of pricing custom sensors : for electra and gas, daily and hourly. The daily ones fetches 24 items at the time (00:00) but these sensors are not update during the day because the pricing remains the same during the day. And then these devices time out after 60 min and that will not work in the pricing routine, I read somewhere else on the forum.
Using the actual price sensor instead of the daily price sensor did the job. Or any custom sensor as long as you update it at least every 60 min (or according to the sensor time out in the setting menu)

Cheers, mates!