Rebuilding from scratch

So, my HA stopped working - been in for about 2 years or so more or less with no issues…last week stuff started to stop working…knowing i was on a hiding to nothing i tried to get the radios working again (DeConzII and a Sonoff 3 dongle). Predictably at the end of my fault finding less was working that when i started…!

My knowledge is limited but thought id take the red pill/refresher course and start again from scratch…

Ive got the zigbee config complete apart from this error in the log that keeps appearing…

[2025-01-06 15:28:46] error: zh:ember:uart:ash: Failed to init port with error Error: Error Resource temporarily unavailable Cannot lock port
[2025-01-06 15:28:46] error: z2m: Error while starting zigbee-herdsman
[2025-01-06 15:28:46] error: z2m: Failed to start zigbee-herdsman
[2025-01-06 15:28:46] error: z2m: Check Zigbee2MQTT fails to start/crashes runtime | Zigbee2MQTT for possible solutions
[2025-01-06 15:28:46] error: z2m: Exiting…
[2025-01-06 15:28:46] error: z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.

Going back to my limited knowledge…i read snippets of info i didnt really understand…

I did get the latest firmware installed on the sonoff (July last year i think from recollection)?

  1. Something has depricated…?
  2. An adapter name has changed? (something to do with ember?)
  3. Something to do with Zigbee2.0?

Can anyone…kinda fill in the gaps…cheers to anyone that has a go at helping!

https://community.home-assistant.io/t/z2mqtt-keeps-shutting-down-after-update/823367/2?u=tom_l

oop - im cross posting (didnt realize i jumped to the other post…)

So found the file editor and installed… this is my config file now…

Loads default set of integrations. Do not remove.

default_config:

Load frontend themes from the themes folder

frontend:
themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
advanced:
homeassistant_legacy_entity_attributes: false
homeassistant_legacy_triggers: false
legacy_api: false
legacy_availability_payload: false
device_options:
legacy: false

Still doesnt work…and i seem to have more errors that when i started…

now i get an invalid config error on the sidebar…
Invalid config

The following integrations and platforms could not be set up:

Please check your config and logs.

You pasted it in the wrong configuration.yaml. The one you want is in the Zigbee2MQTT folder.

ok - great found that…whereabouts does it go? at the end or the start?

Well, i tried at the top where it says “advanced” and chopped it in there and, at the end…still wont start up…

Tried pasting it into a few different places within the script with no luck…does anyone have an example script that i could possibly copy…?

Thats the best i can get at the moment…but it still wont start…

[22:00:36] INFO: Preparing to start…
[22:00:36] INFO: Socat not enabled
[22:00:36] INFO: Starting Zigbee2MQTT…
Starting Zigbee2MQTT without watchdog.
/app/node_modules/.pnpm/[email protected]/node_modules/js-yaml/lib/loader.js:183
return new YAMLException(message, mark);
^
YAMLException: duplicated mapping key (32:1)
29 | - 138
30 | - 186
31 | - 204
32 | advanced:
------^
33 | homeassistant_legacy_entity_att …
34 | homeassistant_legacy_triggers: …
at generateError (/app/node_modules/.pnpm/[email protected]/node_modules/js-yaml/lib/loader.js:183:10)
at throwError (/app/node_modules/.pnpm/[email protected]/node_modules/js-yaml/lib/loader.js:187:9)
at storeMappingPair (/app/node_modules/.pnpm/[email protected]/node_modules/js-yaml/lib/loader.js:358:7)
at readBlockMapping (/app/node_modules/.pnpm/[email protected]/node_modules/js-yaml/lib/loader.js:1173:9)
at composeNode (/app/node_modules/.pnpm/[email protected]/node_modules/js-yaml/lib/loader.js:1441:12)
at readDocument (/app/node_modules/.pnpm/[email protected]/node_modules/js-yaml/lib/loader.js:1625:3)
at loadDocuments (/app/node_modules/.pnpm/[email protected]/node_modules/js-yaml/lib/loader.js:1688:5)
at Object.load (/app/node_modules/.pnpm/[email protected]/node_modules/js-yaml/lib/loader.js:1714:19)
at Object.read (/app/lib/util/yaml.ts:23:29)
at read (/app/lib/util/settings.ts:277:20)

Don’t just blindly try to paste in your config.

Go to the Z2M documentation page and follow the instructions for your coordinator

I dont understand…as i said im pretty rubbish at this - i know/knew enough copy and paste/watching YT videos to get up and running a couple of years back…at this point im totally lost. Ive managed to get the DeConz dongle up and running but thats got its own set of issues also…

I suggest you wipe out whatever configuration you had for Z2M and start from scratch.

At the very least, you seem to have 2 advanced: sections in your config, judging by your earlier error.

Sometimes it’s just easier to scrap everything and start afresh

Well - ironically thats what i did to get here…ive got it running on a proxmox vm so i could flatten it again…

As i say there must be someone out there running the same kind of setup…? (proxmox/sonoff dongle) - so i can see their script? even if it at least gave me an idea of where to put this set of commands…?

If it’s in proxmox, how is it set up? As an addon or as a separate lxc/vm?

Also, have you passed through your usb device to the host? Meaning, does HA recognise there’s a device plugged in on the port you specified?

yep - passed through successfully…got the device id’s all configured…its this zigbee 2.0 thing…

Ouch sorry, can’t help with that.

Holding off from updating to 2.0 until the action Vs event thing is settled

Well if its a total loss ive got the ConbeeII running (not really used it that much before) that being said it found a load of devices when it went online but i think it might have a ceiling height of the amount of devices it can see (ive got about 80 or so devices) but its only found about 40 or so…

Just ordered one of those skyconnect jobbies - have a mess around with that…worth a punt for 30 quid…

It is settled. Use the event entities.

1 Like

Well, ive had a stroke of luck…removed all of the zigbee addons and re tried the ZHA which has connected and is now working. A question…can i bind zigbee2mqtt to deconz?

Not sure what you mean with bind, but no they operate independently.