Stuck on json received data for PIR sonoff devices - RFRAW long codes?

I have the rf bridge with tasmota and portisch. So I receive the long RFRAW codes and can roll 4 times.

How on earth do I create a mqtt sensor in HA because there is no wildcard?

Obviously this does not work as its looking for the exact string. RFRAW will have rolling numbers/characters.

In nodered I just add a switch with ‘contains’ and picks out the long sequence of numbers.
Been stuck on this for months

  - platform: mqtt
    state_topic: "tele/RF_Bridge/RESULT"
    name: 'Remote 1 Button A'
    value_template: >-
     {% if value_json.RfReceived.Data == '28190908181908190818190819090819090908190819090909' %}
      {{'ON'}}
     {% elif value_json.RfReceived.Data == '481A0908181A081A08181B081B0B081B0B0A081B081A0A0A0A' %}
      {{'ON'}}
     {% elif value_json.RfReceived.Data == '381909081819081908181A081A0A081A0A0A081A081A0A0A0A' %}
      {{'ON'}}
     {% endif %}

Hi there, I have the same problem!

Did you ever solve this without involving node red?

Hello I also have the same problem.

Anyone now how to get this json data,
like this.

#Werktafel-Lamp

  • platform: mqtt
    name: Werktafel-Lamp
    state_topic: “tele/rf-bridge/RESULT”
    value_template: ‘{{value_json.RfReceived.Data}}’
    payload_on: “001115”
    payload_off: “001114”
    device_class: light
    qos: 1

instead of ,

rfraw AA B0 21 03 08 014A 03AC 2698 28181818181818181818181908190818181818190819081908 55

Thanks