Hi everyone. Thanks for the awesome forum.
I wanted to check if someone has some wisdom on the issue that has been killing me for a couple of days now T.T
My setup is the following:
- Three zigbee temperature and humidity sensors
- Zigbee2Mqtt
- Mosquitto
I have been able to add the temperature readings as a sensor manually, but I am not able to make autodiscovery work, the mqtt broker shows nothing, not matter what I configure.
Here is a picture of the topics:
The sensors seem the be published properly, and for example, the content of the temperature config is:
{
"availability": [
{
"topic": "zigbee2mqtt/bridge/state",
"value_template": "{{ value_json.state }}"
}
],
"default_entity_id": "sensor.th_habitaculo_temperature",
"device": {
"configuration_url": "xxx.xxx.x.xxx:xxxx/#/device/0/0xa4c138c4bc834ff5/info",
"hw_version": 0,
"identifiers": [
"zigbee2mqtt_0xa4c138c4bc834ff5"
],
"manufacturer": "Zbeacon",
"model": "Temperature and humidity sensor",
"model_id": "TH01",
"name": "th_habitaculo",
"sw_version": "0122052017",
"via_device": "zigbee2mqtt_bridge_0x00124b0038a9169b"
},
"device_class": "temperature",
"enabled_by_default": true,
"object_id": "th_habitaculo_temperature",
"origin": {
"name": "Zigbee2MQTT",
"sw": "2.12.0",
"url": "https://www.zigbee2mqtt.io"
},
"state_class": "measurement",
"state_topic": "zigbee2mqtt/th_habitaculo",
"unique_id": "0xa4c138c4bc834ff5_temperature_zigbee2mqtt",
"unit_of_measurement": "°C",
"value_template": "{{ value_json[\"temperature\"] }}"
}
and this is the payload of one of the th_ topics under zigbee2mqtt/
{
"battery": 72,
"device": {
"applicationVersion": 147,
"friendlyName": "th_habitacion",
"hardwareVersion": 0,
"ieeeAddr": "0xa4c138b887d9d961",
"manufacturerID": 4742,
"manufacturerName": "Zbeacon",
"model": "TH01",
"networkAddress": 28416,
"powerSource": "Battery",
"softwareBuildID": "0122052017",
"stackVersion": 2,
"type": "EndDevice",
"zclVersion": 3
},
"humidity": 32.68,
"linkquality": 61,
"temperature": 27.64,
"voltage": 2600
}
For some reason home assistant is not showing the sensors, I've read the mqtt-discovery page and everything seems alright, unless the object_id in <discovery_prefix>//[<node_id>/]<object_id>/config needs to be unique, in which case I'm screwed because the unique part is in the "component".
thank you all.





