1 WIRE id code or 64bit code

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
gielOS
Posts: 1
Joined: Tuesday 30 September 2014 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

1 WIRE id code or 64bit code

Post by gielOS »

Hello,

I have a question:

I have Domoticz installed on my Raspberry Pi. Then I got 7x DS18B20 temperature sensors connected (1 wire). Now all the sensors already connected and I only know the 64-bit serial and the location where the sensor is mounted. However Domoticz I only see an ID number, which does not match the 64-bit serial code of the sensor.

Does anyone know how I can convert this?

Example of a 64-bit serial is: 28-000005f31786

Hopefully someone can help me.

Thank you.

regards,
Michiel
User avatar
gizmocuz
Posts: 2547
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: 1 WIRE id code or 64bit code

Post by gizmocuz »

How about adding them one by one to know which sensor is which ?
there is a logic in the numbers somewhere
Quality outlives Quantity!
Toni

Re: 1 WIRE id code or 64bit code

Post by Toni »

I also find this really difficult. Some 1-wire devices show up by HEX code (4 bytes, i.e. 8 characters), and some by a decimal number (2 bytes). For example the temperature sensors show up in decimal. The decimal code is just two of the address bytes in decimal format.

I think it would be much better if Domoticz would show the full 1-wire ID of the devices, but even if the ID's would be in HEX format instead of decimal, it would easy the setup a lot. I did this in my own private fork of Domoticz.
StratosHF
Posts: 14
Joined: Sunday 18 September 2016 18:33
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Oxford
Contact:

Re: 1 WIRE id code or 64bit code

Post by StratosHF »

Hi,

This is my first post. I installed Domoticz yesterday to see how it compared to my DIY python code that monitors my 18 1-wire sensors on my central heating with a db and cherrypy web page... and it's much better! I too struggled to work out which sensor was which until I noticed an odd pattern, the last four digits of the 1-wire ID were used in the Domoticz ID but as pairs that were switched....!???

e.g.

xx-xxxxxxxx1234 > 3412
28-00000703be3d > 3dbe

... this was true for all my sensors. I thought I'd share this information as it may save someone a little time when setting up.

Cheers,

Andy.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest