I am trying to connect a radio remote control to my HA.
I built a sniffer for it with a Wemos D1 mini, a 433 MHz receiver and esphome.
That also worked well.
Then I pressed the button for level 3 several times.
You can see the result here:
[03:34:05][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='10010100010010000101110101001'
[03:34:07][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='10010100010010000101110101001'
[03:34:08][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='10010100010010000101110101001'
[03:34:08][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='1001010001001'
[03:34:09][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='10010100010010'
[03:34:09][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='1001010001001000'
[03:34:10][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='100101000100'
[03:34:10][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='1001010001001'
[03:34:11][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='1001010001001000010111010100'
As you can see, I am presented with a wide variety of codes, but note that it was always the same key that I pressed.
So why do I get so many different codes?
This is what my ESPhome code looks like:
emote_receiver:
pin: D2
dump:
- rc_switch
tolerance: 25%
filter: 35us
idle: 3ms
buffer_size: 1kb
remote_transmitter:
pin: D3
# RF uses a 100% carrier signal
carrier_duty_percent: 100%
switch:
- platform: template
name: RF Power Button
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '10010100010010000101110101001'
protocol: 1
- remote_transmitter.transmit_rc_switch_raw:
code: '10010100010010000101110101001'
protocol: 2
- remote_transmitter.transmit_rc_switch_raw:
code: '10010100010010000101110101001'
protocol: 1
- remote_transmitter.transmit_rc_switch_raw:
code: '100101000100100001011101010010'
protocol: 1
- remote_transmitter.transmit_rc_switch_raw:
code: '10010100010010'
protocol: 1
As you can see, I then tried to send these codes, but without success.
I have tried all possible variations, but the fan does not start.
I have also worked with the specifications for tolerance, filter & Co and tried different values there.
The result is always the same, the same keystroke generates different codes.