I am using portisch firmware and and rfraw 177
to find the code I need.
So whenever the sensor gets trigger, I can see two series raw code.
most of the time just
“RfRaw”:{“Data”:“AA B1 02 05A0 0261 01AE 0672 381BB9 55”}}
but sometimes I get two
"RfRaw":{"Data":"AA B1 02 05A0 0261 01AE 0672 381BB9 55"}}
"RfRaw":{"Data":"AA B1 04 05FA 0207 09F6 223094859101010019390291010 55"}}
Do I have to create two mqtt sensors like
- platform: mqtt
name: "bell1-1"
state_topic: "tele/sonoffrf/RESULT"
value_template: '{{ value_json["RfRaw"]["Data"].split()[6] }}'
payload_on: 223094859101010019390291010
device_class: sound
expire_after: 3
- platform: mqtt
name: "bell1-2"
state_topic: "tele/sonoffrf/RESULT"
value_template: '{{ value_json["RfRaw"]["Data"].split()[7] }}'
payload_on: 381BB9
device_class: sound
expire_after: 3
or there is a better solution? Thanks