The raw data sent by MQTT Gateway is rounded to the closest first decimal digit for electricity usage device Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
meal
Posts: 103
Joined: Monday 04 March 2019 14:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

The raw data sent by MQTT Gateway is rounded to the closest first decimal digit for electricity usage device

Post by meal »

Hello,

Context :
Version: 2024.7 (build 16178)
Build Hash: bc750e2df
Compile Date: 2024-08-07 15:43:48
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]

I am using MQTT Auto Discovery Client Gateway with LAN interface along with Z-Wave JS UI to control my ZWAVE devices configuration.
I have installed a Home Energy Meter - Gen5 ZW095 from AEONS Labs to collect the electricity usage in a usage device directly read from hardware device (Type=243, SubType=29).

Issue :
The raw data sent by MQTT Gateway is rounded to the closest first decimal digit (483 --> 500 or 524-->500).

For example the information read from MQTT Explorer is :
{
"time": 1726212707587,
"value": 12955.483,
"nodeName": "Compteur Central",
"nodeLocation": "Compteur Electrique"
}
or
{
"time": 1726212707982,
"value": 12955.524,
"nodeName": "Compteur Central",
"nodeLocation": "Compteur Electrique"
}

whereas in Domoticz I get 12955.500 kWh in the consumption device.


My question is how can I control the rounding process or even get directly the raw data from MQTT Gateway to Domoticz KWH devices.

Many thanks for your replies
BR
meal
meal
Posts: 103
Joined: Monday 04 March 2019 14:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: The raw data sent by MQTT Gateway is rounded to the closest first decimal digit for electricity usage device

Post by meal »

Hello,

The issue has been fixed.

See MQTTAutoDiscovery sensor update generates a loss of precision in the measure #6168

BR
meal
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest