Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lesson31- How to decode 433MHz RF signal and control RF device by ESPHome
#1

esphome:
  name: kc868-a4
  platform: ESP32
  board: esp32dev

# Enable logging
logger:

# Enable Home Assistant API
api:

wifi:
  ssid: "KinCony"
  password: "xxxxxxxx"


captive_portal:

web_server:
  port: 80

remote_receiver:
  pin: 19
  dump:
    - rc_switch
  tolerance: 50%
  filter: 250us
  idle: 4ms
  buffer_size: 2kb

 
remote_transmitter:
  pin: 21
  # 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: '0101011111111101000000111'
          protocol: 1
          repeat:
            times: 2
            wait_time: 20ms

    turn_off_action:
      - remote_transmitter.transmit_rc_switch_raw:
          code: '0101011111111101000000111'
          protocol: 1
          repeat:
            times: 2
            wait_time: 20ms
Reply


Messages In This Thread
Lesson31- How to decode 433MHz RF signal and control RF device by ESPHome - by admin - 12-01-2021, 12:36 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)