How to create a binary sensor from frigate using events from mqtt?

I have 2 servers running Frigate, namely Frigate-1 and Frigate-2. How can I pull MQTT topics frigate-1/events and frigate-2/events to create binary sensors via MQTT? Specifically, if a person is detected by the front home camera, set binary sensor front home to 1, otherwise set it to 0. Similarly, if a person is detected by the side home camera, set binary sensor side home to 1, otherwise set it to 0. Thank you.

1 Like

off_delay integer (optional)

For sensors that only send on state updates (like PIRs), this variable sets a delay in seconds after which the sensor’s state will be updated back to off.