Trying to get last open state of aqara door sensor : r/homeassistant

Trying to get last open state of aqara door sensor : r/homeassistant