把这些复制进去
修改自己需要的资料
esphome:
name: ufo-r1
friendly_name: ufo-r1
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
services:
- service: send_raw_command
variables:
command: int[]
then:
- remote_transmitter.transmit_raw:
code: !lambda 'return command;'
carrier_frequency: 38kHz
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Ufo-R1 Fallback Hotspot"
password: "12344567890"
web_server:
port: 80
captive_portal:
remote_receiver:
pin:
number: GPIO5
inverted: true
dump:
- raw
- nec
remote_transmitter:
pin: GPIO14
carrier_duty_percent: 50%
|