Page 1 of 1

wrong Data in Energy Sensors from Tasmota Devices

Posted: Tuesday 14 February 2023 16:13
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 1175 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 1175 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.

Re: wrong Data in Energy Sensors from Tasmota Devices

Posted: Sunday 26 February 2023 12:55
by mastadook
No one with any Idea?

Re: wrong Data in Energy Sensors from Tasmota Devices

Posted: Tuesday 30 May 2023 3:56
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.

Re: wrong Data in Energy Sensors from Tasmota Devices

Posted: Tuesday 30 May 2023 9:36
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

Re: wrong Data in Energy Sensors from Tasmota Devices

Posted: Wednesday 31 May 2023 7:09
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)

Re: wrong Data in Energy Sensors from Tasmota Devices

Posted: Wednesday 31 May 2023 8:58
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

Re: wrong Data in Energy Sensors from Tasmota Devices

Posted: Friday 02 June 2023 4:42
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 949 times