MQTT Energy info wrong on dashboard

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
iguaan
Posts: 15
Joined: Thursday 21 May 2020 7:40
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

MQTT Energy info wrong on dashboard

Post by iguaan »

I'm receiving MQTT HA autodiscovery daily energy consumption data from device.
In "devices" tab all the readings are correct, but on dashboard it shows random numbers.
Data is updated daily at midnight.

Published data:

Code: Select all

case SensorType::POWER:
            payloadJson[F("unit_of_meas")] = F("kWh");
            payloadJson[F("icon")] = F("mdi:lightning-bolt");
            payloadJson[F("stat_cla")] = F("total");
            payloadJson[F("dev_cla")] = F("energy");
Version: 2024.7
Build Hash: b317cfab1
Compile Date: 2024-07-13 17:59:31

default plugin:
Image
Correct info:
Image

Dashboard:
Image

Original Git:
https://github.com/rbroker/ecodan-ha-local
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT Energy info wrong on dashboard

Post by waltervl »

These Domoticz devices expect a total rolling counter Kwh value so it can calculate the daily values. Domoticz does not support to only receive the total value of today. It expects the absolute total value from the start of using the device.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
iguaan
Posts: 15
Joined: Thursday 21 May 2020 7:40
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: MQTT Energy info wrong on dashboard

Post by iguaan »

Is there some way to get that IDX value from devices tab and create somehow some custom sensor to show those daily values?
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT Energy info wrong on dashboard

Post by waltervl »

You better check what data is coming from that device. Perhaps there is a rolling total counter available?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
iguaan
Posts: 15
Joined: Thursday 21 May 2020 7:40
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: MQTT Energy info wrong on dashboard

Post by iguaan »

Sadly this data isn't available, since there isn't any official documentation released about Mitsubishi CN105 serial connector.
The guys at Git managed to get the data by tapping/monitoring the serial port that is connected to Mitsubishi web app device.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests