Good day all,
I’m playing with the MQTT integration, more specifically the auto discover.
I have enabled auto discovery and all my nodes are broadcasting to the broadcast topic:
homeassistant/sensor/livingroomT/config {"device_class": "temperature", "name": "Temperature", "state_topic": "homeassistant/sensor/livingroom/state", "unit_of_measurement": "°C", "value_template": "{{ value_json.temperature}}" };
And the state topic:
homeassistant/sensor/livingroom/state { "temperature": 20.80, "humidity": 45.56, "pressure": 1006.56, "light": 67.50 }
However, the sensors don’t seem to appear under the integration, am i doing something wrong?
My configuration.yml
mqtt:
broker: 192.168.2.50
username: homeassistant
password: xxxxxxx
discovery: true
discovery_prefix: homeassistant
Update: Seems the json messages send we’re wrong. One last thing, can i change the sensor name?
Currently it gets registered as sensor.temperature, i would like it to have it as sensor.livingroom_temperature. Is that possible?