Is it best to have HA on Windows instead
No, certainly not.
Could you be having issues with the batteries in the motion sensors? You could also try setting up your zigbee network from scratch, although that is obviously annoying.
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
Is it best to have HA on Windows instead
No, certainly not.
Could you be having issues with the batteries in the motion sensors? You could also try setting up your zigbee network from scratch, although that is obviously annoying.
I was thinking that too but it doesn’t look like it’s batteries. In the past the motion sensors would die without this wired behaviour, now the batteries were like at 20%, I put fresh ones in but it didn’t help…
I’ve been running core-2021.8.6 before, now I installed the newest version on new microSD, it was annoying to when restoring a backup as I had to restore Zigbee devices separately and also the automations didn’t transfer, then the devices wouldn’t show in HA despite showing in Zigbee2MQTT…
I’ve got it all working now but the lag still remains.
I’m guessing it’s maybe the USB sniffer being old and breaking down?
I've definitely not experienced this and I use a CC2531-based network in a very large home with about 40 zigbee devices. My setup was originally deployed for Zigbee a few years ago and has been pretty reliable. A quick Googlin' indicates that the MAC access error can be caused by WiFi interference though. Have you tried changing the zigbee channel?
EDIT: Meant to include the link to the zigbee docs about the Mac access error you're seeing. https://www.zigbee2mqtt.io/guide/faq/#common-error-codes
This might be it actually, I’ve bought google Wi-Fi mesh with three access points about a month ago, two of them are running in ethernet backhaul mode but one is not, I wouldn’t be surprised if this was causing interference…
Thanks for this, I’ll look into it.
I second this. 2 updates ago I got a repair warning stating my Zigbee and Matter were using different channels. During that time I noticed delays with my devices. As soon as I put them on the same channel I noticed an immediate improvement. But I am using Skyconnect as multi-protocol so this may differ from OPs setup.
Many thanks for the suggestion, I changed the channel from 11 to 25 and it’s working perfectly again!
In my experience, almost all stability problems I've had with Home Assistant are either due to the devices (not HA or the hardware I'm running it on, individual lights and switches, etc) or dead batteries in same.
What protocols are you using for your devices? Zigbee, Zwave, Wifi, something else?
It’s not batteries as I swapped them all.
I don’t think it’s the devices I think it affects all of them, unless ikea released some buggy firmware.
It’s all Zigbee devices.
The error message is a timeout. That implies a few things:
Since you ruled out obvious stuff like batteries and updates at the device...
I would check in between - check the connectors of any network cables involved. For anything wireless, also check if there's a device priority table you can prioritize your controller in. I would also try turning off a few devices to see if there's just too much traffic on the network.
Source: That image contains a stack trace. I am fluent in stack trace WTF. Timeout means the message was sent and there was no timely no response.
I've had janky things start happening when my Pi started to run out of resources. For me it was my daemon.log on the Pi getting full of messages from HA. Once I deleted the log (there was a bunch that were saved old logs there too) my Pi worked good again and all the delays i was experiencing with my lights went away.
What I did was found a Linux command to find the biggest files on my system after working out that I had no memory, then using that list to track down the files taking up all my space.
Hope that helps
I know this is silly. But did you try restarting the server. Or updating it ?
I did, multiple times, I installed newest HA on a new microSD card, restored a backup but the lag is still there…
Maybe your SD-card is giving up? For example: https://community.home-assistant.io/t/rpi-sd-card-reliability/232115
That’s what I thought too. I’ve installed HA on a new SD card, restored the backup but the issue still remains…
Why would you want to run HA on Windows?
I’ve got a laptop running 24/7 anyway so I could just set up HA on it. That way I’d have HA on a new device, maybe it would run better than on my old RPi2 and I wouldn’t have to spend money on new RPi.
Why would you want to run HA on Windows?