Page 1 of 1

How can I detect a missing DS18B20

Posted: Monday 11 January 2016 12:34
by @MosWare
Hi,

I connectet some DS18B20 temperature sensors to the Raspi GPIO port and it´s working fine.
But when I disconnect the dataline, it`s not recognized by Domoticz.

Is there a possibility that Domoticz responds to a missing sensor?

Best Regards
@MosWare

Re: How can I detect a missing DS18B20

Posted: Monday 11 January 2016 18:16
by marin849
When a sensor hasn't been updated in X minutes it will we marked red in Domoticz. You can change the timeout in settings-other-timout for sensor.

Re: How can I detect a missing DS18B20

Posted: Wednesday 13 January 2016 7:18
by @MosWare
Thank you for your answer.

It is right, that the value is marked red, but the value didn´t change.

How can I set a switch (for example an alarm lamp) while
Sensor communication is lost?

Best regards
@MosWare

Re: How can I detect a missing DS18B20

Posted: Wednesday 13 January 2016 10:27
by alfred_j_kwak
Make Lua script and monitor lastupdate. There is example on wiki how to monitor garage door.

Re: How can I detect a missing DS18B20

Posted: Wednesday 13 January 2016 21:30
by @MosWare
Hmm, but on loss of communication freezes the value.
There is no difference between a freeze value an a real stable value.

I think this should be realized by Domoticz, without the need of writing a LUA script for this elementary function.
When communication lost, Domoticz could set the value to -1000 °C. So it would be very easy to implement for anyone.

Or, is there a way to request a sensor time out?

Best regards
@MosWare

Re: How can I detect a missing DS18B20

Posted: Sunday 24 January 2016 23:32
by marin849
There is no need to use false values to detect a missing sensor. That would also mess upp the temperature logs.
The lastupdate value tells you when the sensor was last updated.
So you can make a LUA-script that reacts when a sensor has not been updated for 15 minutes for example.

Also, Domoticz colors sensors in read when they have not been updated within a time that you can select in settings.

Re: How can I detect a missing DS18B20

Posted: Monday 25 January 2016 12:35
by Toulon7559
My own 'lessons learned' for a disconnected DS18B20: see http://www.domoticz.com/forum/viewtopic ... 948#p54271