prohand
12 Septiembre, 2026 11:06
1
Hola,
Por info, me he lanzado al desarrollo para Electricity Maps:
Gladys external integration to see electricty maps devices in Gladys
Os mantendré informados cuando haya una versión lo suficientemente madura para probar.
prohand
12 Septiembre, 2026 14:37
2
Para información, la integración está lista, pero no la publico por el momento porque hay que esperar a que la siguiente PR se fusiona en master en Gladys:
master ← prohand:feat/grid-carbon-sensor-category
ouvert 12:37PM - 12 Sep 26 UTC
Integrations that publish the carbon content of the grid electricity of a zone (… Electricity Maps, a national TSO, WattTime, or a device implementing the Matter Electrical Grid Conditions cluster) have no category to map onto today, so they fall back to unknown/unknown: the features show up as "Unknown" in the device screens, with no icon, no unit and no scene-friendly meaning.
New category `grid-carbon-sensor`, with three read-only types:
- `carbon-intensity`: gCO2eq per kWh consumed in the zone, the quantity and the unit of the Matter Electrical Grid Conditions cluster (0x00A0) GridCarbonIntensity attribute;
- `carbon-free-percentage`: share of the consumed electricity coming from non-fossil sources (renewables and nuclear), in %;
- `renewable-percentage`: share coming from renewables only, in %.
New unit `gram-co2eq-per-kilowatt-hour`, restricted to the intensity type through DEVICE_FEATURE_UNITS_BY_CATEGORY_AND_TYPE so the two shares only offer the percent unit.
Plumbing: translations (en/fr/de), category icons, energy group of the activity history, MQTT catalog defaults (unit, min/max, preview value) and the room badge colors, where the intensity is colored low-as-green while the two shares are colored high-as-green.
Claude-Session: https://claude.ai/code/session_012CeYszascAZzpQG1gmdMCx
### Description
### Related request
### Checklist
- [ ] If a forum topic or GitHub issue exists, the description links it (`Forum: https://community.gladysassistant.com/t/...` or `Closes #...`)
- [ ] Tests pass: `cd server && npm run coverage` (Codecov requires 100% coverage on changed lines) and Cypress (`npm run cypress:run`) if the UI changed
- [ ] Linter and prettier pass on both front and server (`npm run eslint`, `npm run prettier`)
- [ ] No undocumented breaking change
## Summary by CodeRabbit
* **New Features**
* Added support for grid carbon sensors, including carbon intensity, carbon-free electricity, and renewable electricity metrics.
* Added gCO₂eq/kWh and percentage-based measurements.
* Added grid carbon metrics to energy history and device previews.
* Added dedicated icons and value-based coloring for carbon metrics.
* **Localization**
* Added English and German translations for the new metrics and units.
* Corrected the French label for the gCO₂eq/kWh unit.
prohand
21 Septiembre, 2026 19:52
3
Tras el lanzamiento de la versión 5.1, acabo de publicar el lanzamiento de esta integración externa
Debería estar disponible en aproximadamente 1 hora
prohand
22 Septiembre, 2026 13:11
4
La versión 2 está disponible con los widgets, disparadores y acciones