Errors in log for Marstek Venus E 3.0 using hame-relay & hm2mqtt

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
gbonny
Posts: 15
Joined: Friday 27 October 2017 22:08
Target OS: -
Domoticz version:
Contact:

Errors in log for Marstek Venus E 3.0 using hame-relay & hm2mqtt

Post by gbonny »

I'm using Tom Quists hame-relay and hm2mqtt ( https://github.com/tomquist/) in combination with Mosquitto and my Marstek Venus E 3.0 home battery.
Domoticz discovers a lot of devices. However I get a multiple errors in the logging every minute:

Code: Select all

2026-07-10 20:45:21.364  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Recharge Mode)" doesn't have the option for received STATE "threePhase")
2026-07-10 20:45:21.373  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Version Set)" doesn't have the option for received STATE "800W")
2026-07-10 20:45:21.374  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Working Mode)" doesn't have the option for received STATE "automatic")
2026-07-10 20:45:21.383  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Recharge Mode)" doesn't have the option for received STATE "threePhase")
2026-07-10 20:45:21.389  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Version Set)" doesn't have the option for received STATE "800W")
2026-07-10 20:45:21.390  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Working Mode)" doesn't have the option for received STATE "automatic")
2026-07-10 20:46:21.019  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Recharge Mode)" doesn't have the option for received STATE "threePhase")
2026-07-10 20:46:21.031  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Version Set)" doesn't have the option for received STATE "800W")
2026-07-10 20:46:21.031  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Working Mode)" doesn't have the option for received STATE "automatic")
2026-07-10 20:46:21.040  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Recharge Mode)" doesn't have the option for received STATE "threePhase")
2026-07-10 20:46:21.047  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Version Set)" doesn't have the option for received STATE "800W")
2026-07-10 20:46:21.048  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Working Mode)" doesn't have the option for received STATE "automatic")
2026-07-10 20:47:21.030  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Recharge Mode)" doesn't have the option for received STATE "threePhase")
2026-07-10 20:47:21.039  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Version Set)" doesn't have the option for received STATE "800W")
2026-07-10 20:47:21.039  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Working Mode)" doesn't have the option for received STATE "automatic")
2026-07-10 20:47:21.049  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Recharge Mode)" doesn't have the option for received STATE "threePhase")
2026-07-10 20:47:21.056  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Version Set)" doesn't have the option for received STATE "800W")
2026-07-10 20:47:21.057  Error: MQTT: Select device "HAME Energy VNSE3-0 <MAC> (Working Mode)" doesn't have the option for received STATE "automatic")
There are corresponding entities:
MQTT <MAC>_recharge_mode 1 HAME Energy VNSE3-0 <MAC> (Recharge Mode) General Text threePhase
MQTT <MAC>_version_set 1 HAME Energy VNSE3-0 <MAC> (Version Set) Light/Switch Switch 800W Version
MQTT <MAC>_working_mode 1 HAME Energy VNSE3-0 <MAC> (Working Mode) Light/Switch Switch Automatic

Does this require some programming on Domoticz or hm2mqtt/hame-relay side? Or can this be surpressed by either one?

Using Domoticz 2026.2.
User avatar
waltervl
Posts: 7021
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Errors in log for Marstek Venus E 3.0 using hame-relay & hm2mqtt

Post by waltervl »

Seems the MQTT Discovery config topic on the hm2mqtt side is not correct. It is missing some options to define the STATE.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
gbonny
Posts: 15
Joined: Friday 27 October 2017 22:08
Target OS: -
Domoticz version:
Contact:

Re: Errors in log for Marstek Venus E 3.0 using hame-relay & hm2mqtt

Post by gbonny »

waltervl wrote: Friday 10 July 2026 22:52 Seems the MQTT Discovery config topic on the hm2mqtt side is not correct. It is missing some options to define the STATE.
OK, I filed an issue here: https://github.com/tomquist/hm2mqtt/issues/360 lets see.
gbonny
Posts: 15
Joined: Friday 27 October 2017 22:08
Target OS: -
Domoticz version:
Contact:

Re: Errors in log for Marstek Venus E 3.0 using hame-relay & hm2mqtt

Post by gbonny »

Got a reply from Tom Q:

This is a Domoticz bug, not a config issue on hm2mqtt's side.

hm2mqtt publishes a valid Home Assistant MQTT select config: the state carries a raw value (threePhase) and a value_template maps it to the option label (Three Phase). Home Assistant applies that template and matches fine. Domoticz doesn't — it compares the raw value against the option list and errors.

Please report this to Domoticz. Summary for them:

In hardware/MQTTAutoDiscover.cpp, CleanValueTemplate() strips the select value_template's {% if %}/{% set %} mapping, so handle_auto_discovery_select() compares the raw value against select_options and never matches. Domoticz already has parseMapTemplate() (used for climate action_template) that could be applied to select value_template to fix this.

@Gizmocuz, can you fix this?
Post Reply