This component makes the signals provided by RTE (https://www.monecowatt.fr) available in Home Assistant.
Ecowatt is a French service giving a trend about the stress of the electricity network for the next few days.
This integration adds 4 entities in Home Assistant, each indicating the alert level of the day: Green, Orange or Red:
These signals can then be used in your automations to adapt your electricity consumption!
This component uses the pyecowatt library.
⚠️ This integration is not available via HACS at this time
You'll need valid id_client
/id_secret
tokens from the RTE Data website:
- Create an account on RTE Data website
- Register to the Ecowatt API and click on "Subscribe to API"
- Create a new app and make sure it's linked to Ecowatt API otherwise it won't work
- Get
client_id
andclient_secret
tokens
- In your
custom_components
folder, copy the foldercustom_components/ecowatt
folder from this Github repository - Restart your Home Assistant service
- Add a new integration
- Select "ecowatt"
- Enter you
id_client
andid_secret
- Validate
type: glance
title: Alertes Ecowatt
entities:
- entity: sensor.ecowatt_day_0
name: Aujourd'hui
- entity: sensor.ecowatt_day_1
name: Demain
- entity: sensor.ecowatt_day_2
name: J+2
- entity: sensor.ecowatt_day_3
name: J+3
With card_mod
it's possible to define custom colors based on Ecowatt Alerts:
type: glance
name: Alertes Ecowatt
entities:
- entity: sensor.ecowatt_day_0
name: Aujourd'hui
icon: mdi:lightning-bolt-circle
card_mod:
style: |
:host {
{% set level = states('sensor.ecowatt_day_0') %}
{% if (level == "Vert" ) %}
--paper-item-icon-color: green;
{% elif (level == "Orange" ) %}
--paper-item-icon-color: orange;
{% else %}
--paper-item-icon-color: red;
{% endif %}
- entity: sensor.ecowatt_day_1
name: Demain
icon: mdi:lightning-bolt-circle
card_mod:
style: |
:host {
{% set level = states('sensor.ecowatt_day_1') %}
{% if (level == "Vert" ) %}
--paper-item-icon-color: green;
{% elif (level == "Orange" ) %}
--paper-item-icon-color: orange;
{% else %}
--paper-item-icon-color: red;
{% endif %}
- entity: sensor.ecowatt_day_2
name: J+2
icon: mdi:lightning-bolt-circle
card_mod:
style: |
:host {
{% set level = states('sensor.ecowatt_day_2') %}
{% if (level == "Vert" ) %}
--paper-item-icon-color: green;
{% elif (level == "Orange" ) %}
--paper-item-icon-color: orange;
{% else %}
--paper-item-icon-color: red;
{% endif %}
- entity: sensor.ecowatt_day_3
name: J+3
icon: mdi:lightning-bolt-circle
card_mod:
style: |
:host {
{% set level = states('sensor.ecowatt_day_3') %}
{% if (level == "Vert" ) %}
--paper-item-icon-color: green;
{% elif (level == "Orange" ) %}
--paper-item-icon-color: orange;
{% else %}
--paper-item-icon-color: red;
{% endif %}