主要还是靠node red 拆分的数据,hass里就配置一些topic 传感器
- platform: mqtt #电压2
name: "home_voltageb"
state_topic: "a/sensor/home_voltage2/home/state"
unit_of_measurement: V
- platform: mqtt #电流
name: "home_electricb"
state_topic: "a/sensor/home_electric2/home/state"
unit_of_measurement: A
- platform: mqtt #视在功率
name: "home_kwb"
state_topic: "a/sensor/home_kw2/home/state"
unit_of_measurement: W
- platform: mqtt #当日电量
name: "home_kwh_todayb"
state_topic: "a/sensor/home_kwh_today2/home/state"
unit_of_measurement: kW·h
- platform: mqtt #昨日电量
name: "home_kwhb"
state_topic: "a/sensor/home_kwh2/home/state"
unit_of_measurement: kW·h
- platform: mqtt #上二日电量
name: "home_twokwhb"
state_topic: "a/sensor/home_twokwh2/home/state"
unit_of_measurement: kW·h
- platform: mqtt #上三日电量
name: "home_threekwhb"
state_topic: "a/sensor/home_threekwh2/home/state"
unit_of_measurement: kW·h
- platform: mqtt #功率因素
name: "home_cosb"
state_topic: "a/sensor/home_cos2/home/state"
unit_of_measurement: Q
- platform: mqtt #最大需量
name: "home_maxb"
state_topic: "a/sensor/home_max2/home/state"
unit_of_measurement: kW
- platform: mqtt #最大需量发生时间
name: "home_maxtimeb"
state_topic: "a/sensor/home_maxtime2/home/state"
- platform: mqtt #本月电量
name: "home_monthb"
state_topic: "a/sensor/home_month2/home/state"
unit_of_measurement: kW·h
|