[Help] Automation Trigger with Mosquitto broker event

I want to call an automation to restart my camera (with motion detection function) when Mosquitto broker add-on said:

1601848269: Client yi-cam_garden has exceeded timeout, disconnecting

But I don’t know what is the trigger to start an automation. Please help. Thanks !!!