I’m not sure what you mean by “does it work as expected”?
As I do not know what to expect. If I press 10 times on a button on the RM433 remote, this is the result:
09:18:38.543 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:18:38","RfRaw":{"Data":"AA B1 03 02E4 00FA 1D9C 28181819090819090908190908181819081909090819090909 55"}}
09:18:50.851 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:18:50","RfRaw":{"Data":"AA B1 03 02E4 00FA 1D9C 28181819090819090908190908181819081909090819090909 55"}}
09:18:53.054 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:18:53","RfRaw":{"Data":"AA B1 03 02EE 00FA 1D92 28181819090819090908190908181819081909090819090909 55"}}
09:18:55.393 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:18:55","RfRaw":{"Data":"AA B1 03 02E4 00FA 1D9C 28181819090819090908190908181819081909090819090909 55"}}
09:18:57.746 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:18:57","RfRaw":{"Data":"AA B1 03 02E4 00FA 1D9C 28181819090819090908190908181819081909090819090909 55"}}
09:19:00.138 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:19:00","RfRaw":{"Data":"AA B1 03 02DA 0104 1D9C 28181819090819090908190908181819081909090819090909 55"}}
09:19:05.189 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:19:05","RfRaw":{"Data":"AA B1 03 02DA 00FA 1D9C 28181819090819090908190908181819081909090819090909 55"}}
09:19:10.148 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:19:10","RfRaw":{"Data":"AA B1 03 02EE 00E6 1D92 28181819090819090908190908181819081909090819090909 55"}}
09:19:12.543 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:19:12","RfRaw":{"Data":"AA B1 03 02E4 00F0 1D9C 28181819090819090908190908181819081909090819090909 55"}}
09:19:17.288 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:19:17","RfRaw":{"Data":"AA B1 03 02E4 00F0 1D92 28181819090819090908190908181819081909090819090909 55"}}
If I do the same with one of my other 433MHz devices, still running the bridge in rfraw 177
mode, this is the result:
09:25:56.133 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:25:56","RfRaw":{"Data":"AA B1 05 0140 09F6 00BE 04E2 2BF2 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283838283828382838283828 55"}}
09:25:56.626 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:25:56","RfRaw":{"Data":"AA B1 05 015E 09E2 00AA 04CE 2BCA 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283838283828382838283828 55"}}
09:25:58.083 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:25:58","RfRaw":{"Data":"AA B1 05 0140 09F6 00B4 04E2 2BF2 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283828383828382838283828 55"}}
09:26:00.635 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:26:00","RfRaw":{"Data":"AA B1 05 0168 09E2 0096 04C4 2BB6 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283838283828382838283828 55"}}
09:26:01.127 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:26:01","RfRaw":{"Data":"AA B1 05 0168 09D8 00A0 04C4 2BB6 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283838283828382838283828 55"}}
09:26:04.612 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:26:04","RfRaw":{"Data":"AA B1 05 014A 0A00 00B4 04E2 2BF2 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283838283828382838283828 55"}}
09:26:05.107 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:26:05","RfRaw":{"Data":"AA B1 05 015E 09D8 0096 04C4 2BC0 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283838283828382838283828 55"}}
09:26:06.808 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:26:06","RfRaw":{"Data":"AA B1 05 014A 09F6 00BE 04D8 2BE8 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283828383828382838283828 55"}}
09:26:08.960 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:26:08","RfRaw":{"Data":"AA B1 05 015E 09E2 0096 04C4 2BB6 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283838283828382838283828 55"}}
09:26:09.453 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:26:09","RfRaw":{"Data":"AA B1 05 0168 09D8 00A0 04CE 2BC0 481828383828382838282838283828383828382838283828382838282838283838283828382838283828382838283828382838282838283838283828382838283828 55"}}
Just for comparison, if i switch back to mode rfraw 166, then the same “old” device generates these entries when switched 10 times:
09:38:26.996 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:26","RfRaw":{"Data":"AAA6050D8E06006055"}}
09:38:27.816 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:27","RfRaw":{"Data":"AAA6050D8E06006055"}}
09:38:31.101 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:31","RfRaw":{"Data":"AAA6050D8E06006055"}}
09:38:31.923 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:31","RfRaw":{"Data":"AAA6050D8E06006055"}}
09:38:35.676 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:35","RfRaw":{"Data":"AAA6050D8E06006055"}}
09:38:36.496 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:36","RfRaw":{"Data":"AAA6050D8E06006055"}}
09:38:40.503 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:40","RfRaw":{"Data":"AAA6050D8E06006055"}}
09:38:41.324 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:41","RfRaw":{"Data":"AAA6050D8E06006055"}}
09:38:45.386 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:45","RfRaw":{"Data":"AAA6050D8E06006055"}}
09:38:46.209 MQT: tele/sonoff_bridge/RESULT = {"Time":"2023-11-24T09:38:46","RfRaw":{"Data":"AAA6050D8E06006055"}}
The above is what I currently use to make the following HA entity, and it works well:
- binary_sensor:
name: 'Main Door'
state_topic: 'tele/sonoff_bridge/RESULT'
value_template: >-
{% if value_json.RfRaw.Data == 'AAA6050D8E06006055' %}
{{'ON'}}
{% else %}
{{states('binary_sensor.main_door') | upper}}
{% endif %}
device_class: door
But, as mentioned - the RM433 remote is dead silent when the bridge is set to rfraw 166
mode. According to the docs, the rfraw 177
mode is just for testing purpose as the bridge makes no attempt to qualify, or recognize any known pattern is this mode. It just reports any raw data as it sees them - including noise (which I filtered out in the above first two tables).