Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lesson30- How to decode IR signal and control air conditioning and TV 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:
    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
Reply


Forum Jump:


Users browsing this thread: