OR functionality for Trigger Condition

To make things simple for my wife I was hoping to use a column of RM433 keys (i.e. the left 4) for switching various lights on, but turn many/all off with ANY 2 (or more) of the right-hand keys.

I’m currently using a Sonoff RM433 via a Tasmota’d RF Bridge with MQTT and simple automation triggers. It works well with a single button code, but I’m struggling with what I’d have thought was a simple task to set a conditional OR so that the trigger happens when either of two (or more) buttons is pressed and codes received.

Is it my logic, syntax, timing?
The automation below works fine without the OR condition

alias: Sonoff RM433 Bedroom Lights Off
description: ''
trigger:
  - platform: mqtt
    topic: tele/RFBridge/RESULT
condition:
  - condition: template
    value_template: '{{ trigger.payload_json[''RfReceived''][''Data''] == ''BE68E9'' }}'
  - condition: or
    conditions:
      - condition: template
        value_template: '{{ trigger.payload_json[''RfReceived''][''Data''] == ''BE68E5'' }}'
action:
  - type: turn_off
    device_id: 7194d5b91fc8165ce060ff5ea5c7e6c2
    entity_id: light.main_bedroom_lights
    domain: light
mode: single

Any help welcome

alias: Sonoff RM433 Bedroom Lights Off
description: ''
trigger:
  - platform: mqtt
    topic: tele/RFBridge/RESULT
condition:
  - condition: template
    value_template: '{{ trigger.payload_json[''RfReceived''][''Data''] in [''BE68E9'', ''BE68E5''] }}'
action:
  - type: turn_off
    device_id: 7194d5b91fc8165ce060ff5ea5c7e6c2
    entity_id: light.main_bedroom_lights
    domain: light
mode: single

Or in shorthand notation:

alias: Sonoff RM433 Bedroom Lights Off
description: ''
trigger:
  - platform: mqtt
    topic: tele/RFBridge/RESULT
condition: '{{ trigger.payload_json[''RfReceived''][''Data''] in [''BE68E9'', ''BE68E5''] }}'
action:
  - type: turn_off
    device_id: 7194d5b91fc8165ce060ff5ea5c7e6c2
    entity_id: light.main_bedroom_lights
    domain: light
mode: single

Wow, response faster than a speeding bullet!
Many thanks Taras, that works perfectly!!! :+1:.

I’m not familiar enough with the syntax so wasn’t aware of the in [x, y] function, was only looking for some sort of OR statement. Must read up more, you’ve piqued my interest in what can be done. IT’s always good to be concise, as you have shown.

Out of interest and to educate me even further, may I ask why the long version doesn’t work?

The “OR” statement was in the wrong place. This would’ve worked:

condition:
  - condition: or
    conditions:
      - condition: template
        value_template: '{{ trigger.payload_json[''RfReceived''][''Data''] == ''BE68E9'' }}'
      - condition: template
        value_template: '{{ trigger.payload_json[''RfReceived''][''Data''] == ''BE68E5'' }}'

Many thanks for your expertise and valuable teaching, it’s much appreciated.

Good to know where my logic was at fault, so thanks for that.
But I’ll stick with your more condensed and elegant solution first offered.