Hive Door Sensors

Hi all

I’m trying to get an automation created that uses a door sensor. HASS shows the activity as detected and clear or open and close rather than on or off. Does anyone know what to put in the to/from fields for this type of device?

Cheers
Andy