I’ve noticed now and then my motion and/or door sensors get stuck in on states either telling me the door is open or my motion sensor has detected a person. The only way to clear these is by opening and closing the door or actually walking in front of my motion sensor. Sometimes this is not possible as I’m away from home. A restart to HA does not help.
Is there any way I can force HA to update the sensor or even the Xiaomi Gateway?
I have several xiaomi and aqara sensors… Some of them have this erratic behavior. I think they are defective ones. I don’t think there is a HA way to force the sensors to update. Door sensors will update when you open close, and motion I think will send update every minute to gateway, and HA will collect info from gateway for every 30 seconds.
I will be watching this thread also if someone has solution for this.
Does it happen randomly or after a HA reboot? The sensors do not publish their state periodically but only after a state change and so does the gateway if I’m not mistaken. There is no way to force an update.
I have my 4 door sensors, one motion sensor and one temp sensor setup a while now, and not had any major problems with them, Furthest one away is 15-18ft through a few walls, and it seems to update ok.
Normally when you are having problems with it reporting states, it can be a wifi network problem, might be worth checking for interferance on the band, or might be worth changing wifi channels to see if that makes a difference. I was having problems with my HUE bulbs, so moved the channels around and it seems to be better since then.
Thanks for your replies. I’ve checked everything. WiFi is on channel 1, Xiaomi Gateway is running on ZigBee channel 25, so no interference. No neighbours around me are on any channel that will interfere with my ZigBee.
I only have 8 devices connected. My gut feeling is, when the sensor sends a state change, the Gateway doesn’t receive/register it and therefore is stuck in the previous state.
I get this every now and then with the door sensors… If you go to the “States” page <> scroll down to your sensor that’s stuck and click it… Then go back up to the top of the page and change state from on to off.
I was messing around with @andrewjfreyer Presence script, and older version, and it can cause a lot of 2.4ghz interference, and low and behold, same problem, my door sensor got stuck as open. Updated to the newer script, and the interference has gone, and everything is back to normal again.
It started to happen to me also. One of my door/window sensor after working fine for more than a year started to stuck in ‘on’ state even though it should be ‘off’. Don’t know what moght be the problem. Battery seems to be fine. It is fixed to metal maybe that is the case but like I said before it was fine for a long time…