wrong Data in Energy Sensors from Tasmota Devices

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

Moderator: leecollings

Post Reply
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

wrong Data in Energy Sensors from Tasmota Devices

Post by mastadook »

Hi

I´m not sure where to Post this.

I am using Domoticz since Years but Energy Sensors from my Tasmota or Shelly Divices, I havn´t take care of.
Now, since I use a small "Balkonkraftwerk" (600W Solar), I like to check what I got with this Setup.

Running the Power Montitoring Plug in Domoticz gives me this Data:
domoticzdata.jpg
domoticzdata.jpg (13.2 KiB) Viewed 997 times
You see "Heute" there is a very Strange amount of Data.

This is wrong, cause the Plug itself, howing this Data:
plugdata.jpg
plugdata.jpg (18.8 KiB) Viewed 997 times
Did anyone knows why this happens and what can be done to getting the right Data from Device?

The same happens with Shelly 3EM Devices and also with any Energy Device,
all the Time, the momentary Data is fine but the over all or today used Data is wrong.
Last edited by mastadook on Saturday 29 April 2023 8:01, edited 2 times in total.
________________________________________________________________________
global chief of permanent lightning and strike detonator
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Re: wrong Data in Energy Sensors from Tasmota Devices

Post by mastadook »

No one with any Idea?
________________________________________________________________________
global chief of permanent lightning and strike detonator
jcb2
Posts: 9
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: wrong Data in Energy Sensors from Tasmota Devices

Post by jcb2 »

Hello,
Have you found an solution ?
I have the same with Shelly EM flashed Tasmota and in Domoticz used with MQTT discovery due to two channels.

In Tasmota it is correct but in Domoticz many values are wrong.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: wrong Data in Energy Sensors from Tasmota Devices

Post by waltervl »

What is in the the MQTT state and config topics that the tasmota device sends?
To debug MQTT use MQTT explorer: https://www.domoticz.com/wiki/MQTT#Debugging_MQTT
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
jcb2
Posts: 9
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: wrong Data in Energy Sensors from Tasmota Devices

Post by jcb2 »

Hello,

Sample of MQTT message :
07:05:15.494 MQT: tele/IOT-SHELLY-EM/SENSOR = {"Time":"2023-05-31T07:05:15","ENERGY":{"TotalStartTime":"2023-05-31T04:59:57","Total":[3.035,-0.024],"Yesterday":[-21.184,34.466],"Today":[3.035,-0.024],"TodaySumImport":3.011,"TodaySumExport":0.000,"ExportActive":[-7369.173,1077.272],"Period":[8,1],"Power":[440,54],"ApparentPower":[632,326],"ReactivePower":[158,-211],"Factor":[0.70,0.16],"Frequency":50,"Voltage":235,"Current":[2.526,1.080]}}
07:06:15.466 MQT: tele/IOT-SHELLY-EM/STATE = {"Time":"2023-05-31T07:06:15","Uptime":"1T02:04:34","UptimeSec":93874,"Heap":22,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":3,"POWER":"OFF","Wifi":{"AP":2,"SSId":"WIFI_xxxxxx","BSSId":"F8:08:4F:1E:5D:81","Channel":11,"Mode":"11n","RSSI":100,"Signal":-39,"LinkCount":2,"Downtime":"0T00:04:08"}}


I have use the plugin Tasmoticz and all values are corrects. I have tested with homeassistant and I have also the correct values.
Unfortunately with the MQTT Discovery already in core Domoticz it is not an good solution for all cases. (Shelly EM for me)
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: wrong Data in Energy Sensors from Tasmota Devices

Post by waltervl »

For standard Shelly devices you can use this script to convert them into MQTT Autodiscover devices: https://github.com/enesbcs/shellyteacher4domo No need to tasmotize them.

For MQTT Autodiscover it is important also to have the Config topic as it tells Domoticz what the State topic means. So please post that too...

Edit: Also upgrade to the latest stable Domoticz version as MQTT discovery gets improved frequently. your signature states 2022.1
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
jcb2
Posts: 9
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: wrong Data in Energy Sensors from Tasmota Devices

Post by jcb2 »

Hello,
Tanks for your help !
I use Tasmota to have the calibration and others features.
Not only for Shelly but for many Sonoff, Tuya, ... , it is "harmonized" and all whitout cloud.

I use the lasted stable version. No indication about in my profil I think.

For MQTT have you many informations with this ? (sorry but I dont know this part...)
MQTT info Shelly EM.jpg
MQTT info Shelly EM.jpg (77.92 KiB) Viewed 771 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests