Sonoff RF Bridge and Portisch problem

Hi all,

I have a Sonoff RF Bridge flashed with Tasmota and Portisch RF Firmware, I have it all setup and working well I can listen to the mqtt topic tele/tasmota_EE28AF/RESULT and receive JSON payloads when I press the button my cheap 433mhz fob:

{
    "Time": "2021-02-09T23:22:12",
    "RfRaw": {
        "Data": "AA B1 05 01CC 0136 0F50 0348 41D2 4818180808080808080808082B0838383B083838383B083B0B0838383B0B083838383B0838383B0B0B083838383B0838383B0B0B0B0B083B083B083B0838383B083B0B0B0B0B0B0B0B083B0B0B08 55"
    }
}

Now the payloads jump around a little but playing around with developer tools I know that a substring of [182:190] always gives me ‘3B0B0B08’, so with that in mind I created this binary sensor:

binary_sensor:
- platform: mqtt
  unique_id: Fob_A
  name: 'Fob_A'
  state_topic: 'tele/tasmota_EE28AF/RESULT'
  value_template: >-
    {% if value_json.RfRaw.Data[182.190] == '3B0B0B08' %}
      {{'ON'}}
    {% else %}
      {{states('binary_sensor.Fob_A') | upper}}
    {% endif %}
    off_delay: 3

But when I press the fob the sensor never changes from off? am I missing something really obvious here?

Thanks

Steve

typical typo shoul’d have been [182:190]…

Thanks all!