Hi!
I’ve got another gateway (futurehome) running z-wave and zigbee components, and I’m just started to read out some of them via MQTT.
My problem is that one of the units (Heat-it z-relay) is reporting kWh, W and A on the same topic, and that clutters my history on the sensor in HA.
This is my setup for sensor:
# VVB
- platform: mqtt
name: "Energiforbruk VVB"
state_topic: "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:meter_elec/ad:38_1"
unit_of_measurement: 'kWh'
value_template: "{{ value_json.val }}"
unique_id: "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:meter_elec/ad:38_1"
This is the history for the sensor, as you can see, it’s totally wrong, those values should only be increasing during the day:
Here is the payloads from futurehome, all 3 coming on topic: pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:meter_elec/ad:38_1:
{
"ctime" : "2021-11-19T17:06:39+0100",
"props" : {
"unit" : "kWh"
},
"serv" : "meter_elec",
"tags" : [ ],
"type" : "evt.meter.report",
"val" : 211.130004882812,
"val_t" : "float"
}
{
"ctime" : "2021-11-19T17:06:39+0100",
"props" : {
"unit" : "W"
},
"serv" : "meter_elec",
"tags" : [ ],
"type" : "evt.meter.report",
"val" : 315.0,
"val_t" : "float"
}
{
"ctime" : "2021-11-19T17:06:39+0100",
"props" : {
"unit" : "A"
},
"serv" : "meter_elec",
"tags" : [ ],
"type" : "evt.meter.report",
"val" : 1.39999997615814,
"val_t" : "float"
}