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!
dynamice pricing with /json.htm?type=command¶m=graph&sensor=counter&idx=IDX&range=
Moderator: leecollings
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: dynamice pricing with /json.htm?type=command¶m=graph&sensor=counter&idx=IDX&range=
What if you type the API call in a browser, do you get a result?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- gizmocuz
- Posts: 2707
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: dynamice pricing with /json.htm?type=command¶m=graph&sensor=counter&idx=IDX&range=
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
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
Quality outlives Quantity!
-
infoed
- Posts: 15
- Joined: Monday 21 October 2024 14:33
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: dynamice pricing with /json.htm?type=command¶m=graph&sensor=counter&idx=IDX&range=
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!
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!
Who is online
Users browsing this forum: No registered users and 1 guest