-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home Assistant auto discovery not picked up #31
Comments
@svh1985 I'm no home assistant user, this auto discovery is build according to the specs (some time ago). Apparently they don't work. How should the auto discovery messages be formatted? Did you turn on mqtt auto discovery in home assistant? |
I've just setup a home assistant instance just to test this. What values would you like to see in home assistant? |
I would like build a dashboard that includes this information:
Let me know if I can do something to help/test :) |
🎉 This issue has been resolved in version 1.7.0-beta.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Small sample: @svh1985 you could test the latest beta and see if it works for you now, the docker version is currently building, see https://github.com/svrooij/smartmeter2mqtt/runs/3002295741 (usually takes +/- 14 minutes) |
Can you give some examples of what you tried which didn't work? Documentation is here: |
@emontnemery I didn't see the second page when I implemented this a year ago. After this change the sensors started appearing. Do you need me to write out the config messages or can you see it in the changes? The object is converted to json before sending to mqtt. |
@svrooij The change makes substantial changes to the functionality though; you now tie the sensors to a device object in Home Assistant but you also remove the By the way:
|
@emontnemery this didn't work. I need to mention, I myself am no home assistant user, so adding home assistant support is just for others to enjoy. The sensors where not picked up (as stated by @svh1985 ), I then started a clean home assistant installation as a docker container in windows (which just works as opposed to the documentation saying not working). And connected it to my already being used mqtt server. The entities didn't show up. So I guess that can be called not working. I then just tried to send out the same config file as I don't use this part myself, but want to help others, this (home assistant discovery) is included. If it needs changing please state what should be send instead of the current messages (this is de latest version that is building as we speak). Power usage: {
"availability": [
{
"topic": "smartmeter/connected",
"payload_available": "2"
}
],
"device": {
"identifiers": [
"smartmeter_xxx"
],
"model": "KFM5KAIFA-METER",
"name": "DSMR power 33137",
"sw_version": "smartmeter2mqtt (0.0.0-development)"
},
"device_class": "power",
"state_class": "measurement",
"json_attributes_topic": "smartmeter/status/energy",
"state_topic": "smartmeter/status/energy",
"name": "Current power usage",
"icon": "mdi:transmission-tower",
"unit_of_measurement": "Watt",
"value_template": "{{ value_json.calculatedUsage }}",
"unique_id": "smartmeter_xxx_current-usage"
} With these latest messages, the devices just show up, like here. 🎉 Starting home assistant in docker on windows |
Hi, Thanks! |
For those running into the same issue: I managed to get it work using smartmeter2mqtt-latest version by adding this to my configuration.yaml:
|
Hello,
I'm trying to connect the HA, but for some reason HA doesn't pick up the data using auto discovery. I'm not sure what I'm doing wrong. Do I need to add some additional config?
The MQTT messages are published, (filtered view of) MQTT structure:
Docker-Compose
The text was updated successfully, but these errors were encountered: