Page 1 of 1

MQTT Energy info wrong on dashboard

Posted: Thursday 14 November 2024 14:35
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

Re: MQTT Energy info wrong on dashboard

Posted: Thursday 14 November 2024 19:22
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.

Re: MQTT Energy info wrong on dashboard

Posted: Monday 18 November 2024 20:07
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?

Re: MQTT Energy info wrong on dashboard

Posted: Monday 18 November 2024 20:11
by waltervl
You better check what data is coming from that device. Perhaps there is a rolling total counter available?

Re: MQTT Energy info wrong on dashboard

Posted: Monday 18 November 2024 20:27
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.