dynamice pricing with /json.htm?type=command¶m=graph&sensor=counter&idx=IDX&range=
Posted: Tuesday 09 September 2025 12:11
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¶m=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!
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¶m=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!