simon2022
(Simon)
January 23, 2024, 10:24am
1
Zigbee2mqtt sends discovery topics, they are received by mosquitto, but entities do not show up.
Mosquitto logs:
homeassistant/sensor/0x00158d0004066f44/battery/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"configuration_url":"http://192.168.103.70:8087/#/device/0x00158d0004066f44/info","identifiers":["zigbee2mqtt_0x00158d0004066f44"],"manufacturer":"Xiaomi","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","name":"0x00158d0004066f44","via_device":"zigbee2mqtt_bridge_0x00124b0018e1b395"},"device_class":"battery","enabled_by_default":true,"entity_category":"diagnostic","object_id":"0x00158d0004066f44_battery","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0x00158d0004066f44","unique_id":"0x00158d0004066f44_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}
The whole file is here , sorry too large for pastebin.
What I checked:
homeassistant is receiving messages from my mosquitto server:
mosquitto server receives the config topics. I checked via
mosquitto_sub -v -t "#" >> mosquitto.simon.log
Whats unknown to me:
Are these the correct config topics from zigbee2mqtt or are further messages needed?
Is there an error in the formatting?
simon2022
(Simon)
January 23, 2024, 12:28pm
2
Autodiscovery is enabled:
I see in the mosquitto logs that after the configuration messages, same messages with payload null are sent out. Here is a part of the logs:
homeassistant/sensor/0x00158d0004470aea/linkquality/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"configuratio>
homeassistant/sensor/0xa4c13830a91bd2e7/temperature/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"configuratio>
homeassistant/sensor/0xa4c13830a91bd2e7/humidity/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"configuration_u>
homeassistant/sensor/0xa4c13830a91bd2e7/battery/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"configuration_ur>
homeassistant/sensor/0xa4c13830a91bd2e7/temperature_display_mode/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{>
homeassistant/select/0xa4c13830a91bd2e7/temperature_display_mode/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"command_t>
homeassistant/sensor/0xa4c13830a91bd2e7/linkquality/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"configuratio>
homeassistant/sensor/0xa4c13830a91bd2e7/update_state/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"configurati>
homeassistant/binary_sensor/0xa4c13830a91bd2e7/update_available/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{">
homeassistant/update/0xa4c13830a91bd2e7/update/config {"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"command_topic":"zigbee2mqtt>
homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b0018e1b395/restart_required/config (null)
homeassistant/button/1221051039810110150109113116116_0x00124b0018e1b395/restart/config (null)
homeassistant/select/1221051039810110150109113116116_0x00124b0018e1b395/log_level/config (null)
homeassistant/sensor/1221051039810110150109113116116_0x00124b0018e1b395/version/config (null)
homeassistant/sensor/1221051039810110150109113116116_0x00124b0018e1b395/coordinator_version/config (null)
homeassistant/sensor/1221051039810110150109113116116_0x00124b0018e1b395/network_map/config (null)
homeassistant/sensor/1221051039810110150109113116116_0x00124b0018e1b395/permit_join_timeout/config (null)
homeassistant/switch/1221051039810110150109113116116_0x00124b0018e1b395/permit_join/config (null)
Homeassistant seems not even to hear these messages:
simon2022
(Simon)
January 27, 2024, 11:38am
4
I did a complete reinstall of homeassistant two days ago.
After restarting zigbee2mqtt, the sensors showed up. I had a look today and they were gone again.
I have two different zigbee2mqtt installation on raspberries. They both were setup independantly.
simon2022
(Simon)
January 27, 2024, 11:40am
5
When I restart zigbee2mqtt, they show up. But after some time, they are gone again. And they do not show data: