TonSemail
(TonSemail)
April 8, 2025, 9:29pm
1
Currently i have
A: a win10 machine, with Z2M and Mosquitto standalone. HA in Virtualbox and a sonoff dongle-p.
I want to go to
B: a genericx86 HA installation with Z2M and mosquitto as Addons and a SLZ B-06Mg24.
I have tried to restore the backup from A to B. Removing the dongleP and give the SMLight the same IEEE. As i discovered and read on fora: THis does not seem be possible. I couldn´t get ZIgbee devices to repair
Then i tried to do a restore from A to B. Added mosquitto as addon, . Disable HA and mosquitto on machine A, but let Z2M running there. I checked all the ip numbers and changed them. Everything worked. Then i installed a Z2M addon on HA on Machine B and configured tit with the SMlight.After this all my devices were gone.
Efectively ther where two z2m instances both using the same mosquitto, but configure with a differnt coordinator. The idea was to repair all my device one at a time from one coordinator to the other. But this does not seem to work
Question: what would be the best approach to do this transformation?
francisp
(Francis)
April 9, 2025, 3:20am
2
If you do that, you need to define another mqtt topic for the second installation
See the mqtt section below
TonSemail
(TonSemail)
April 9, 2025, 7:59am
3
Hi, Thanks. I will give that a go.
Question: if i repair a device to the new zigbee2mqtt2, what happens to the device in HA, and the automations it is used in.
francisp
(Francis)
April 9, 2025, 8:59am
4
Just give it the same name as the old one, so everything keeps working
TonSemail
(TonSemail)
April 10, 2025, 3:56pm
5
When i start it i get in the log:
Starting Zigbee2MQTT without watchdog.
[2025-04-10 17:49:54] info: z2m: Logging to console, file (filename: log.log)
[2025-04-10 17:49:54] info: z2m: Starting Zigbee2MQTT version 2.2.1 (commit #unknown)
[2025-04-10 17:49:54] info: z2m: Starting zigbee-herdsman (3.4.11)
[2025-04-10 17:49:54] info: zh:ember: Using default stack config.
[2025-04-10 17:49:54] info: zh:ember: ======== Ember Adapter Starting ========
[2025-04-10 17:49:54] info: zh:ember:ezsp: ======== EZSP starting ========
[2025-04-10 17:49:54] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2025-04-10 17:49:54] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2025-04-10 17:49:54] info: zh:ember:uart:ash: ASH COUNTERS since last clear:
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Total frames: RX=0, TX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Cancelled : RX=0, TX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: DATA frames : RX=0, TX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: DATA bytes : RX=0, TX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Retry frames: RX=0, TX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: ACK frames : RX=0, TX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: NAK frames : RX=0, TX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: nRdy frames : RX=0, TX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: CRC errors : RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Comm errors : RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Length < minimum: RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Length > maximum: RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Bad controls : RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Bad lengths : RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Bad ACK numbers : RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Out of buffers : RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Retry dupes : RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: Out of sequence : RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: ACK timeouts : RX=0
[2025-04-10 17:49:54] info: zh:ember:uart:ash: ======== ASH stopped ========
[2025-04-10 17:49:54] error: zh:ember:uart:ash: Failed to init port with error Error: Error: No such file or directory, cannot open port: tcp://192.168.123.35:6638
[2025-04-10 17:49:54] error: z2m: Error while starting zigbee-herdsman
[2025-04-10 17:49:54] error: z2m: Failed to start zigbee-herdsman
[2025-04-10 17:49:54] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-04-10 17:49:54] error: z2m: Exiting...
[2025-04-10 17:49:55] error: z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
at EmberAdapter.initEzsp (/app/node_modules/.pnpm/[email protected] /node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:672:19)
at EmberAdapter.start (/app/node_modules/.pnpm/[email protected] /node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1538:24)
at Controller.start (/app/node_modules/.pnpm/[email protected] /node_modules/zigbee-herdsman/src/controller/controller.ts:136:29)
at Zigbee.start (/app/lib/zigbee.ts:69:27)
at Controller.start (/app/lib/controller.ts:104:13)
at start (/app/index.js:149:5)
Any idea what is going wring here. I checked IP numbers. I added rtscts: false, but that did not make any difference
My Configuration.yaml:
data_path: /config/zigbee2mqtt2
socat:
enabled: true
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:
server: mqtt://192.168.123.31:1883
user: xxxxxx
password: xxxxxxx
base_topic: zigbee2mqtt2
serial:
serial:
port: tcp://192.168.123.35:6638
baudrate: 115200
adapter: ember
disable_led: false
rtscts: false
advanced:
transmit_power: 20
francisp
(Francis)
April 10, 2025, 5:02pm
6
Why is socat enabled? Disable it.