kodebach / hacs-idm-heatpump

HACS integration for IDM heat pumps
MIT License
20 stars 1 forks source link

Download and installed - nothing happens - Modbus Außetemperatur works via Yaml #26

Closed KKlausl closed 8 months ago

KKlausl commented 10 months ago

Sorry for bothering you, cause I am a newbee here.

Im coming from Openhab where I integrated a bunch of IDM - Modbus values with modbus bindung.

Now, with homeassistant I managed to integrate "Außentemperatur" and other Modbus - registers via config.yaml.

after downloading and installing your integration and following the steps you prescribe, I cant find any values or entities. And there is no UI to define stuff. Can u help me?

kodebach commented 10 months ago

If you just followed the README and then stopped, you probably haven't actually configured the integration yet. Since you're new and coming from openHAB you probably didn't know that's necessary. I didn't include this final step in the README, because it's the same for all integrations (custom ones, and the ones included with Home Assistant).

Theoretically, this link should ask you for your (local) Home Assistant URL and then link you to the correct page in Home Assistant: https://my.home-assistant.io/redirect/config_flow_start/?domain=idm_heatpump

Otherwise:

  1. Open your Home Assistant page manually and then go to "Settings" -> "Devices & Services".
  2. Click the "Add Integration" button in the bottom right corner.
  3. Search for and select "IDM heat pump" and complete the setup steps.
KKlausl commented 10 months ago

Oh my... you are correct, i feel embarrassed... Thank you very much for that "hint"!! well, the advantage is: I have your attention, cause the UI tells me, the IP adress is not correct. ("Heat pump not found at given hostname/ip") - but this is the same IP which I use to listen to AußentemperaturIDM through Modbus via config.yaml and this works fine:

`modbus:

Is it possible that I make another newbee-mistake? :-/

kodebach commented 10 months ago

No, I don't think you made a mistake. That error basically means that the Modbus connection couldn't be established. Did you try removing the Modbus config from config.yaml?

AFAIK it should be possible to have multiple clients connect to the same Modbus server. But the IDM heat pump also disconnects rather frequently and randomly (which is why this integration has a few hacky workarounds), so maybe it also doesn't like simultaneous connections.

KKlausl commented 10 months ago

Hey, thank you again for your patience and your time! :) I removed the modbus part out of config - the idm sensors stopped working - but the connection still could not be established. can I try something else or provide some information?

kodebach commented 10 months ago

Not sure what could be going wrong... But I did notice that the Modbus integration uses a newer version of pymodbus. I upgraded the version in this integration and made a new release. Please update (you should see the update in the HACS tab of your Home Assistant) and then try again.

KKlausl commented 10 months ago

wow, that´s great thank you very much for your hard work! nevertheless sadly it didn´t help. but I appreciate your help!

thanks to your work (and infos in your data) I managed to integrate the most of my former sensors directly in config.yaml. I only have problems with two:

1.) 1498: "Aktive Betriebsart Heizkreis A"

I tried this:

- name: Betriebsmodus slave: 1 scale: 1 offset: 0 address: 1498 input_type: input data_type: uint32 [Alternative: uint16] scan_interval: 10 precision: 0 swap: word

I do not get sensful data. In Openhab I only had to chose uint16 and the results were the following numbers:

"0" => "OFF" "257" => "Heizbetrieb" "1028" => "Warmwasserbereitung" "514" => "Kühlbetrieb"

Could you help me here?

2.) 4122: "Aktuelle Leistungsaufnahme Wärmepumpe"

I tried the folling sensors settings, but that didnt work either. Is it possible, that my IDM piump (ILM Terra HGL, Navigator 1.7) does not have this register? I have a modbus documentation from IDM, and that register is not mentioned. Or maybe my settings are faulty. Do you have a tip here too?

- name: LeistungIDM slave: 1 scale: 1 offset: 0 address: 4122 input_type: input data_type: float16 [alternative: float32] scan_interval: 10 count: 2 precision: 1 swap: word

kodebach commented 9 months ago

Is it possible, that my IDM piump (ILM Terra HGL, Navigator 1.7) does not have this register? I have a modbus documentation from IDM, and that register is not mentioned.

Well, if you have the documentation from IDM and the register isn't there, then that's probably correct. I only tested this integration with Navigator 2.0, so maybe the register was only added in the newer version.

This may also be the reason the integration isn't working for you. Maybe Navigator 1.7 is slightly different and incompatible with the way the integration tries to connect.

I do not get sensful data. [...] Could you help me here?

In your config snippet, you have configured the register with data_type: uint32. I think you need to change that to data_type: uint16. Otherwise, the modbus library will read the next 16-bit register as well and combine both registers into a non-sensical 32-bit number.

As for mapping the integer values to names. The IDM documentation should state which integer means what (seems to be different for Navigator 1.7 too, since in this integration the values are 0, 1, 2). For the actual mapping, I'm afraid I can't really help you, since I haven't used the plain modbus integration much. Maybe there is a way to map the values directly, maybe you need to add a second template sensor to do the mapping. I'm sure someone on the Home Assistant forum will be able to help you there.

KKlausl commented 9 months ago

Thank you for all your help! I managed to fix the „Betriebsart“ - different adress did the trick. :)

kodebach commented 8 months ago

I checked some stuff and it seems Navigator 1.7 and Navigator 2.0 use different Modbus interfaces. I clarified in the README that this integration only supports Navigator 2.0

KKlausl commented 8 months ago

Thank you again!