Just bought and install semmeter electricity monitoring kit. Data is showing in the app. I want to integrate this data to HomeIO. mqtt broker is installed and configure using the instructions provided by semmeter in the link below.
But the “unknown” values is showing under current entity states when filtered “vol”. config yaml is using the mqtt demo code with MAC address replaced.
Changing the mqtt broker to local HomeIO mqtt broker did not fix the issue.
I did the same change on the app by using local broker and voltage data is displaying.
Any idea where configuration maybe incorrrect or missing?
This is not a HomeIO forum, but if you want to integrate the data with Home Assistant, keep reading.
Check to make sure messages are arriving at your broker. Go to settings, devices & services, click MQTT, then its CONFIGURE button. Under “Topic to subscribe to” enter SEMMETER/# and click Listen. Within a minute you should have see a message received at the topic SEMMETER/MACADDRESS/HA.
If you don’t receive a message, then your device is not configured correctly. Make sure to use mqtt://address:port in the semmeter config for the mqtt broker server. Also there is a limit on password length so don’t make that toooooo long. 15 chars should work.
If you do receive a message, make sure the “MAC ADDRESS” section in the received topic is the same one you used to create your mqtt sensors. These meters have two MACs and the one in the receive topic is the right one to use.
Where should i see this message? I used mqtt explorer to double check messages are getting to the broker.
I did note there are 2 MAC addresses. Tried both but neither works.
2025-03-30 21:27:19.669 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing with mid: 66 to topics with qos: [('SEMMETER/XXXXXXXXXXXX/HA', 0), ('cloudapp/QBUSMQTTGW/config', 0), ('cloudapp/QBUSMQTTGW/state', 0)]
I completely agree, discovery packets would be ideal. But in the mean time there is now a blueprint that can help create the discovery packets for you once you know your MAC address:
As described on the GitHub page, I’ve seen problems if two sem meters try to share the same credentials for MQTT so use a different one for each. I would suggest keeping the username and password as boring as possible. No weird characters, nothing too long nor too short.
I think that the sem meter has started pushing version 3.0.5 to all meters now but previously you had to request it specifically. 3.0.5 publishes every two seconds. Prior to that, it was only every 30 seconds.