I have a number of battery-operated Yolink sensors, which I use with the Matter integration and the Yolink local hub.
One of them is a YS7704-C door sensor, which has been offline for 12 days in the Yolink app. It shows as having 20% battery, and “Closed” with the Matter integration.
The same sensor can also be used with the Yolink cloud-based integration. It correctly shows up as being offline in that integration.
So, this door sensor device is showing offline in 2 out of 3 places
- the Yolink Android app : offline.
- the Yolink HA integration : offline
- the Matter HA integration : online
I discovered this issue this morning when I installed a new motion Yolink YS1606-UC sensor for the garage light. I stuck it on the wall, and tested that the motion-activated light automation worked properly.
A few hours later, the motion sensor fell off the garage wall, because the sticker does not adhere well to the textured wall.
Immediately before falling, the sensor went to “Motion detected” state. Once it hit the floor, its case opened, and the batteries came out, and it thus went offline nearly immediately after detecting motion.
The Matter binary occupancy sensor entity then got stuck reporting “Detected”, even though the device was without power and offline (it’s still on the garage floor). The consequence is that my garage lights remained on, as the motion-activated light automation relied on the state of that sensor, which was stale.
Currently, this motion sensor is still showing up as online in all 3 places - Yolink Android app, HA Matter integration, and HA Yolink integration. I suspect that there is some sort of timeout that Yolink uses before it will be marked as offline. I don’t know what that value is. It has only been offline for about 3 hours, so it might take a little longer.
I see several issues here to resolve.
-
obviously, I need a better mount for the motion sensor, so it doesn’t fall off again.
-
HA should be able to detect that the sensor goes offline when its batteries run out. Currently, it detects the offline state with the Yolink integration after some time, but not with the Matter integration. There is an issue either with Yolink’s own local hub bridging with Matter, or HA’s Matter integration. I will reach out to Yolink about this as well.
-
The state of the sensor in HA should be reset, rather than remain stuck to a stale value, once the device is detected as being offline. I believe this already happened correctly with the Yolink integration and the garage freezer door sensor, so there might not be anything to fix here if the second issue with offline device detection is resolved. It would only need to be tested again.
-
I’m not sure how the motion-activated light automation will behave once the second issue is fixed, if the third issue is not resolved. It may still keep the light on. Even with the Yolink integration, there is still a very long delay offline device detection - more than 3 hours. This is too long for this garage light to remain on, which is a load of 38 LED tubes, consuming 1045W.
So, I would still need an additional automation to detect that the garage light has been on for too long, and turn it off at that point. It is difficult to choose that value. At PG&E’s rate of about 50 cents per kW, leaving this 1045W load on for 24 hours unnecessarily costs me over $12. One would not stay awake for that long in the garage, but even a more realistic 8 hour duration is $4.
I probably need to have some sort of timeout for all my smart lights for similar cases, but no single LED load even comes close to 1045W. The total sum of all 218 Wiz LED bulbs in the house is probably under 2000W. And I would never turn them all on at the same time in the first place, except in case of a security/alarm situation, where I could manually turn them off. Otherwise, no single area has more than 23 LED bulbs, which would likely be under 200W. Even if the motion sensor failed in that one room, a 24-hour timeout would means it would cost waste no more than about $2.50, and an 8 hour max would be less than $1.
The proper solution would be to be able to quickly detect that the motion sensor went offline quickly, in a matter of minutes, not hours or days.
Even with the cloud-based Yolink integration, there is a long delay that’s at least 3 hours. I am going to keep the batteries out, and see how long it actually takes to be marked as offline. I will disable the motion activated light for the garage light, so it doesn’t stay on again due to the stale state.
With the HA Matter integration, the door sensor is still reporting as online 12 days after it went offline in the Yolink app, and thus I believe its state is forever stuck.

