External integration - Ecojoko

Description

Hello,

I just acquired Gladys Assistant, I am gradually integrating my various connected objects before launching into scenes.

I have a small Ecojoko screen that informs the whole family about the electrical consumption or solar production of our house.

I would like to integrate it into Gladys via an API (it exists on HA). I’m terrible at computers…

Could someone create this integration?

Hi Pat,

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!!

Hi guim31,

That’s awesome.

I’ll test it following your process this evening.

Stay tuned

guim31,

Sorry, but I can’t find ecojoko in integration!

So I can’t test it.

Best,

Pat

Integration has been available since 17:04

Yes, it took longer than expected to be added to the store, I don’t know why :person_shrugging:

Yes, it’s done, I’ve integrated and tested.

Below is a copy of the message.

However, the button is missing in the devices.

To follow :wink:

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 :+1: they are visible on the integration view.

Pardon, I misspoke.

I can’t find ecojoko in the Gladys device tab, so I can’t go any further.

Hello
That’s really great because I had looked a while ago and nothing was possible.

I took the opportunity to change the topic title.

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!! :grinning_face: :+1:

Hihi, we’ll get through this.

I’m talking about the device section when you add a widget to a dashboard:

Hi @Pat, I think you missed a step.

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!

Oh yes, that’s it… :sweat_smile:

Here’s what it looks like.

A power gauge could be interesting.

I’ll check tomorrow what it says when I generate electricity.

Good evening everyone and thanks for all this info

Cool, I’ll look forward to reading from you tomorrow :wink:

Hello,

Here is the display when I am in overproduction.

The figures are correct.

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)?

Have a nice day