I canāt work out whatās bust, Iāve tried restarting everything several times, unplugged the adaptor physically and so on but all to no avail, I canāt get MQTT to restart for some reason I canāt fathom.
Do you have this error?:
[2025-01-03 18:10:26] error: z2m: Error: Cannot discover TCP adapters at this time. Specify valid āadapterā and āportā in your configuration.
If you do add
adapter: zstack
after port: tcp://xxx.xxx.x.xxx:6638
Save and restart addon
Thanks, I read through the changes but to be honest most of it I didnāt get, Iām a plug ānā play type though pointed in the right direction I can usually get by.
Sorry, I should have said, this is on an HA Green using the ZBT-1 that are both fresh, new about two or three months ago so I didnāt expect there to be any issues.
With the path for the port copied from the connect in hardware config where the docs said to find that.
It still faikls to start with the same error being given, I think Iāve missed something or done something incorrectly but I canāt work out what that is.
Argh, this is driving me nuts, I can now get it to open and connect to the serial port but it fails to see the adaptor for some reason and I tried it as āemberā but that fails as well, different error from using the āstackā but it still fails.
So I just updated to z2m 2.01 - and I also had issues.
First of all I misspelled adapter: zstack as adaptor: zstack once I fixed that z2m connected to my adaptor.
I could then see all my devices in the z2m web interface but they were all missing in Home Assistant. A home assistant restart (not host reboot) seems to have fixed that.
I had the same issue after the upgrade but adding āadapter: zstackā to the zigbee2mqtt\configuration.yaml under the āport:ā in the āserialā config did the trick.
Thank you! I missed that notice in the changelog and it has been a couple of very scary minutes!
Everything is back in order after adding the suggested line to the configuration file: thanks for describing the path and the change to made so clearly that even with a few minutes of spare time I could find the answer quickly enough.
All devices are readily available in HA after restarting the Z2M component, without needing an additional restart.
Thanks guys, I still cant get it to work, in the Z2M config yaml I have this on the end of it, I checked the yaml code and itās supposed to be valid as shown here:
homeassistant_legacy_entity_attributes: false
homeassistant_legacy_triggers: false
legacy_api: false
legacy_availability_payload: false
legacy: false
serial:
port: >-
#Your adaptor port details found in the hardware details
adaptor: zstack
Yet I persistently get this eror despite trying the same thing with the different apaptor spelling etc:
[12:41:12] INFO: Preparing to start...
[12:41:12] INFO: Socat not enabled
[12:41:13] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-04 12:41:21] info: z2m: Logging to console, file (filename: log.log)
[2025-01-04 12:41:21] info: z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-04 12:41:21] info: z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-04 12:41:21] error: z2m: Error while starting zigbee-herdsman
[2025-01-04 12:41:21] error: z2m: Failed to start zigbee-herdsman
[2025-01-04 12:41:21] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-04 12:41:21] error: z2m: Exiting...
[2025-01-04 12:41:21] error: z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.
at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33)
at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24)
at Zigbee.start (/app/lib/zigbee.ts:69:27)
at Controller.start (/app/lib/controller.ts:142:13)
at start (/app/index.js:161:5)
[2025-01-04 12:41:21] error: z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364