Le problème était là je pense, déjà est-ce que ton repo était à jour du repo upstream ?
Ensuite, c’est mieux de faire des branches pour justement séparer ton travail.
Là tu devais être dans l’ancien état « non-mergé » de l’ancienne PR.
mutmut
Février 3, 2026, 9:43
22
Top merci, tout est mergé
mutmut
Octobre 12, 2026, 7:12
24
Hello aux Alsaciens, je pensais à tort que les tarifs ES n’avaient pas bougé en août de cette année, c’était mal
Alors voici la PR avec les (anciens) nouveaux tarifs en date du 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 tu peux merge ?
Je viens de merge !
A l’avenir, @cicoub13 et @bertrandda ont aussi les droits pour info
mutmut
Novembre 16, 2026, 7:29
27
Hello,
suite à la future release de l’intégration externe ES Tarifs Vert, j’ai fait une mise à jour avec contracts-v2.json pour les Tarifs Bleu et avoir les bons noms de contrats :
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 l’un de vous peut checker et merger ?
Si tout est bon pour cette “v2”, je lancerai une mise à jour de tous les contrats du repo communautaire.
Revue faite.
Il y a un bug existant dans les fichiers que tu as rappatriés depuis Gladys.
mutmut
Novembre 16, 2026, 10:08
29
Merci @cicoub13 , les corrections sont faites.
Concernant le doublage du tarif de l’abonnement, tu veux que je fasse une PR pour le core ?
Non, on va release celle-ci et Gladys prendre les contrats v2
mutmut
Novembre 17, 2026, 9:32
31
ok, et sinon j’ai corrigé le dernier soucis mineur.
mutmut
Novembre 17, 2026, 9:39
32
Hello aux alsaciens et pour ceux qui ont pris une offre Verte, voici l’intégration externe qui va bien (ma première ) :
Et pour ceux qui sont au tarif Bleu, pas besoin de cette intégration car les contrats sont déjà le dépôt communautaire de Gladys donc rien ne change pour vous
C’est validé et mergé Les installations Gladys en 5.3+ en bénéficient (il y a un cache de 6 heures).
Merci
mutmut
Novembre 18, 2026, 5:44
34
Merci @cicoub13 c 'est parfait
Avant :
Après :
C’est quand même plus sympa et compréhensible pour les noms !
Je m’attaque (avec Claude ) à tous les autres contrats pour les nommages.