marstek-venus-rs485-node-red icon indicating copy to clipboard operation
marstek-venus-rs485-node-red copied to clipboard

Integration just stops working

Open rcr6z5rgg7-debug opened this issue 8 months ago • 10 comments

Hi, I started the integration on full control/self-consumption and it worked ok for 20 seconds and then the only thing it show was "Done" I see errors I the master control flow but no info in debug. What could be wrong?

Image Image

User work mode and rs485 is ok

Image Image

foun other errors in hom battery start

Image

rcr6z5rgg7-debug avatar Mar 25 '26 14:03 rcr6z5rgg7-debug

  1. What type of battery do you have?
  2. How did you connect it to Home Assistant?
  3. Did you use Fonske's RS485 integration or a different one?

Did you use and change something in the Marstek App afterwards? If so: it will retake control and Home Assistant can't send command to it.

If you have Discord, there are over 200 people on the server who can help you out: https://discord.gg/yeAGaE4kgy

gitcodebob avatar Mar 25 '26 16:03 gitcodebob

Hello Bob,

I have 2 Marstek Venus E v3 batteries. I do not use integration of fonske because I'm still experimenting with your (great looking) integration. For the moment I use another integration (only self-consumption). My main problem is that I use a HA green which is clearly to slow to use this NodeRed integration. So now for experimentation sake, I'm switching between the two (did some translation for the sensors). This was working on the green but now I installed another ha Instance on a faster pc (in vm) and linked the two via remote ha (unconventional but it helps me with the experiment). All sensors are available. Not entirely sure what could be the problem but as I have no debug information, I'm a bit stuck. When engaging full control, the other integration was dormant and I'm not using Marstek app). So any information on how to troubleshoot this is welcome. 🙏

rcr6z5rgg7-debug avatar Mar 26 '26 07:03 rcr6z5rgg7-debug

Hello Bob,

I have 2 Marstek Venus E v3 batteries. I do not use integration of fonske because I'm still experimenting with your (great looking) integration. For the moment I use another integration (only self-consumption). My main problem is that I use a HA green which is clearly to slow to use this NodeRed integration. So now for experimentation sake, I'm switching between the two (did some translation for the sensors). This was working on the green but now I installed another ha Instance on a faster pc (in vm) and linked the two via remote ha (unconventional but it helps me with the experiment). All sensors are available. Not entirely sure what could be the problem but as I have no debug information, I'm a bit stuck. When engaging full control, the other integration was dormant and I'm not using Marstek app). So any information on how to troubleshoot this is welcome. 🙏

Please check your sensors (availability and their values); my experience is that you can't have 2 integrations talking to the v3 batteries modbus (LAN) at the same time.. Only one works.. The other becomes unavailable or works for short amount of time.

Please check the state of both 'integrations' (fonske version isn't really an integration, but you can find those in the 'modbus' section). HBC only supports fonske's version of managing the batteries. I do think the other integration is a bit nicer but it doesn't work well (yet) with HBC.

Dennis-Q avatar Mar 26 '26 20:03 Dennis-Q

Is HBC talking to modbus directly? If not, I have only one system that does (fonske alternative). I translated the sensors to the expected one. On one ha it works. With remote ha, it doesn't.

rcr6z5rgg7-debug avatar Mar 27 '26 07:03 rcr6z5rgg7-debug

Is HBC talking to modbus directly? If not, I have only one system that does (fonske alternative). I translated the sensors to the expected one. On one ha it works. With remote ha, it doesn't.

HBC is using the entities that are created by fonske's implementation. If you did not implement that, it will not work, but apart from that..

I think you can only have one modbus client active at the same time (atleast for the TCP modbus via LAN port). So if you still have another HA that works, that is probably the cause for your issues. Shutdown that HA (just to be sure it doesn't keep the connection open) and try again with your new HA, maybe reboot that as well.

Dennis-Q avatar Mar 27 '26 07:03 Dennis-Q

I have only one modbus and one battery control (pid) at the same time active. The sensors of my modbus integration are translated to the ones of fonske. The only difference is that control and modbus are on two different ha instances, linked with remote ha.

rcr6z5rgg7-debug avatar Mar 27 '26 14:03 rcr6z5rgg7-debug

And how do you make sure only one is active? Also, anything other than fonskes integration is not supported, if you want to go that route, you are on your own as I don't think it's supported by this project.

Also, it is very unclear to me what you mean with 'linked with remote ha'.

If you have an integration (or modbus) configured on any of your HA instances, connecting to the same battery, it is active and 'consuming' the connection. How are you so sure only one modbus is active?

Please clarify what instances you have and what you have configured exactly, maybe you can add some screenshots.

Dennis-Q avatar Mar 27 '26 15:03 Dennis-Q

Do you know remote home assistant? I have a main ha instance and a slave instance. On the main instance I run HBC. On the slave I have the modbus integration. I understand that you only support fonske modbus but that's is not the issue. Before on one system, they worked together besides the system was to slow. It must be something with the remote ha setup but I'm not familiar with node red. Do you know what the nodes with error should look like in properties? I see no values for action or targets. Is that normal?

rcr6z5rgg7-debug avatar Mar 29 '26 13:03 rcr6z5rgg7-debug

Image Image

Addition question: it seems that when you import the files in packages, the dashboard automatically says everything is fine although the node red flows are not in place yet. Is this a bug? It's odd that the system also automatically select the correct number of batteries. I remember my first encounter with HBC that this was not the case.

rcr6z5rgg7-debug avatar Mar 29 '26 15:03 rcr6z5rgg7-debug

It was intended for onboarding / first time use. Once it is signaled green it will stay green until a restart of HA.

I've looked at possible sources of issues. The most likely one is somehow Node-RED not being able to send to your batteries or receiving an error from HA upon attempt. You could check the HA logs. The chain of action is: NR call -> change HA entity -> trigger communication to your battery

My gut feeling is the following:

The sensors of my modbus integration are translated to the ones of fonske.

Since you translate to entities, instead of using the fonske options directly, HA may not trigger and update changes correctly to your battery. The HA logic behind translated entities is a bit of an art.

The work mode being 'anti-feed' after being put into Manual mode, attests to this communication failure. Minor detail: in your screenshot it shows as being in Manual mode. But I assume you have put it back to manual mode after the batteries not working?

You could test this by switching to the Fonske versions - just to see if that solves it or not.

gitcodebob avatar Apr 07 '26 21:04 gitcodebob