本帖最后由 z724425910 于 2024-9-17 16:32 编辑
当我把传感器部分上报的name字段改成中后,在HA上要不不显示,要不错位,又遇到过得大佬么?
sensor:
- platform: pzemac
id: pzemac_1
power:
name: "当前功率"
id: power_daily
# filters:
# - multiply: 2
current:
name: "电流"
voltage:
name: "电压"
energy:
name: "累计电量"
filters:
- multiply: 0.001
unit_of_measurement: kWh
device_class: "energy"
state_class: "total_increasing"
accuracy_decimals: 3
frequency:
name: "频率"
power_factor:
name: "功率因子"
update_interval: 5s
- platform: total_daily_energy
name: "今日电量*"
power_id: power_daily
id: energy_daily
unit_of_measurement: kWh
accuracy_decimals: 1
icon: mdi:counter
filters:
- multiply: 0.001
在LOGS上面看到能上报:
但是在HA,电压显示的是频率,电流没显示、当前功率显示不对,今日电量显示也错误,功率因子没有。
|