How to know if a device working properly

Hello everybody.
i use this with home assistant and all work fine but sometimes my device go offline and for example an movement sensor show me no presence detected but is because is not connected to the coordinator. With home assistant i see no presence detection but i expect a not available error.
Then i want to know there is something to show me if a device is properly connected. The same thing with the door/windows sensor. He tell me that the door is closed but the door is open. When he return online everything is ok.