pmcgn / dbus-modbus-client-kostal-smartmeter

13 stars 3 forks source link

disable feature? #5

Closed thomaskien closed 8 months ago

thomaskien commented 11 months ago

Hi Phillipp,

first of all: thank you for the code, it worked right away!

since I also use another battery connected to the kostal inverter I need to do some controlling to prevent charging the batteries out of each other (wich they unfortunately do).

is there a intended way to disable the readout of the KSEM?

I tried quite many of the parameters in node red of venus large: image ... all with no effect since the setpoint is changed by the KSEM readout very frequently.

in the end had to use iptables as workaround wich does it: if the communication is interrupted all parameters work with manual setpoint.

In my case the commands are (after adding id_rsa_pub of the originating machine) for disable communication: ssh root@multiki "iptables -A INPUT -s 10.0.83.67 -j DROP;iptables-save | uniq | iptables-restore" enable: ssh root@multiki "iptables -D INPUT -s 10.0.83.67 -j DROP;iptables-save | uniq | iptables-restore"

image

Maybe there is a way to quickly disable the readout of the kostal smartmeter in a cleaner way?

Regards,

Thomas

thomaskien commented 11 months ago

I just realized that ESS-Mode 3 is working! it just takes some time like >1min ... I did not show the needed patience! ;-) image could you please close the issue? Regards, Thomas

GitSoDE commented 9 months ago

Hi Thomas,

i've seen that you send notes with info to discharge via Multiplus 2 "AC Power L1 setpoint (W)", what are the pre requist. I try it, too - but Multiplus 2 doesn't do it. any hint, please ?

Cheers Eckhard

pmcgn commented 8 months ago

Seems to be resolved. Closing Issue.

Just to clarify: The logic for handling Modbus Slaves comes from Victron. This 'Script' is more a device definition, than a real script. It does not actively read any data from the KSEM. It just tells victron, where it can find which value. These are then published on the internal bus by the victron modbus client application.