How to compare code in events to multiple values (rf bridge related)

Have a read of this topic:

They use Tasmota instead of ESPHome but the same strategies should apply.