本帖最后由 jackyzrk 于 2024-9-28 21:55 编辑
淘了几个单火三路触摸开关,esp8285芯片,刷esphome后,发现只要三个开关都开了,就会自动重启。只开两个没问题。
但是用原厂固件没有这个问题。三个开关可以同时开着。很是疑惑。
后来经过调试发现,只要关闭日志输出即可正常。
esphome:
name: wall-touch-switch
friendly_name: Wall Touch Switch
esp8266:
board: esp8285
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
- platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: True
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Wall-Touch-Switch"
password: "Vttsswxqwwrsd"
captive_portal:
switch:
- platform: gpio
pin: GPIO4
name: switch_1st
- platform: gpio
pin: GPIO5
name: switch_2nd
- platform: gpio
pin: GPIO12
name: switch_3rd
binary_sensor:
- platform: gpio
pin:
number: GPIO10
inverted: True
id: tcha
- platform: gpio
pin:
number: GPIO9
inverted: True
id: tchb
- platform: gpio
pin:
number: GPIO0
inverted: True
id: tchc
light:
- platform: status_led
pin:
number: GPIO13
inverted: True
name: "White Background"
|