Open AndyNew2 opened 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?
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:
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
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.
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...
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?
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 😉
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...
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
I really struggle with this point:
How should that be achived? HACS? Copying files? Sorry but I am not really familar with HA.