Hi @pierre-gilles ,
After creating my « Hydro-Québec » module to have a local alternative to EDF, I’m testing energy tracking with Gladys again.
And I realize that everything is designed for French users, without a generic status. I suggest adding at least a « base » or « standard » energy contract.
There is indeed a generic mode.
You need to go to the “Create” tab and not “Import” :
The “Import” tab only offers contracts that Gladys knows in its common contract database.
For now, they are indeed all French (I would like that to change!), contributions are welcome on this repository:
Gladys Assistant Energy Contracts as JSON
That said, your comment is relevant: if you haven’t found this option, it’s probably because the interface doesn’t highlight it enough. I’ll improve that
Hi everyone!
This topic is now in development .
A PR has been opened to explain, on the import rates page, how to obtain a missing energy contract:
master ← claude/energy-tracking-clarity-qjl1la
ouvert 01:22PM - 04 Sep 26 UTC
### Description
On the energy prices "Import" page, nothing told the user what … to do when their energy contract was not in the list. This is confusing, especially for users outside of the providers already shared by the community (see the forum topic below).
This PR adds an information block right below the contract selector, explaining the two available options:
1. **Propose the contract to the community**, on the [GladysAssistant/energy-contracts](https://github.com/GladysAssistant/energy-contracts) repository, with an explicit note that Gladys downloads the contract list directly from that repository — so a newly added contract appears in the list **without updating Gladys**. A button links to the repository.
2. **Create the contract manually** in Gladys, with a button that opens the existing price creation wizard (it delegates to the parent page's `startCreatePrice`, so the wizard state is properly reset), and a note that such a contract only exists in the local installation.
Changed files:
- `front/src/routes/integration/all/energy-monitoring/ImportPrices.jsx`: new info block + shortcut to the creation wizard
- `front/src/routes/integration/all/energy-monitoring/EnergyMonitoring.jsx`: pass `startCreatePrice` down to the import page
- `front/src/config/i18n/{en,fr,de}.json`: new translation keys (`contractNotListedTitle`, `contractNotListedDescription`, `contractNotListedShare`, `contractNotListedShareButton`, `contractNotListedCreate`, `contractNotListedCreateButton`)
## Forum
Forum: https://community.gladysassistant.com/t/suivi-energie-international-importer-valeurs-historiques-de-consommation/10798
### Checklist
- [x] Tests pass: no server code changed, so no server test was affected. Cypress was not run (front-only copy/UI addition, no existing test covers this page); `npx vite build` succeeds.
- [x] Linter and prettier pass on both front and server (`npm run eslint`: 0 errors, `npm run prettier-check`: all files formatted). `npm run compare-translations` reports all three locales complete.
- [x] No undocumented breaking change
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_015ahe5EcABDCVJFMU9R8L9i
---
_Generated by [Claude Code](https://claude.ai/code/session_015ahe5EcABDCVJFMU9R8L9i)_
Feel free to follow the PR, test (optional, especially for small requests) and provide your feedback here if needed.
Thanks, I’ll look into the subject to see how to contribute and bring Hydro-Québec support. It will be a very small part of Canada, but we’re making progress step by step