Hello everyone!
I set myself a small challenge today given the urgency: publish a complete Ecowatt integration in Gladys in one day, starting from scratch ![]()
As you probably know, with current electricity production, RTE is not sure that France produces enough electricity to cover the country’s consumption on the coldest days.
Given current weather forecasts, a first Ecowatt alert could be triggered this Monday due to the incoming cold (Source: Électricité : vers une première alerte orange Ecowatt déclenchée ce lundi selon RTE, doit-on craindre des coupures ? - midilibre.fr )
I think home automation is perfect to help us in this kind of situation.
On the Gladys side, I wanted to propose two things:
- Be able to visualize Ecowatt forecasts in Gladys
- In scenes, be able to react to an Ecowatt alert by automatically reducing your electricity consumption + sending you an alert (Telegram, or other)
The result:
The integration is almost finished and will be released during the day, you will be able to view Ecowatt alerts on your dashboard, and this without any configuration (I’ll come back to that later).
In scenes, a new condition appears « Condition on Ecowatt », which allows you to stop/continue a scene only if the power grid is in one of the 3 possible states: « Grid OK » / « Grid Stressed » / « Grid Very Stressed ».
I recommend running a scene every hour:
Set a condition on « Grid Stressed » or « Grid Very Stressed »:
Turn off high-consumption devices in case of a stressed grid:
And send you an alert if the scene is triggered:
You can create an additional scene where you turn your devices back on when the grid returns to the « OK » state.
Why without any configuration?
There is an Ecowatt API offered by RTE, but this API is accessible by creating a developer account and obtaining a client_id and client_secret.
For me, given the urgency, that was too high a barrier to entry, so I wanted to offer a 100% zero-configuration integration.
So I implemented this API on the Gladys Gateway side, and I offer an API for all Gladys users, at no cost.
When will this be ready?
I’ve been working on it since this morning, and it’s normally ready; only deployment remains.
The PR is here:
I’ll merge it fairly quickly and trigger a build very soon.
When I deploy an update of Gladys, it will deploy Gladys based on Node.js 18. There should be no regressions, but you never know.
I count on you to give me feedback as soon as everything is live ![]()
Communication
As soon as it’s live, I’ll start communications on social networks to spread the word about this initiative. I think it’s a good way to showcase home automation and Gladys for these kinds of situations! I count on you to reshare these posts ![]()






