snatch
July 22, 2021, 11:47pm
1
HAos on Pi4 with ZZH dongle
I don’t know why my z2m is causing problems. It’s working fine, then it isn’t. Restore full snapshot, from when it was working fine, but still issues.
Sometimes the GUI loads, sometimes it sits there trying to load forever. Sometimes it just says “Bad gateway”.
Logs look fine, to me at least:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing...
[00:34:13] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing...
[00:34:15] INFO: MQTT available, fetching server detail ...
[00:34:15] INFO: MQTT server settings not configured, trying to auto-discovering ...
[00:34:16] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[00:34:17] INFO: MQTT credentials not configured, trying to auto-discovering ...
[00:34:17] INFO: Configuring'addons' mqtt user
[00:34:17] INFO: Previous config file found, checking backup
[00:34:17] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[00:34:17] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[00:34:20] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
Config:
data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
base_topic: zigbee2mqtt
serial:
port: /dev/ttyUSB0
advanced:
log_level: warn
pan_id: 6754
channel: 11
network_key:
(redacted)
availability_blocklist: []
availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
port: 8099
experimental:
new_api: true
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
Can anyone suggest anything?
Have you tried stopping z2m and unplugging the stick and plug it back in?
snatch
July 23, 2021, 12:03am
3
Update, I have tried upgrading to the latest, now seeing this in the logs:
Error Publish 'set' 'state' to 'BedStripLights' failed: 'Error: Command 0x00124b001f943ad0/1 genOnOff.on({}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))'
snatch
July 23, 2021, 12:10am
4
Yes, just tried again too. It’s crazy, got into the interface once, but now not again. And half my Zigbee devices are working, half aren’t.
snatch
July 23, 2021, 7:51pm
5
Any more thoughts anyone? Lights occasionally responding after 20 seconds or so now. Z2m loading if I’m lucky. Have tried fresh images, signal strength is fine (when the map bothers to show).
So frustrating, I’d just got everything how I wanted it, and now it’s useless.
Is it a CC2531? If so, it’s might reaching it’s max capacity, Unpredictable things happen then.
snatch
July 23, 2021, 11:36pm
8
CC2652 (ZZH), could that still be an issue? What’s the capacity for these devices?
francisp
(Francis)
July 24, 2021, 3:22am
9
200 direct routes, so plenty. Is it connected by an usb extension cable ? It might be rf interference from usb3 ports.
snatch
July 24, 2021, 2:26pm
10
Yes it’s running on a short extension cable. I did try moving it from USB3 port to USB2 but that seemed to make it worse for some reason so I moved it back. Oddly, today, all the Zigbee devices are working perfectly, but the interface is still all over the place
snatch
July 24, 2021, 6:37pm
11
So now I’ve started intermittently getting ‘Bad Gateway 502’ for Node-Red as well I’ve reinstalled from a new image (trying rPi 32bit this time, because why not).
More 502 errors. Config looks fine, nothing obvious from logs.
Sometimes the z2m interface loads but minus stylesheets. Hit refresh and it times out and doesn’t load at all.
Going out of my mind here!
snatch
July 24, 2021, 6:43pm
12
Seems it’s just failing to serve files sometimes, looking in Chrome dev tools… but why?
snatch
January 28, 2022, 8:56am
14
Sadly not. Still does it once in a while, less frequently now, but if I ever have to add a new device it’s a tense moment or two!