[APP][Pro] Marstek Venus Connector - Monitor, control and automate your Marstek home battery

I’ve seen this being reported multiple times; the API of the Marstek Battery itself does not communicate the value (anymore). They were part of the API responses, but since a firmware update they are no longer communicated. I always suggest to contact Marstek for this issue, but I’ve not analysed if other users have been succesfull in getting a fix/response…

See posts on and before Jul 16 in this forum. It seems to be related to missing values from ES.GetStatus.

Hi Edward,

Thank you for your explanation regarding the missing ES.GetStatus values on the Venus E V3. I will contact Marstek about this.

I have also noticed another issue with my setup.

I have three Venus E V2 batteries and one Venus E V3, all using the same CT003.

When periodic retrieval is enabled in Marstek Battery Connector, the V2 batteries frequently lose their CT003 connection and reconnect automatically.

When I disable the Homey connector, the CT003 connections appear to become stable again.

I have already tried increasing the polling interval from 60 to 300 seconds and disabling UDP broadcast, but the problem still occurs.

Have you encountered this issue before? Could the local API polling interfere with the communication between the batteries and the CT003?

Thank you for your help!

This is also a known issue with the API; I think there is only a single concurrent user allowed in the local API. I’ve failed to use them together on my V2, and gave up in the end. I think there are some details additional in the README (topic starter text).

Since the beginning I’ve been having problems with the API, at Marstek does not seem to have it under control yet. For reliable (complex) solutions, the local API of the battery is unfortunately not suitable…

I have been struggling with the connection from Homey to my Venus 3.0 too and I finally got it stable by changing from WiFi to Bluetooth and making sure there no one else is trying to connect to Venus 3.0, so killing the Marstek app on my phone and tablet.
My software versions are:
Homey: 13.5.3
Homey app: Marstek Batterijconnector 0.10.1
Venus 3.0 firmware: V150

I don’t miss anything, see picture below

Ct002 is more stable than P1. Currently making my own app to get the best results from my setup.

The whole setup gets so much better with the ct002. It felt like Marstek built it like that and the P1 meters are a workaround.

0 on the meter. A few 100 watts es.

Previously, the fuses blew because they were still discharging a lot while the consumers were all already out and the cloud disappeared in front of the sun.

If you use Marstek, buy a CT002 and stop with the P1. I know it should not matter if the p1 measures every second, but there is software in the ct002 that communicates with your batteries and makes them one.

Hallo Edward,

Ik gebruik vier Marstek Venus E 2.0-accu’s met Homey Pro en jouw Marstek Batterijconnector.

Ik wil in Homey kunnen controleren of iedere accu werkelijk in Auto/zelfconsumptie, Manual, AI of Passive staat. Alleen zien dat een schakelopdracht is verzonden, is hiervoor onvoldoende.

Kun je de uitleesopdracht ES.GetMode toevoegen en de teruggelezen bedrijfsstand beschikbaar maken als apparaatwaarde en Flow-voorwaarde? Graag met het tijdstip van de laatste geldige uitlezing, zodat oude gegevens herkenbaar zijn.

Mijn accu’s hebben regelmatig verbindingsproblemen. Daarom graag aansluiten op de bestaande communicatie, met gespreide verzoeken.

Is dit al mogelijk in een beschikbare versie, of kun je dit toevoegen?

Alvast bedankt!
Groet, Stef

Hallo @eniewold,

Een vriendelijke herinnering aan mijn vraag hierboven. Heb je al kunnen kijken of het mogelijk is om de werkelijke bedrijfsstand van iedere accu via ES.GetMode in Homey zichtbaar te maken en als Flow-voorwaarde te gebruiken?

Dat zou mij helpen om te controleren of mijn vier accu’s daadwerkelijk in zelfconsumptie staan. Ik hoor graag of dit mogelijk is wanneer je eraan toekomt.

Alvast bedankt voor je tijd en je werk aan de app!

Groet, Stef

Goedemorgen/Good morning,

I will try to implement the ES.GetMode, hopefully it will not have too many quircks. Testing the flow part is the most time consuming…

Mvg, Regards,
Edward

Good morning Edward,

Thanks for getting back to me and for looking into this. Being able to check whether the battery has actually switched to self-consumption mode would be very helpful.

If you’d like me to test it once it’s ready, I’d be happy to try it with my four Marstek Venus E 2.0 batteries.

Kind regards,
Stefan

Before releasing, please check if the following implementation is as expected.

Since the battery is not able to message a status change, the status change is detected through interval monitoring (polling the battery). The ES.GetMode is added to the message poll rotation as the 5th poll request. So detecting the change can take some minutes, since polling too often is not recommended (Battery local API does not like that).

When the battery mode is different between the new and previous poll > A new flow card ‘Battery Mode Change’ will trigger.

The ‘And’ flow card can be used to use logic depending on the state of the battery:

Additionally, this flow card can be used to retrieve the status of the battery, independent of the poll rotation. Use with care, since calling too often might cause local API problems on the battery.

Do you think the implementation of these flow cards offers an adequate solution for your setup?

Hi Edward,

Thanks for adding this. Yes, these two Flow cards are what I was looking for. With my four Marstek Venus E 2.0 batteries, I want to check whether each battery has returned to Auto after a scheduled charge. If one is still in Passive mode, I can have Homey send the Auto command again to that battery only.

A delay of a few minutes is fine for this check. Please let me know when the update is available so I can try it on my Homey.

Thanks for your help!

Best regards,
Stef

Check, i will commit this now, so check back in the next few hours.
Note that I’ve udpated my post with a third flow card.

I’ve done some tests, and those seem to be working, with the occassional API ignoring the request or giving an error, although the retry meganism seems to do the trick…

A new TEST v0.10.2 version has been released that includes the ES.GetMode local API calls through interval polling, and forced retrieval through a flow card. Other flow cards are also included that detect mode changes.

Note that mode changes are detected by polling, since the battery is not able to communicatie changes itself; so rapid changes, or changes back to same mode as before last poll are never detected.

Thanks for adding the three battery mode cards in version 0.10.2. I checked my Homey, but the new cards aren’t showing up yet, and the public App Store still lists version 0.9.1.

Is 0.10.2 already available as a test version? If so, could you send me the installation link? If it hasn’t been released yet, I’m happy to wait.

Thanks for your help!

Kind regards,
Stef

The latest TEST version can be downloaded from here:

Ja, Edward antwoordde in het Engels. Je kunt hem zo terugschrijven.

Hi Edward,

Thanks for sorting this out and sharing the link to the latest test version.

I’ve been having recurring issues charging and discharging my Marstek batteries through Homey because Homey couldn’t tell which mode the batteries were in. I’ll test the new version now to see whether Homey can read the current mode and control charging and discharging more reliably.

Thanks again for your help!

Best regards,
Stefan

Hi Edward,

Thanks for sorting this out and sharing the link to the latest test version.

I’ve been having recurring issues charging and discharging my Marstek batteries through Homey because Homey couldn’t tell which mode the batteries were in. I’ll test the new version now to see whether Homey can read the current mode and control charging and discharging more reliably.

Thanks again for your help!

Best regards,
Stefan

Hi Edward, I was using the Marstek cloud version, but it consistently showed only 2 batteries. I had recently added a third battery, so I removed it and added it again—but now I can no longer log in to the cloud at all. How can I resolve this?