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:
number: 23
inverted: True
dump: all
remote_transmitter:
pin:
number: 22
carrier_duty_percent: 50%
switch:
– platform: template
name: “TV Power”
turn_on_action:
– remote_transmitter.transmit_nec:
address: 0x00BD
command: 0x807F
repeat:
times: 10
wait_time: 50ms
turn_off_action:
– remote_transmitter.transmit_nec:
address: 0x00BD
command: 0x807F
repeat:
times: 10
wait_time: 50ms