i cant get Zigbee2MQTT to run
my adapter is on port ttyAMA0, i’m a cheapskate and will if at all possible reuse the raspbee board
data_path: /config/zigbee2mqtt
socat:
enabled: true
master: pty,raw,echo=0,link=/dev/ttyAMA0,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://localhost:1883
user: homeassistant
password: xxxxxxxx
serial:
port: /dev/ttyAMA0
homeassistant: true
permit_join: true
frontend: true
zigbee_herdsman_debug: true
advanced:
network_key: GENERATE
does it look total bollocks or? i keep getting the bad gateway when i try to open the ui
a bit from the log
[10:37:30] INFO: Preparing to start...
[10:37:32] INFO: Socat enabled
[10:37:33] INFO: Starting socat
Socat startup parameters:
Options: -d -d
Master: pty,raw,echo=0,link=/dev/ttyAMA0,mode=777
Slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
[10:37:34] INFO: Starting socat process ...
2023/03/02 10:37:34 socat[53] N PTY is /dev/pts/0
2023/03/02 10:37:34 socat[53] E unlink("/dev/ttyAMA0"): Read-only file system
2023/03/02 10:37:34 socat[53] N exit(1)
[10:37:35] INFO: Zigbee Herdsman debug logging enabled
[10:37:40] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2023-03-02 10:37:50: Can't load state from file /config/zigbee2mqtt/state.json (doesn't exist)
Zigbee2MQTT:info 2023-03-02 10:37:50: Logging to console and directory: '/config/zigbee2mqtt/log/2023-03-02.10-37-50' filename: log.txt
Zigbee2MQTT:debug 2023-03-02 10:37:50: Removing old log directory '/config/zigbee2mqtt/log/2023-03-02.10-30-21'
Zigbee2MQTT:info 2023-03-02 10:37:50: Starting Zigbee2MQTT version 1.30.2 (commit #unknown)
Zigbee2MQTT:info 2023-03-02 10:37:50: Starting zigbee-herdsman (0.14.96)
Zigbee2MQTT:debug 2023-03-02 10:37:50: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyAMA0"}}'
2023-03-02T09:37:51.640Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2023-03-02T09:37:51.647Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/ttyAMA0"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2023-03-02T09:37:51.650Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with {"path":"/dev/ttyAMA0","baudRate":115200,"rtscts":false,"autoOpen":false}
2023-03-02T09:37:51.678Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2023-03-02T09:37:51.684Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-02T09:37:51.689Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2023-03-02T09:37:51.953Z zigbee-herdsman:adapter:zStack:znp:log Writing CC2530/CC2531 skip bootloader payload
2023-03-02T09:37:51.956Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2023-03-02T09:37:52.961Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-02T09:37:52.966Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2023-03-02T09:37:53.219Z zigbee-herdsman:adapter:zStack:znp:log Skip bootloader for CC2652/CC1352
2023-03-02T09:37:53.685Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-02T09:37:53.687Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2023-03-02T09:37:59.692Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-02T09:37:59.694Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2023-03-02T09:38:05.702Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-02T09:38:05.706Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
Zigbee2MQTT:error 2023-03-02 10:38:11: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-03-02 10:38:11: Failed to start zigbee
Zigbee2MQTT:error 2023-03-02 10:38:11: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-03-02 10:38:11: Exiting...
Zigbee2MQTT:error 2023-03-02 10:38:12: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)