Good news: I’ve started developing an ecojoko integration for Gladys, as an external integration (those that install from the store in one click). The code is here: GitHub - guim31/gladys-ecojoko · GitHub
You’ll find it on the store in the next hour.
As you noted, ecojoko does not publish an official API. The integration relies on the same interface as the web application service.ecojoko.com, just like the Home Assistant community integration (little_monkey). You just need to enter your ecojoko account email and password. Nothing is written to the account, everything is read-only.
What it brings to Gladys:
the instantaneous power (W), refreshed every 30 seconds by default;
the day’s consumption (kWh), and a value per tariff period if your tariff declares it (HC/HP, Tempo colors);
the solar surplus injected for the day, if ecojoko measures it at your place (you mentioned production, so this should interest you);
the indoor/outdoor temperature and humidity of the display, in a second device;
a cumulative index in kWh, made from the daily totals, so that Gladys’s energy dashboard (consumption per half-hour, contract cost) works with ecojoko.
There’s a catch: I’m not equipped with ecojoko, so I’ve never been able to run it on a real account. The response format is taken from the Home Assistant integration, and everything else is tested in white. If you’re willing to be a tester, that would help me a lot!
To test: in Gladys, Integrations → search for « ecojoko » → Install, then enter your credentials and click on « Test the connection ». The message under the button indicates what the integration has found (gateway, current power, tariff periods, surplus, ambient sensor). Then, the Devices tab to add the ecojoko device (and ecojoko (ambiance) if it appears).
What I’m interested in, here or in a GitHub issue:
the message from the « Test the connection » button, or the error displayed;
the displayed values compared to the ecojoko application (power, kWh of the day);
if something is missing or seems wrong, the integration logs (Logs button on its configuration page).
Thanks in advance, and don’t hesitate if you have any questions!!
Can you tell me more about the « missing button »? Which button are we talking about?
As I told you, I don’t have this equipment, so for me it’s abstract ^^
Don’t hesitate to send me (copy/paste) the integration logs they are visible on the integration view.
I’m sorry @Pat, I’m having trouble understanding what you’re saying.
If all else fails, take a screenshot of the screen where you want to see a device but it’s not there.
Because when you say « the device tab of Gladys » I don’t know if you’re talking about the device section when adding a widget to a dashboard, or the Device tab of the external integration itself.
Send me some nice images and I’ll do my best to answer you!!
Have you correctly configured the integration and added your device in Gladys from the integration? If you haven’t, then the device won’t be visible in the page you showed us!
What is the refresh rate of the « power » widget? Is it possible to see the power information in the form of a gauge (green in overproduction, red in consumption)?