While browsing the forum and GitHub, I generated the CSV files for Enercoop supplier contracts. Despite the ReadMe, I couldn’t generate the js file
I admit I used AI to generate these files. It would be great to have an automatic converter for energy contracts into a file that can be used by Gladys (I know, YakaFokon ^^).
@Zenfull what are you based on with AI to generate these CSV files?
Because I don’t see the columns I have for example with Électricité de Strasbourg or EDF and the rates don’t seem to be in the right unit: we have prices in euros directly and they are multiplied by 10,000 with the converters of these two examples.
As it stands and not being a developer, I won’t be able to do much, sorry
If you have exactly the right columns, just take the convert.js file from the rate directory and it should work.
After that, it is possible to take an example from the json of the other rates but I don’t understand much about this part (I’m more of a classic spreadsheet…)
Another point, I think we don’t manage the differences in days (week/WE/holidays) or the seasons in the energy consumption tracking:
In other words, we could only manage the base rate and maybe the flexibility-off-peak
@pierre-gilles do you think a dev update with the management of different days (and seasons?) could be integrated soon? Is it in your development pipeline?
Here is the conversation history with Mistral … Really sorry about the files. The first prompt wasn’t conclusive at all (I provided the official file from the Enercoop website as an attachment), with the second one, the result seemed satisfactory to me.
However, in this case, I’m a bit disappointed because I have a night and weekend subscription, which is really a shame because I won’t be able to fully enjoy the Lixee TIC that I just bought in this case …
Thanks anyway. I’m not an expert in prompts, maybe sharing a precise and relevant prompt could help generate relevant files more quickly? I thought that by sharing the GitHub link for the constraints, the AI would have better understood the request …
I would like a separate feature request with the specifics of the contract and the data sources, because I see there is a notion of « holidays », for it to work it needs an open API that exposes these dates
I thought we could create our own contract, export it, and publish it on the community contracts GitHub, right?
Otherwise, I must have misunderstood then
It’s done: the Enercoop integration is available (v0.0.1).
No need to modify the JSON in the energy-contracts repository: its format does not handle weekends or holidays, so your offer goes through this external integration. You have nothing to develop.
The 3 Enercoop offers in Gladys’ contract assistant:
Base Offer
Off-peak hours flexibility (your off-peak slots)
Night and weekend flexibility: Off-peak hours from 11 p.m. to 6 a.m. on weekdays, all weekend and holidays
Holidays are calculated by the integration (Alsace-Moselle option).
Prices (kWh HP/off-peak and subscription) are entered in the contract: enter those from your bill, the proposed values are indicative.
Linky consumption comes from Enedis via Conso API (free): consent, then paste your PRM and token. Data from a day arrives the next morning.
A scene trigger for « tariff period change », to start the water heater at the beginning of off-peak hours, including weekends.
An action « read current price », a daily consumption threshold, and a widget (current price and period, 14-day graph).
To install it
Integrations → Enercoop → Install.
Enter your PRM and Conso API token, then click « Test connection ».
In the Discovery tab, create the « Linky Enercoop » meter.
In the Energy settings, add the « Enercoop – Night and Weekend Flexibility » contract to the meter.
For your Lixee TIC: In theory, you can also associate the « night and weekend » offer with your Lixee meter, without using the Conso API part. I haven’t tested it yet, your feedback interests me.
This is a first version: don’t hesitate to report any issues here or on GitHub. And if you can give me your HP/off-peak prices and your subscription (on your bill), I will update the default proposed values.