Xiaomi Miio integration, possible new entities

hi
I ask if there is the possibility to detect the opening of the upper lid, or the absence of the dust container in the vacuum when it removed?
I have an automation for emptying, which sends the vacuum to a defined place and waits, then once emptied I send it home by pressing the button, but I would like to automate it when dust container been replaced and closed the lid.

Also I’d like to figure out how to find the states the attributes or even the entities that the vacuum exposes but I don’t know how to.

I ask to understand how to do it, if I can have an example to recover a sensor.

thanks