simowNgithub / Homeassistant-IDM-Integration

I did a complete integration by modbus. I transfer the photovoltaik data from my SMA Tripower to the IDM Terra SW8 Complete HGL Sole-Wärmepumpe with Navigator 2.0.
6 stars 1 forks source link

Installation unclear - HA beginners unclear #1

Open AndyNew2 opened 10 months ago

AndyNew2 commented 10 months ago

I really struggle with this point:

  1. Add IDM Heatpump (heatpump / Wärmepumpe) with modbus

How should that be achived? HACS? Copying files? Sorry but I am not really familar with HA.

simowNgithub commented 10 months ago

Hi, point 3 has nothing todo with HA, there are screenshot how you have to set the config in your IDM interface. Do you mean step 4?

AndyNew2 commented 10 months ago

In the IDM interface I know what to do. That is easy and already done. The missing part is the possibility to write the PV values to the IDM system via modbus. I expected your script is exactly doing this and can be integrated or is done for Home Assistant. Is this wrong?

I refer to the last point here:

Steps for implementation

Add SMA Tripower (inverter / Wechselrichter) with modbus for calculate the PV values
Add Shelly 3EM (house consumption electricity / Strommessgerät) with the Shelly Integration for calculate the overload of PV values
Add IDM Heatpump (heatpump / Wärmepumpe) with modbus
simowNgithub commented 10 months ago

That's correct. Then you mean this step:

Use my script for getting the available power for the heatpump and sync the values to the heatpump Checkout how to use the configuration.yaml and script.yaml in HA. It is complete base line for using HA.

I can create a detailed description but I opened already a feature request here, because the developer here has already used my sources and put it into an HACS Repo / Integration. But at this moment he can only read data and not write the data.

https://github.com/kodebach/hacs-idm-heatpump/issues/10

AndyNew2 commented 10 months ago

Correct I know this integration and use it ;-) And I miss the writing to PV values. So my suspection is right. All the secret is in configuration.yaml and script.yaml. I probably don't need the script.yaml, since my source is different, but the configuration.yaml holds the secret of writing to the idm heatpump correct? However you need to adapt the ip address I guess to match my local IP address from the heatpump. I wait for kodebach to integrate it, thanks. I still think a lot of needed steps are not listed in your setup guide...

AndyNew2 commented 10 months ago

I have copied and adapted your scripts just to have a writing to the pv values to the idm heat pump. Sofar including the recommended reset comment it works. However I notice everytime a WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus idm_heatpump communication closed

This spams my log with unneeded values. It seems it is kept over from reading values, which I removed. However it still tries to read them? I don't understand the standard implementation of TCP modbus. Any idea to prevent these logs or not needed readings?

simowNgithub commented 10 months ago

Sorry, I have no idea why there is a modbus restart needed to establish a second write to this modbus register on the idm. I checked already something with the data type, but i think the data type is still correct...

If you have any idea / someone who can give a hint, post it here 😉

AndyNew2 commented 10 months ago

I know there is an issue with the modbus implementation. I just wanted to know to prevent the logs. There are massive entries and I don't know to prevent them...

AndyNew2 commented 10 months ago

Probably found the solution: Add the lines below to your configuration.yaml or add the line for the modbus logger: That hopefully prevents spaming your log files.

logger: logs: homeassistant.components.modbus.modbus: error