Hola @pierre-gilles ,
Después de crear mi módulo « Hydro-Québec » para tener la alternativa local a EDF, vuelvo a probar el seguimiento de energía con Gladys.
Y me doy cuenta de que todo está pensado para franceses, sin un estado genérico. Propongo añadir al menos un contrato de energía « base » o « estándar ».
Sí existe un modo genérico.
Hay que ir a la pestaña “Crear” y no “Importar” :
La pestaña “Importar” solo propone los contratos que Gladys conoce en su base de datos común de contratos.
Por ahora, efectivamente todos son franceses (¡me gustaría que eso cambiara!), las contribuciones son bienvenidas en este repositorio :
Gladys Assistant Energy Contracts as JSON
Dicho esto, tu comentario es pertinente: si no has encontrado esta opción, es que la interfaz probablemente no la destaca lo suficiente. Voy a mejorar eso
¡Hola a todos!
Este tema está ahora en desarrollo .
Se ha abierto una PR para explicar, en la página de importación de tarifas, cómo obtener un contrato de energía faltante:
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)_
## Summary by CodeRabbit
* **New Features**
* Added guidance for energy contracts that aren’t listed during price import.
* Users can suggest missing contracts to the community via GitHub.
* Users can create energy contracts manually in Gladys.
* Added German and French translations for the new guidance.
No duden en seguir la PR, probar (opcional, especialmente para pequeñas solicitudes) y dar sus comentarios aquí si es necesario.
Gracias, voy a investigar el tema para ver cómo contribuir y aportar el soporte de Hydro-Québec. Será una pequeña parte de Canadá, pero avanzamos paso a paso