如题,我有想要用node-red推mqtt 内容到esphome并显示,yaml应该如何写,我试了几次不成功,编译出错,请各位大佬不吝赐教
esphome:
name: lcd1602
platform: ESP32
board: esp-wrover-kit
wifi:
ssid: "************"
password: "&**********"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "777777"
ota:
password: "77777"
i2c:
sda: 33
scl: 32
scan: True
mqtt:
broker: 192.168.*****
username: ******
password: **********
port: 1883
topic_prefix: lcd
id: mqtt_lcd
display:
- platform: lcd_pcf8574
dimensions: 16x2
address: 0x27
id: lcd1602
lambda: |-
it.printf("%s", id(mqtt_lcd).lcd.POWER);
|