我是用esphome,连接三个,没有遇到这样的问题。
esphome:
name: esp8266_214
platform: ESP8266
board: nodemcuv2
uart:
- id: pzem004t1
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 9600
stop_bits: 1
- id: pzem004t2
tx_pin: D1
rx_pin: D3
baud_rate: 9600
stop_bits: 1
- id: pzem004t3
tx_pin: D2
rx_pin: D4
baud_rate: 9600
stop_bits: 1
wifi:
ssid: "ddd"
password: "ddd"
manual_ip:
static_ip: 192.168.222.214
gateway: 192.168.222.1
subnet: 255.255.255.0
sensor:
- platform: dht
pin: D5
model: DHT11
temperature:
name: "214_wd"
accuracy_decimals: 1
humidity:
name: "214_sd"
accuracy_decimals: 1
update_interval: 20s
- platform: pzem004t
current:
name: "214_dl1"
voltage:
name: "214_dy1"
power:
name: "214_gl1"
update_interval: 10s
uart_id: pzem004t1
- platform: pzem004t
current:
name: "214_dl2"
voltage:
name: "214_dy2"
power:
name: "214_gl2"
update_interval: 10s
uart_id: pzem004t2
- platform: pzem004t
current:
name: "214_dl3"
voltage:
name: "214_dy3"
power:
name: "214_gl3"
update_interval: 10s
uart_id: pzem004t3
# Enable logging
#logger:
# Enable Home Assistant API
api:
ota:
|