temp sensor every now and then giving null value

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
pjottrr
Posts: 1
Joined: Sunday 24 April 2022 8:21
Target OS: Linux
Domoticz version:
Contact:

temp sensor every now and then giving null value

Post by pjottrr »

Hi all,

i'm a bit new to domoticz/ home automation, and mainly trying to figure some stuff out. I've started with the smart meter, some sensors and a few smart plugs.

What i use:
Domoticz on ubuntu running on an atom 330
Mosquito as mqtt broker ( on the same machine)
Tasmota on shelly s plugs and the firebeatles esp32 boards

I've figured out most of it, but i ran into a problem with a am2301 temperature / humidity sensor
Every so often the temperature reading is somehow corrupted and all values sent from the firebeatle as Mqtt result in Null values

normal message: 06:27:13.846 MQT: tele/tasmota_30F51C/SENSOR = {"Time":"2022-04-24T06:27:13","AM2301":{"Temperature":17.9,"Humidity":43.7,"DewPoint":5.3},"ESP32":{"Temperature":37.2},"TempUnit":"C"}

faulty message: 07:39:15.910 MQT: tele/tasmota_30F51C/SENSOR = {"Time":"2022-04-24T07:39:15","AM2301":{"Temperature":null,"Humidity":null,"DewPoint":null},"ESP32":{"Temperature":37.8},"TempUnit":"C"}

_______________________________________________


I've tried different pull up resistors, but that doesn't seem to make any difference, tried multiple different pins but it looks like it's a Tasmota problem that has to do with a timeout that is too short ( not 100% sure)

i could possibly fix it by changing one of the source files to have a longer timeout and then recompile Tasmota and use my own compiled version of Tasmota. However, that seems to be a lot of work, and replacing the sensor with a "decent one seems more logical.

but before i replace the sensor, i was wondering, is there a way to ignore all those null values in Domoticz?
I don't mind having not all the values but i do mind that the graph is all messed up : https://prnt.sc/BSpe_cSteMtX

So suggestions on how to get a decent graph are welcome
With kind regards,

Peter
User avatar
waltervl
Posts: 5908
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: temp sensor every now and then giving null value

Post by waltervl »

Perhaps you can do something with tasmota rules https://tasmota.github.io/docs/Rules/#rule-syntax to filter out illegal values.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest