Entity status not updating in HA (but correct in z2m)

Hello,
I have a presence sensor from IKEA (Tradfri) that usually works fine but sometimes it gets stuck to “occupied”.
The odd thing is that if I check its status in Zigbee2mqtt its occupancy entity is correctly showing “clear”, while in HA it shows as “detected”. This reflects on my automations because lights will never turn off. The only way I’ve found to make everything work again is to reboot my machine.
Any help to solve this issue would be much appreciated.


Check the status on the MQTT broker with a tool like MQTT explorer.

Should I check it when the discrepancy occurs or at any time?
What should I be looking for?
Thank you

Check it when the issue occur.
What to look for is harder to say, but it could be the retain valuebor the QoS that play in.

Thanks, I’m trying to find anything useful but I don’t…

And you are seeing the messages you would expect to see?

I really don’t know what I should expect, actually.
Also the problem didn’t show up in the last few days so I’m kind of stuck.

You should see the occiøipied and clear messages when it is working as intended and you can then use the working set to compare to the non-working one when it happens.

Ok, thanks for the heads-up. I’ll continue to investigate!