RF Switch Help

I’m looking to use the rf switch but when I detected my rf remote, I found multiple commands. Is there a way to send multiple commands using the rf switch?

This is what my payload was:

2016-12-21 20:58:11 - [INFO] rfrx: 14545943 [pulselength 157, protocol 3]
2016-12-21 20:58:11 - [INFO] rfrx: 7273200 [pulselength 156, protocol 3]
2016-12-21 20:58:11 - [INFO] rfrx: 7273188 [pulselength 156, protocol 3]
2016-12-21 20:58:12 - [INFO] rfrx: 7273200 [pulselength 156, protocol 3]
2016-12-21 20:58:12 - [INFO] rfrx: 7273204 [pulselength 156, protocol 3]
2016-12-21 20:58:12 - [INFO] rfrx: 7273204 [pulselength 156, protocol 3]
2016-12-21 20:58:12 - [INFO] rfrx: 7273200 [pulselength 156, protocol 3]
2016-12-21 20:58:12 - [INFO] rfrx: 7142132 [pulselength 155, protocol 3]
2016-12-21 20:58:24 - [INFO] rfrx: 5 [pulselength 73, protocol 3]
2016-12-21 20:58:26 - [INFO] rfrx: 6 [pulselength 213, protocol 1]
2016-12-21 20:58:26 - [INFO] rfrx: 4 [pulselength 406, protocol 5]

This is what I have mustered together:

switch:
  platform: rpi_rf
  gpio: 9
  switches:
    bedroom_light:
      protocol: 3
      pulselength: 156
      code_on: 7273204
      code_off: 7273204

Thank you for your help

hit the button multiple times, I hit mine maybe 10 times while reading the codes. See which one pops up very consistently. The other ones that are close or just other signals are just noise.

Also have you tested your RF switch with the setup you posted? If it works, there you go, you grabbed the right codes.

Are you sure the code_on and code_off are the same? Usually you have one ON and one OFF button with 2 separate code.
If you only have button on your remote, or you can turn it on and off with the same button, ignore what I just said ^^

1 Like

Totally missed that, good catch.