AdapterRequests icon indicating copy to clipboard operation
AdapterRequests copied to clipboard

Adapter for Heatpumps - Start with IDM

Open ikkerus opened this issue 4 years ago • 15 comments

Hey guys,

you're doing a great job. I like to help you with some stuff here on GitHub, but first filing my second AdapterRequest:

This summer, we will get a Heatpump, probably IDM. I like to visualize it with iobroker.

Here is an example how someone did it with Home-Assistant and Lovelace: https://beyer-tom.de/blog/2018/10/home-assistant-integration-heatpump-idm-terra-ml-complete-hgl/

Is there a possibility for that? What else do you need?

ikkerus avatar Apr 07 '20 09:04 ikkerus

Hi @ikkerus

Yes basically even on a very simple way as I see the code. Its just using an web-API providing the Data in JSON format so its quite easy to port this

DutchmanNL avatar Apr 07 '20 11:04 DutchmanNL

Hi @DutchmanNL

Thanks for your quick look onto this. So, you would need some users who have the hardware to test it. As far as I know in the iobroker-board (forum.iobroker.net) there are some users who have a heatpump and/or one from the Austrian manufacturer IDM.

From my standpoint, I would be able to join a test of the heatpump adapter starting around Mid-End Summer, because we're currently in the process of installing the heatpump.

And to clarify my request: I would suggest to prepare the Adapter not only for IDM. The data layout (e.g. power consumption) will be nearly the same over all manufacturers. Also there can be general functions and the user only has to switch the manufacturer to gather the data.

I'm an IT-Specialist, I support, read code a bit, can test software as a professional, but unfortunately I'm not a developer.

ikkerus avatar Apr 07 '20 12:04 ikkerus

sorry, wait I have to break you down :) Not every HeatPump can be integrated by the same logic, the link you provided is for IDM only as it uses the IDM API.

For Heliotherm as example I developed an adapter which has an 1:1 serial connection (no TCP or API available)

so letzt please focus, this request and the example is for IDM only but can be build easily. In addition I could do it but also have a lot. other items on my plate and not using an IDM heat pomp by myself ;)

Example code of API call

idmHost = "https://www.myidm.at"
pathLogin = "/api/user/login"
pathInstallations = "/api/installation/values"
headers = {'User-Agent': 'IDM App (Android)'}

So as you see, its an IDM API URL

DutchmanNL avatar Apr 07 '20 12:04 DutchmanNL

Not every HeatPump can be integrated by the same logic, the link you provided is for IDM only as it uses the IDM API.

Thats understood. But isn't it better to maintain one HeatPump Adapter with different logics, which can also handle serial connections, serial to moxa-boxes, and direct APIs via TCP/IP?

As I understand you now, the architecture of ioBroker is maintained in a better way, if you create one Adapter per Manufacturer, but in this e.g. the Adapter could handle multiple heatpump models from IDM. I will note that for further requests and tests.

From your example: So, the Adapter wouldn't request the HeatPump itself in your internal network, it would call the IDM Portal at myidm.at and gather the data.

Maybe you can forward my request to someone else, please?

ikkerus avatar Apr 07 '20 12:04 ikkerus

As mentioned it all depends on logic So in this example yes it makes sense to build one Adapter for all IDM devices as the APi and controls are the same.

But trust me, there will be no other vendor producing the same with equal logic.

Small example :

  • IDM provides date by JSON api and values in a structure for IDM
  • Heliotherm does only provide by serial and no “text” values but binary only which I must translate according to their documentation to get the correct bits and bytes together

Looking from that perspective, an adapter kombining allogics of all heat pumps is much to much complex by hey that’s the reason for iobroker !

Adapter by technologie, all centralized into 1 object databases and from their logic like scripting en visualization) for everything that can talk with iobroker.

That’s the basic concept of all

Back to the example, I don’t know IDM and the only research example I have is your link. Here the plugin calls the API so nothing locally that’s how I read the code.

Could IDM be read locally, I don’t know research needed 🤷‍♂️

DutchmanNL avatar Apr 07 '20 16:04 DutchmanNL

I just found this topic when searching to include my IDM heatpump in ioBroker. Do you think it is possible? IDM is only able to be read externally. Locally is not possible. I'm pretty new to all this. So if you could point me in the right direction that would be appreciated.

Rubeast avatar Jan 05 '21 09:01 Rubeast

I'm pretty new to all this. So if you could point me in the right direction that would be appreciated.

if you have any information how we could get the data it would be a great starting point

DutchmanNL avatar Jan 05 '21 10:01 DutchmanNL

Oh I was under the impression that the example here contained all the info needed. https://beyer-tom.de/blog/2018/10/home-assistant-integration-heatpump-idm-terra-ml-complete-hgl/

I think you just need a username and password. If you want we can do some testing together.

Rubeast avatar Jan 05 '21 11:01 Rubeast

Oh I was under the impression that the example here contained all the info needed. https://beyer-tom.de/blog/2018/10/home-assistant-integration-heatpump-idm-terra-ml-complete-hgl/

I think you just need a username and password. If you want we can do some testing together.

hmm.... looks quite similar to my Discovery and Tado code ... just finalizing to other adapters happy to have a look and making a basic

DutchmanNL avatar Jan 05 '21 14:01 DutchmanNL

hmm.... looks quite similar to my Discovery and Tado code ... just finalizing to other adapters happy to have a look and making a basic

Awesome! Let me know if you need help to test something!

Rubeast avatar Jan 05 '21 19:01 Rubeast

Awesome! Let me know if you need help to test something!

Eh Yeah I would need everything as I don’t have the system so I assume there is an api logon ?

DutchmanNL avatar Jan 06 '21 07:01 DutchmanNL

Ok. I don't see a private message option here, so let me know how I can contact you in private.

Rubeast avatar Jan 06 '21 08:01 Rubeast

Ok. I don't see a private message option here, so let me know how I can contact you in private.

Easiest way would be by ioBroker-Discord (same nickname without NL)

https://discord.gg/HwUCwsH

DutchmanNL avatar Jan 06 '21 17:01 DutchmanNL

Hi, i am also Interested in an IDM Adapter. I have an IDM Terra 1.7. Looking forward to seeing an Adapter in the Future. Please let me know if I can do some testing

lonestar2001 avatar Jun 04 '21 18:06 lonestar2001

Ok. I don't see a private message option here, so let me know how I can contact you in private.

Hi,any update on that issue? I would really like to help with some testing.

lonestar2001 avatar Sep 03 '22 15:09 lonestar2001

Hi everyone, I did a basic implementation. https://github.com/lonestar2001/ioBroker.idm

lonestar2001 avatar Oct 12 '22 13:10 lonestar2001

Hi all, in case someone has an old IDM heatpump with a "multitalent.002" control, there is an adapter for some software versions: https://github.com/zloe/ioBroker.idm-multitalent_002 Its working stable since April 2022 for EPROM labeled TERRA050701 and TERRA061001.

zloe avatar May 01 '23 07:05 zloe