DS18B20 - Naming/numbering rules

193 views
Skip to first unread message

Craig Curtin

unread,
May 1, 2022, 8:01:06 PM5/1/22
to TasmotaUsers
Guys,

Using Tasmota (11) on Sonoff TH16 - i have 7 DS18B20 attached and working well.

In Node red i am grabbing the DS18B20 number as sent over in the Sensor output and all seems well.

I was wondering what happens if a sensor dies/stops reporting so instead of 7 sensors i now have (say 5) what happens with the naming/numbering of the remaining sensors after a reboot.

I assume that the unique identifier that is transmitted with each DS18B20 is a partial serial number from the chip - or is that a calculated number ? i.e. what can i rely on to be unique on an ongoing basis to ensure i have the right temperature sensor each time ?

Craig

Philip Knowles

unread,
May 2, 2022, 2:35:57 AM5/2/22
to Craig Curtin, TasmotaUsers
The numbers in the UI renumber - so if you lost number 3 - 1 and 2 would stay the same and the rest would 'shuffle' down. The ID is the laser etched ID within the DS18B20 so remains constant and is the value that should be used from the JSON. That causes problems with parsing for some softwares.
Ideally there should be a SetOption to choose internal (Tasmota) ID or DS18B20 ID in the JSON.
I run openHAB and node-red (on a Pi to handle some remote devices RS232 based devices). I have 2 devices with multiple DS18B20s. I had random issues about 3 years ago (wiring it turns out) so I parse the outputs in node-red and 're-transmit' using the DS18B20 ID. It also warns if a device disappears (unused since I fixed the wiring issue).

Regards

Phil K




From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Craig Curtin <craig....@gmail.com>
Sent: Monday, May 2, 2022 1:01:05 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: DS18B20 - Naming/numbering rules
 
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/36ced9cb-e655-469a-a5cd-f654bdd89dd8n%40googlegroups.com.

Craig Curtin

unread,
May 2, 2022, 2:38:20 AM5/2/22
to TasmotaUsers
Excellent - thanks for the informative reply - i will continue to use NR to expose the Etched in number then and will use that for all of my decisions

regards

Craig

Reply all
Reply to author
Forward
0 new messages