#All Aqara P1 sensors down, door sensor still OK, all zigbee (ZHA)

1 messages ยท Page 1 of 1 (latest)

lusty flume
#

Hello,
I am pretty new to HA. At the end of January I added 3 Aqara P1 sensors and an Aqara door sensor with zigbee (ZHA) using a SONOFF dongle, but I haven't had them doing anything at all this entire time, until a few days ago when I added some scripts or automations to turn on some lights. Basic stuff, really.

Anyways, this morning all 3 motion sensors were down, and last night they were acting up pretty hard as well. The door sensor still works without issue, so I don't believe this is a problem with the dongle. I have tried to re pair, remove/reinsert batteries, and restart the machine running HA a few times and nothing seems to be changing. I also rebuilt the docker container as a last resort (ghcr.io/home-assistant/home-assistant:stable).
Does anyone have any idea what happened and how to fix it? I thought at first it might be an update or something but there really isn't any evidence that an update happened.

Btw sorry if this is the wrong tag/place, I wasn't exactly sure

stuck tendon
#

Hi there, do you have any logs to share?

lusty flume
#

Also thanks for your help

lusty flume
#

Oh btw, these sensors are still down. For all 3 sensors to go down around the same time (within a few hours) typically would imply some hardware issue, but again that door sensor still works. All 3 were started for the first time at the same time, so maybe there was something buggy with the firmware mine came with? I really dont know at this point

stuck tendon
#

It could be that sonoff dongle is incompatible with p1 seneors but compatible with the door sensor due to different versions of zigbee protocol? Have you checked the compatibility of dongle before?
Also, i would recommend using z2m addon or docker to handle zigbee stuff.
Sorry, haven't checked the logs.

lusty flume
#

These sensors were running for about 2 months or so without issue. I didn't have any integrations with them but I did occasionally check on them.

#

It could be a coincidence that I started adding integrations a few days ago and they went off-line last night (and still are offline)

lusty flume
#

I wiped everything trying to just start over, opened the sonoff dongle to push the reset button too, trying to add the integration and this happens I love home assistant so much

stuck tendon
#

Are those sensors working though? How did you find that they were working before but after adding automations they stopped working? Do you have any other bridge/app?

lusty flume
#

I cant add the dongle to HA so i have no way to check on any sensors, the sensors never came back up after they went down, no other bridge but im ordering another which seems crazy

#

Before adding automations they were working pretty much fine, occasionally one would go down for a bit but nothing like this. I really doubt the automations have anything to do with this, just feels like a bad coincidence

#

I can try the new dongle for sure, maybe something really weird happened with my existing one, but it feels like something about my setup is just cursed at this point. Maybe I missed a step on the clear, is there some trick/reset I need to know about for this? beyond taking it apart and hitting the reset button while powered?

stuck tendon
#

I skimmed through the logs, and my understanding is devices are unavailable at some point. May i suggest trying Z2M docker with your existing sonoff bridge? It won't require HA.

#

I personally use z2m and couple of aqara sensors (contact sensors, not p1/2 though) and had no issues. You need to figure out whether the issue is w sensors or bridge or the software

lusty flume
#

I'm being too harsh on home assistant honestly. Just frustrated. I might try that later but I don't know maybe for now I'll just wait for the new one to get delivered. It's just too bad because it was working perfectly right until I actually started using it

stuck tendon
#

I didn't get the last part (sorry!), it was working perfectly right. How did you know it was working? Because of LEDs or some other app/bridge. How did you test it before using ZHA in HA?

lusty flume
#

Oh gotcha. Before I did any automations I knew it was working because the dashboard showed the status of the sensors and showed an accurate history for all of the sensors.

#

I paired all of the sensors like two months ago but then just didn't do anything at all with them

#

And then I set up my automations and they actually did work for about a day with the automation and then all of the motion sensors just went down.

stuck tendon
#

Got it. So you're saying, automations might have impacted the sensors. Could you share your automation yaml, if you still have it? It's weird a software could impact the sensors. Resetting the sensors didn't work?

#

It could be that OTA update might have impacted the sensors or refused to work with a dongle other than aqara hub

lusty flume
#

lol I just opened this up too. I've wiped the automation yaml, i actually dont beleive this caused this issue (not even sure how this would be possible).

Heres the timeline: End of January (I think) I set up my 3 motion sensors and door sensor, and they all continue to work based on dashboard info and history

April 14 or so: I add the tuya integration (not a local integration, just the built in one or whatever, the one that still seems to go through tuya servers) and my tuya wifi bulbs (which have been running for years through the tuya app). I also at this point add some very simple integrations: If i open the front door, turn on the lights. If the front door is closed and after 10 minutes the motion sensor doesnt detect presence, turn off the lights.

April 16 night (like midnight or maybe even shortly after): 2/3 sensors are showing stale data (no updates, but still showing as avaiable). One last one still shows working data. Within an hour, I see that third sensor also drop off and show bad data

April 17 morning: all 3 sensors show unavailable, 6 hours or so after they stopped updating (which makes sense that was the "consider unavailable" timeout set in HA.

#

I think the OTA theory is very likely, this feels like it has to be some software change or bug with them all going down at the same time. The only reason i don't think its OTA is becasue this is such a common setup (SONOFF dongle, P1 sensors) that somebody else out there should be also saying the same thing, surely

#

Heres a new log file btw, context for this one: Its after the new HA instance (old instance is wiped out completely). Its when I try to just add the SONOFF dongle. I have reset the dongle (maybe I did it wrong though idk).

I know it says there is too much interference at the bottom of the exception, and maybe this is possible, but it doesnt look like what is happening to me. Nothing fundamentally about my setup has changed. But just to be sure, I did disable 2.4 GHz wifi before trying one of these times with the same error happening.

lusty flume
#

OK wow now I dont know what to think. I tried again and it moved on to the next step. So maybe it really was interference and my setup was just on the edge of the cliff the whole time. I havent finished setup or adding sensors yet so i will do that then update

stuck tendon
#

Have you tried connecting your dongle to usb2 port? With extension wire?

lusty flume
#

No but if the sensors all connect today and I ever have a problem with it again i will absoultely try that first. Wow. Im shocked becasue I tried the re pairing literally inches from this dongle many times

stuck tendon
#

I would think if you turn off 2.4ghz wifi, then some other devices which rely on 2.4ghz wifi connection will starting to act-up

lusty flume
#

And before that it was working like 30 feet away wow. Will try the sensors and let you know

#

Its working. This is insane to me lol, I tried a few USB ports (some of which were 2.0) but i guess it so close to the edge that some on one side of the motherboard work and the other side dont

stuck tendon
#

I would recommend using usb2 w extension cord and using z2m instead of zha. But, hey, if it works, don't touch it ๐Ÿ˜†

lusty flume
#

Is this wireless interference potientially caused by the USB3 or is this some other intereference (inducted power interference through USB 3 communication or something?) Like basically is this just the nature of radio or is it something that might be fixable through better hardware on SONOFF's side?

#

Anyways thank you so much for your help! Maybe I should open an issue with homeassistant about the blank error message