esphome:
name: xunhuanshan
friendly_name: xunhuanshan
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: ""
ota:
password: ""
wifi:
ssid: ""
password: ""
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: ""
password: ""
captive_portal:
remote_receiver:
dump: all
pin:
number: D3
inverted: true
remote_transmitter:
pin: D2
carrier_duty_percent: 50%
# Individual switches
switch:
- platform: template
name: "xunhuanshan_on-off"
turn_on_action:
- remote_transmitter.transmit_nec:
address: 0xFF00
command: 0xBA45
- platform: template
name: "xunhuanshan_zuoyou"
turn_on_action:
- remote_transmitter.transmit_nec:
address: 0xFF00
command: 0xA15E
- platform: template
name: "xunhuanshan_shangxia"
turn_on_action:
- remote_transmitter.transmit_nec:
address: 0xFF00
command: 0xB847
- platform: template
name: "xunhuanshan_fengsu"
turn_on_action:
- remote_transmitter.transmit_nec:
address: 0xFF00
command: 0xF807
|