DoorBell trigger not fired

Hello,

I’m trying to turn the lights on when one rings the doorbell.
I use a sonoff RF Bridge with tasmota for this.

While testing with my light remote all worked with received data. but I can only catch the doorbell signal using raw data.
and I think this is where it fails somehow.
I have this in my configuration.yaml

sensor:
- platform: mqtt
  name: doorbell
  state_topic: "tele/tasmota_EDEBAA/RESULT"
  value_template: '{{ value_json.RfRaw.Data.split()[8] }}'

and this in my automations.yaml

- id: 'Doorbell'
  alias: DoorBell
  description: 'DoorBell'
  trigger:
    platform: state
    entity_id: sensor.doorbell
    to: '0101010101010101010110'
  action:
  - type: turn_on
    device_id: c0e2fd616e529d316d4c45ce610c673e
    entity_id: switch.lamp_eenhoek
    domain: switch
  - service: mqtt.publish
    data:
      topic: "tele/tasmota_EDEBAA/RESULT"
      payload: '{"RfRaw":{"Data":"0000"}}'

with my light swicht I could use “value_json.Received.Data”
and all works fine. but since I need to use rfraw. is seems to fail somehow. probably I use split incorrect.

Next to that the mqtt.publish doesn’t do what it is supposed to do. I needs to reset so I can use the trigger again.

Does anyone know a good solution for this?
thank you

ok,
I just found out, I faild to count to 6,

value_template: '{{ value_json["RfRaw"]["Data"].split()[6] }}'

I copied from another post without checking.
Still I have some issue resetting the state.
which means my action is only triggered once.