Help: Xiaomi MIOT RAW

I tried to use XIAOMI GATEWAY3, but it is not reliable, lost connection every minute. So I try to use XIAOMI MIOT RAW, working good, but the motion sensor does not return ON/OFF state, it return motion detection time stamp. For example: When motion detected, the value of the sensor is 2021-09-04-12-15, I want to use the motion sensor to trigger automation, but do not know how. I want to use Event, with State_Changed, but do not know what Entity Data to set.

1 Like

Same problem here with Mi Gateway using ancient Homekit integration. Want to replace with Xiaomi_miot but no trigger is present.