This is a way to have a binary sensor from a single code in the RF Bridge in ESPHome.
We have a binary_delay to configure the delay between on/off in the binary sensor.
some_sensor is a template(dummy) Binary sensor that gets updated by the RF Bridge when a code is received.
The action is a script, so if multiple codes are received, the timer counts againts the last one.