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.
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
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.
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?
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!
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.
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.
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.
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.
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.
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 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.
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?