Status icon and status device not updated on dashboard

I have a zwave doorsensor that turns a light on. Nothing special.
When i open the door the light always goes on, so the automation works and the status of the doorsensor must be ok.
On my dashboard however the status of the icon and the status of the device is not always updated.
Sometimes it does, sometimes it doesn’t.