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