Integration of External Marstek

Hello, I am using a Marstek Venus 3.0 battery. During the installation of the integration, the battery was not discovered. I entered the @ip and got the response: 1 battery responded: Marstek Venus E 3.0 (xxx,xxx,x,xx). In the discovery tab, there is no device and the scan finds nothing. In the Marstek app, the Open API option is enabled and the port entered is the default port.

In the test connection action, I get the response: Discovery broadcast: 1 battery responded. Marstek Venus E 3.0 at xxx.xxx.x.xx: OK (firmware 150, Wi-Fi -57 dBm). Thanks in advance

@lmilcent, I think it’s you who developed this :wink:

@Francis66, can you provide the integration logs?

Yes, gather all possible information for the investigation, including the logs.

Here are the logs I collected:

docker logs c06c09037746

[2026-10-24T10:09:23.279Z] [INFO] Starting the Marstek integration...

[2026-10-24T10:09:23.510Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)

[2026-10-24T10:09:57.044Z] [INFO] Configuration updated: restarting the polling

[2026-10-24T10:10:08.687Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string

[2026-10-24T10:15:55.148Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string

[2026-10-24T10:23:38.904Z] [INFO] Starting the Marstek integration...

[2026-10-24T10:23:39.209Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)

[2026-10-24T10:23:53.484Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string

[2026-10-24T10:25:17.724Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string

[2026-10-24T10:25:22.414Z] [INFO] Starting the Marstek integration...

[2026-10-24T10:25:22.660Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)

[2026-10-24T10:25:31.465Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string docker logs c06c09037746

[2026-10-24T10:09:23.279Z] [INFO] Starting the Marstek integration...

[2026-10-24T10:09:23.510Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)

[2026-10-24T10:09:57.044Z] [INFO] Configuration updated: restarting the polling

[2026-10-24T10:10:08.687Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string

[2026-10-24T10:15:55.148Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string

[2026-10-24T10:23:38.904Z] [INFO] Starting the Marstek integration...

[2026-10-24T10:23:39.209Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)

[2026-10-24T10:23:53.484Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string

[2026-10-24T10:25:17.724Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string

[2026-10-24T10:25:22.414Z] [INFO] Starting the Marstek integration...

[2026-10-24T10:25:22.660Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)

[2026-10-24T10:25:31.465Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string

Finally, in the Logs tab of the integration, there is the same information as in the logs of the docker container.
This morning I noticed that some information was added to the logs.

[2026-10-24T10:25:31.465Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string
[2026-10-24T21:20:48.241Z] [INFO] Configuration updated: restarting the polling
[2026-10-24T21:34:50.188Z] [INFO] Configuration updated: restarting the polling
[2026-10-24T21:34:53.848Z] [INFO] Configuration updated: restarting the polling
[2026-10-24T21:35:05.502Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string
[2026-10-24T21:38:06.137Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string
[2026-10-24T21:43:59.463Z] [INFO] Starting the Marstek integration...
[2026-10-24T21:43:59.674Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)
[2026-10-24T21:45:09.922Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string
[2026-10-24T22:02:02.820Z] [INFO] Configuration updated: restarting the polling
[2026-10-24T22:03:31.573Z] [INFO] Configuration updated: restarting the polling
[2026-10-24T22:03:47.007Z] [INFO] Configuration updated: restarting the polling
[2026-10-24T22:04:04.550Z] [INFO] Configuration updated: restarting the polling
[2026-10-24T22:04:16.234Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string
[2026-10-24T22:05:14.222Z] [INFO] Configuration updated: restarting the polling
[2026-10-24T22:06:54.656Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[8].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string
[2026-10-24T22:10:59.744Z] [WARN] [marstek] Publishing the devices failed: devices[0].features[9].supported_options: "[0].label" must be a string, "[1].label" must be a string, "[2].label" must be a string, "[3].label" must be a string, "[4].label" must be a string
[2026-10-25T01:05:14.553Z] [INFO] [marstek] Marstek Venus E 3.0 (192.168.1.55) does not support ES.GetStatus
[2026-10-25T08:29:45.078Z] [INFO] [marstek] Marstek Venus E 3.0 (192.168.1.55) does not support EM.GetStatus

Thanks @Francis66, the logs say it all: the battery responds well, but it was Gladys that refused the device when publishing in Discovery. The five operating modes (Auto, AI, Manual, Passive, Backup) were described with a label in two languages, whereas Gladys only accepts plain text, and it rejected the entire publication, hence the empty tab despite the OK connection test.

This is fixed in v0.1.2, which has just been released. Update the integration from Gladys (or reinstall it from the repository), then run a scan again in Discovery: the Venus E 3.0 should appear. Nothing to change on the Marstek app side.

If it still doesn’t appear, paste the logs again after the update. And thanks for the detailed feedback, it helped find the cause in a few minutes.

Good evening,

Thank you so much, it’s great!! Sorry to have you intervene on a Sunday.

I just needed to restart Gladys to get the correct values. For example, my battery was charged to 100% and in the integration it was at 57%

A big thank you to all the developers. I had taken a bit of a step back from Gladys, but now there is an abundance of external integrations and I found what I needed.

Oh, with pleasure!

Don’t hesitate to ask for any missing modules.