本帖最后由 缥缈的孤鸿 于 2019-10-28 22:37 编辑
这是啥情况啊大佬。。
esphome:
name: 'studylight'
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: '***'
password: '*****'
api:
ota:
logger:
switch:
- platform: gpio
name: 'hassmart_1ch_2'
pin: GPIO12
id: relay_1
binary_sensor:
- platform: gpio
id: button
pin:
number: GPIO0
inverted: True
mode: INPUT_PULLUP
on_press:
then:
- switch.toggle:
id: relay_1
status_led:
pin: GPIO13
|