各位,帮看一下,目前问题:1、1306无法显示中文; 2、继电器接在D7(GPIO13)口无法控制,刚学esphome,大神别见怪。
esphome:
name: nodencu-lcd-small
platform: ESP8266
board: nodemcuv2
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: ""
wifi:
ssid: "XXXXXX"
password: "XXXXXXX"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Nodencu-Lcd-Small"
password: "12345678"
captive_portal:
web_server:
port: 80
switch:
- platform: gpio
name: "switch1"
pin:
number: GPIO13
inverted: true
sensor:
- platform: dht
pin: GPIO0
temperature:
name: "Living Room Temperature"
id: temp
humidity:
name: "Living Room Humidity"
id: hum
update_interval: 60s
model: DHT22
- platform: homeassistant
id: weth
entity_id: weather.ban_gong_shi
internal: true
font:
- file: "fonts/msyh.ttf"
id: my_font
size: 32
i2c:
sda: 5
scl: 4
display:
- platform: ssd1306_i2c
model: "SSD1306 128x32"
reset_pin: GPIO16
address: 0x3C
lambda: |-
it.print(0, 10, id(my_font), "你好");
|