07-11-2023, 10:26 PM
your RF receiver module pin define is wrong.
if using KC868-A8, the pins of RF module should be:
RF433MHz wireless receiver: 2
RF433MHz wireless sender: 15
when you config correctly, press the remote's button, you will see the RF code on LOG output window.
here is example code you can use, just need replce the "code" and "protocol" by yourself:
- platform: remote_receiver
name: "remoter1"
rc_switch_raw:
code: '001111010111001010111000'
protocol: 1
on_press:
then:
- switch.toggle: light1
filters:
- delayed_off: 200ms
if using KC868-A8, the pins of RF module should be:
RF433MHz wireless receiver: 2
RF433MHz wireless sender: 15
when you config correctly, press the remote's button, you will see the RF code on LOG output window.
here is example code you can use, just need replce the "code" and "protocol" by yourself:
- platform: remote_receiver
name: "remoter1"
rc_switch_raw:
code: '001111010111001010111000'
protocol: 1
on_press:
then:
- switch.toggle: light1
filters:
- delayed_off: 200ms