MQTT Showing entities but not devices from Z2M

Hi all, I couldnt find this same issue so: Brand new install I have a POE adaptor with Z2m paired to a single door sensor for testing. MQTT is showing me entities but no devices. Is this correct?



Z2M yaml below

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: user
  password: password
  keepalive: 60
  reject_unauthorized: true
  version: 4
  include_device_information: true
serial:
  port: tcp://192.168.1.119:6638
  baudrate: 115200
  adapter: ember
  rtscts: false
  disable_led: false
advanced:
  transmit_power: 20
frontend:
  port: 8099
permit_join: true
devices:
  "0xa4c13856df106764":
    friendly_name: Patio Door Sensor
homeassistant:
  legacy_entity_attributes: false
  legacy_triggers: false
ota:
  ikea_ota_use_test_url: false
availability:
  active:
    timeout: 20
  passive:
    timeout: 540

MQTT yaml

logins:
  - username: user
    password: password
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
  active: false
  folder: mosquitto
Log

[2024-08-21 19:20:12] info: zh:ember:uart:ash: Out of sequence : RX=0 [2024-08-21 19:20:12] info: zh:ember:uart:ash: ACK timeouts : RX=0 [2024-08-21 19:20:12] info: zh:ember:uart:ash: ======== ASH stopped ======== [2024-08-21 19:20:12] info: zh:ember:ezsp: ======== EZSP stopped ======== [2024-08-21 19:20:12] info: zh:ember: ======== Ember Adapter Stopped ======== [2024-08-21 19:20:13] info: zh:ember: ======== Ember Adapter Starting ======== [2024-08-21 19:20:13] info: zh:ember:ezsp: ======== EZSP starting ======== [2024-08-21 19:20:13] info: zh:ember:uart:ash: ======== ASH Adapter reset ======== [2024-08-21 19:20:13] info: zh:ember:uart:ash: Socket ready [2024-08-21 19:20:13] info: zh:ember:uart:ash: ======== ASH starting ======== [2024-08-21 19:20:14] info: zh:ember:uart:ash: ======== ASH connected ======== [2024-08-21 19:20:14] info: zh:ember:uart:ash: ======== ASH started ======== [2024-08-21 19:20:14] info: zh:ember:ezsp: ======== EZSP started ======== [2024-08-21 19:20:14] info: zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched. [2024-08-21 19:20:14] info: zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.1 [GA]","build":0,"major":7,"minor":4,"patch":1,"special":0,"type":170} [2024-08-21 19:20:14] info: zh:ember: [STACK STATUS] Network up. [2024-08-21 19:20:14] info: zh:ember: [INIT TC] Adapter network matches config. [2024-08-21 19:20:14] info: zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast. [2024-08-21 19:20:25] error: zh:ember:ezsp: ERROR Transaction failure; status=ASH_ERROR_TIMEOUTS. Last Frame: [FRAME: ID=38:"GET_EUI64" Seq=32 Len=13]. [2024-08-21 19:20:25] error: zh:ember: !!! ADAPTER FATAL ERROR reason=ASH_ERROR_TIMEOUTS. !!! [2024-08-21 19:20:25] info: zh:ember: Attempting adapter reset... [2024-08-21 19:20:25] info: zh:ember:uart:ash: ASH COUNTERS since last clear: [2024-08-21 19:20:25] info: zh:ember:uart:ash: Total frames: RX=35, TX=69 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Cancelled : RX=0, TX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: DATA frames : RX=34, TX=33 [2024-08-21 19:20:25] info: zh:ember:uart:ash: DATA bytes : RX=292, TX=335 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Retry frames: RX=0, TX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: ACK frames : RX=0, TX=35 [2024-08-21 19:20:25] info: zh:ember:uart:ash: NAK frames : RX=0, TX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: nRdy frames : RX=0, TX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: CRC errors : RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Comm errors : RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Length < minimum: RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Length > maximum: RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Bad controls : RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Bad lengths : RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Bad ACK numbers : RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Out of buffers : RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Retry dupes : RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: Out of sequence : RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: ACK timeouts : RX=0 [2024-08-21 19:20:25] info: zh:ember:uart:ash: ======== ASH stopped ======== [2024-08-21 19:20:25] info: zh:ember:ezsp: ======== EZSP stopped ======== [2024-08-21 19:20:25] info: zh:ember: ======== Ember Adapter Stopped ======== [2024-08-21 19:20:25] error: z2m: Error while starting zigbee-herdsman [2024-08-21 19:20:25] error: z2m: Failed to start zigbee [2024-08-21 19:20:25] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions [2024-08-21 19:20:25] error: z2m: Exiting... [2024-08-21 19:20:26] error: z2m: Error: ASH_ERROR_TIMEOUTS at Ezsp.ezspVersion (/app/node_modules/zigbee-herdsman/src/adapter/ember/ezsp/ezsp.ts:1395:19) at EmberAdapter.emberVersion (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1462:63) at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:750:9) at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1758:24) at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29) at Zigbee.start (/app/lib/zigbee.ts:63:27) at Controller.start (/app/lib/controller.ts:139:27) at start (/app/index.js:154:5) [19:20:26] INFO: Preparing to start... [19:20:26] INFO: Socat not enabled [19:20:27] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2024-08-21 19:20:28] info: z2m: Logging to console, file (filename: log.log) [2024-08-21 19:20:28] info: z2m: Starting Zigbee2MQTT version 1.39.1 (commit #unknown) [2024-08-21 19:20:28] info: z2m: Starting zigbee-herdsman (0.55.3) [2024-08-21 19:20:28] info: zh:ember: Using default stack config. [2024-08-21 19:20:28] info: zh:ember: ======== Ember Adapter Starting ======== [2024-08-21 19:20:28] info: zh:ember:ezsp: ======== EZSP starting ======== [2024-08-21 19:20:28] info: zh:ember:uart:ash: ======== ASH Adapter reset ======== [2024-08-21 19:20:28] info: zh:ember:uart:ash: Socket ready [2024-08-21 19:20:28] info: zh:ember:uart:ash: ======== ASH starting ======== [2024-08-21 19:20:29] info: zh:ember:uart:ash: ======== ASH connected ======== [2024-08-21 19:20:29] info: zh:ember:uart:ash: ======== ASH started ======== [2024-08-21 19:20:29] info: zh:ember:ezsp: ======== EZSP started ======== [2024-08-21 19:20:29] info: zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched. [2024-08-21 19:20:29] info: zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.1 [GA]","build":0,"major":7,"minor":4,"patch":1,"special":0,"type":170} [2024-08-21 19:20:30] info: zh:ember: [STACK STATUS] Network up. [2024-08-21 19:20:30] info: zh:ember: [INIT TC] Adapter network matches config. [2024-08-21 19:20:30] info: zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast. [2024-08-21 19:20:30] info: z2m: zigbee-herdsman started (resumed) [2024-08-21 19:20:30] info: z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":1,"revision":"7.4.1 [GA]","special":0,"type":170},"type":"EmberZNet"}' [2024-08-21 19:20:30] info: z2m: Set transmit power to '20' [2024-08-21 19:20:30] info: z2m: Currently 1 devices are joined: [2024-08-21 19:20:30] info: z2m: Patio Door Sensor (0xa4c13856df106764): MC500A - Tuya Door sensor (EndDevice) [2024-08-21 19:20:30] warning: z2m: permit_joinset to truein configuration.yaml. [2024-08-21 19:20:30] warning: z2m: Allowing new devices to join. [2024-08-21 19:20:30] warning: z2m: Setpermit_jointofalse once you joined all devices. [2024-08-21 19:20:30] info: z2m: Zigbee: allowing new devices to join. [2024-08-21 19:20:30] info: zh:ember: [STACK STATUS] Network opened. [2024-08-21 19:20:30] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883 [2024-08-21 19:20:30] info: z2m: Connected to MQTT server [2024-08-21 19:20:30] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' [2024-08-21 19:20:30] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Patio Door Sensor/availability', payload 'online' [2024-08-21 19:20:30] info: z2m: Started frontend on port 8099 [2024-08-21 19:20:30] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"unknown","coordinator":{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":1,"revision":"7.4.1 [GA]","special":0,"type":170},"type":"EmberZNet"},"log_level":"info","network":{"channel":11,"extendedPanID":15987178197214945000,"panID":6754},"permit_join":true,"version":"1.39.1"}' [2024-08-21 19:20:30] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' [2024-08-21 19:20:30] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Patio Door Sensor', payload '{"battery":100,"battery_low":false,"contact":true,"device":{"applicationVersion":70,"dateCode":"","friendlyName":"Patio Door Sensor","hardwareVersion":1,"ieeeAddr":"0xa4c13856df106764","manufacturerID":4417,"manufacturerName":"_TZ3000_2mbfxlzr","model":"MC500A","networkAddress":22702,"powerSource":"Battery","stackVersion":0,"type":"EndDevice","zclVersion":3},"linkquality":156,"tamper":false,"voltage":3000}' [2024-08-21 19:20:30] info: z2m: Zigbee2MQTT started! [2024-08-21 19:20:35] info: z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/1221051039810110150109113116116_0x84b4dbfffebc5c45/connection_state/config', payload '{"device":{"hw_version":"EmberZNet 7.4.1 [GA]","identifiers":["zigbee2mqtt_bridge_0x84b4dbfffebc5c45"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.39.1"},"device_class":"connectivity","entity_category":"diagnostic","name":"Connection state","object_id":"zigbee2mqtt_bridge_connection_state","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"payload_off":"offline","payload_on":"online","state_topic":"zigbee2mqtt/bridge/state","unique_id":"bridge_0x84b4dbfffebc5c45_connection_state_zigbee2mqtt","value_template":"{{ value }}"}' [2024-08-21 19:21:16] info: z2m: Starting network scan (includeRoutes 'false') [2024-08-21 19:21:17] info: z2m: Network scan finished [2024-08-21 19:21:17] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/networkmap', payload '{"data":{"routes":false,"type":"raw","value":{"links":[{"depth":1,"linkquality":0,"lqi":0,"relationship":1,"routes":[],"source":{"ieeeAddr":"0xa4c13856df106764","networkAddress":22702},"sourceIeeeAddr":"0xa4c13856df106764","sourceNwkAddr":22702,"target":{"ieeeAddr":"0x84b4dbfffebc5c45","networkAddress":0},"targetIeeeAddr":"0x84b4dbfffebc5c45"}],"nodes":[{"definition":null,"failed":[],"friendlyName":"Coordinator","ieeeAddr":"0x84b4dbfffebc5c45","lastSeen":null,"networkAddress":0,"type":"Coordinator"},{"definition":{"description":"Door sensor","model":"MC500A","supports":"contact, battery, voltage, battery_low, linkquality","vendor":"Tuya"},"friendlyName":"Patio Door Sensor","ieeeAddr":"0xa4c13856df106764","lastSeen":1724230376847,"manufacturerName":"_TZ3000_2mbfxlzr","modelID":"TS0203","networkAddress":22702,"type":"EndDevice"}]}},"status":"ok","transaction":"chmve-1"}'

After 40 minutes the devices now show without intervention

You likely needed to cause the sensor to send an event, or use the re-interview button in Z2M to cause it to update. I’ve also had luck by renaming the sensor in Z2M (be sure to choose to also rename it in HA), save, and then go back and name it correctly (again choosing to update HA).

1 Like