I think that’s where the problem was. First, was your repo up to date with the upstream repo?
Also, it’s better to create branches to actually separate your work.
You must have been in the old « unmerged » state of the previous PR.
mutmut
February 3, 2026, 9:43pm
22
Great, thanks, everything’s merged
mutmut
October 12, 2026, 7:12pm
24
Hello Alsatians, I wrongly thought that the ES rates hadn’t changed in August of this year, but I was wrong
So here’s the PR with the (old) new rates as of 1/08/2026:
main ← smuteau:update-tariff-electricite-de-strasbourg-2026-08-01
ouvert 06:57PM - 12 Oct 26 UTC
Add ÉS TRV Bleu price grid PDF effective 2026-08-01
Close the 2026-02-01 period … on 2026-07-31 (Base, HPHC, Tempo)
Add 2026-08-01 prices for Base, Peak/Off-peak and Tempo (CSV + XLSX)
Add 3 kVA subscription for Peak/Off-peak option (new period only)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
@pierre-gilles can you merge?
I just merged!
From now on, @cicoub13 and @bertrandda have the rights to inform as well
mutmut
November 16, 2026, 7:29pm
27
Hello,
Following the upcoming release of the external integration ES Tarifs Vert, I made an update with contracts-v2.json for the Tarifs Bleu to have the correct contract names:
main ← smuteau:feat/contracts-v2
ouvert 05:56PM - 16 Nov 26 UTC
## Why
In the Gladys contract wizard, a community contract is shown under its k… ey: `electricite-de-strasbourg-tarif-bleu-tempo 12 kVA`. `contracts.json` (format v1) has no field for a name, so Gladys builds it from the key.
Gladys 5.3+ already looks for a `contracts-v2.json` asset in the latest release and uses it instead of `contracts.json` when it is there (`server/lib/energy-contract/template.catalogue.js`, spec `energy-contracts.md` §9.4). This PR is the first time the catalogue publishes it.
## What changes
- `npm run build` also writes `contracts-v2.json`: every contract of `contracts.json`, one template per key and subscribed power, in the template format of Gladys.
- The release workflow publishes both files.
- An optional `template.json` next to a `convert.js` gives the contract a name and a description (en/fr/de/es). Without it, the name stays `<key> <power> kVA`, as today.
- The template `version` is the start date of the latest prices.
- First user: the three Électricité de Strasbourg Tarif Bleu contracts, e.g. `ÉS Tarif Bleu (réglementé) – Tempo – 6 kVA`.
- README: how to name a contract.
## Same prices, same keys
The templates are built with the translation Gladys already applies to `contracts.json`: `lib/gladys/convertPriceRows.js` is a copy of `server/lib/energy-contract/legacy/convertPriceRows.js` from Gladys v5.3.3 (Apache-2.0), and `lib/v2.js` follows `convertCatalogueV1` / `buildVariantTariff`.
I compared the 187 templates with the output of Gladys v5.3.3's own `convertCatalogueV1` on the same `contracts.json`: identical keys, variants, tariffs and inputs. Only the name, description and version differ. Existing contracts keep their `template_key`.
Nothing changes for Gladys versions that only read `contracts.json`.
## Checks
- `npm run build` and `npm test`: the test now also checks `contracts-v2.json` (one template per contract and power, required fields, names).
- Already true with `contracts.json` today: 19 EDF templates carry more history than the 16 components / 64 rules limits. Gladys prunes the history outside the contract's validity before validating (spec §4, `tariff.prune.js`), so they behave as they do now.
## Next
The other providers can get readable names the same way, one `template.json` each.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
@cicoub13 @bertrandda could one of you check and merge?
If everything is good for this “v2”, I will launch an update of all the contracts in the community repository.
Review done.
There is an existing bug in the files you pulled from Gladys.
mutmut
November 16, 2026, 10:08pm
29
Thanks @cicoub13 , the corrections are done.
Regarding the doubling of the subscription rate, do you want me to make a PR for the core?
No, we’re going to release this one and Gladys will take the v2 contracts
mutmut
November 17, 2026, 9:32am
31
ok, and otherwise I fixed the last minor issue.
mutmut
November 17, 2026, 9:39am
32
Hello to the people of Alsace and for those who have taken a Green offer, here is the external integration that works well (my first ):
And for those on the Blue tariff, you don’t need this integration because the contracts are already in the Gladys community repository, so nothing changes for you
It’s validated and merged Gladys installations on 5.3+ benefit from this (there’s a 6-hour cache).
Thanks
mutmut
November 18, 2026, 5:44pm
34
Thanks @cicoub13 it’s perfect
Before:
After:
It’s still more fun and understandable for the names!
I’m tackling (with Claude ) all the other contracts for naming.