Tasmota RF Doing Something

Flash the sonoff RF with Tasmota
got one of those Key Fobs

So
My RF send data

my RF_Bridge console

09:44:52 MQT: tele/RF_Bridge/RESULT = {"RfReceived":{"Sync":7940,"Low":280,"High":740,"Data":"BFFEC2","RfKey":"None"}}

so my binarysensor is

  - platform: mqtt
    state_topic: "tele/RF_Bridge/RESULT"
    name: 'Key FOB - A'
    value_template: '{{value_json.RfReceived.Data}}'
    payload_on: 'BFFEC2'
    payload_off: 'BFFEC2off'
    device_class: power
    optimistic: false
    qos: 1

as it does not have a Off command Ijust send the payload_off: ‘BFFEC2off’

in HA I see
image

created from

      - type: glance
        title: Key FOB (433mhz)
        entities:
          - entity: sensor.last_rf
            name : Last
          - entity: binary_sensor.key_fob__a
            name: A
          - entity: binary_sensor.key_fob__b
            name: B
          - entity: binary_sensor.key_fob__c
            name: C
          - entity: binary_sensor.key_fob__d
            name: D
          - entity: binary_sensor.water_alarm
            name: WATER

as it does not have a off command

this is the automation to turn it off

- id: Key FOB - A
  alias: Key FOB - A
  hide_entity: true
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: binary_sensor.key_fob__a
    from: 'off'
    to: 'on'
    for:
      seconds: 2
  action:
  - service: mqtt.publish
    data:
      topic: tele/RF_Bridge/RESULT
      payload: BFFEC2off

That the Logic set up now the fun part

I want when I press the A the garage Lights Toggle ON/OFF
so we need a other automation

- id: 'FOB A Garge Light Toggle'
  alias: FOB A Garge Light Toggle
  trigger:
  - entity_id: binary_sensor.key_fob__a
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      entity_id: light.garage_light
    service: light.toggle

that got me thinking show me the last RF command sent so in my
sensor.yaml file I have

  - platform: mqtt
    name: "Last RF"
    state_topic: "tele/RF_Bridge/RESULT"
    value_template: '{{value_json.RfReceived.Data}}'
    qos: 1

Hope this hope someone