Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1-wire sensors partly stopped working after update to 2023.2 #5778

Closed
Ulflindberg opened this issue Aug 8, 2023 · 19 comments
Closed

1-wire sensors partly stopped working after update to 2023.2 #5778

Ulflindberg opened this issue Aug 8, 2023 · 19 comments

Comments

@Ulflindberg
Copy link

Ulflindberg commented Aug 8, 2023

I upgraded to 2023.2 today and after that some of my 1-wire sensors does not update. I run this on a Raspberry Pi 3, OWFS.

I have three 1-wire devices that can display:

  1. Temp
  2. Humidity
  3. Temp and Humidity
    all Three sensors continue to update Humidity (2) but not 1. Temp or 3. Temp and Humidity
    In the log I can see several error messages like "Error: RxQueue: cannot retrieve hardware with id: 2"
    I also have a 1-wire device with only temp sensor and that still works fins in Domoticz.

I can use CAT command and see that the sensors updates in OWFS (/mnt/1-wire)

@gizmocuz
Copy link
Contributor

gizmocuz commented Aug 9, 2023

As far as I know there have been made no changes to 1-Wire
Your hardware has IDX 2?

I suspect when you have a sensor that is Temp+Hum that you will get a combined Temp+Hum sensor
Did you try enabled 'Accept new hardware devices' in the settings?

@Ulflindberg
Copy link
Author

Ulflindberg commented Aug 9, 2023 via email

@gizmocuz
Copy link
Contributor

gizmocuz commented Aug 9, 2023

The one that should keep updating should be the temp+humidity ...
(I think as I don't have 1-Wire)

Are you able to debug the code?

@Ulflindberg
Copy link
Author

Ulflindberg commented Aug 9, 2023 via email

@kiddigital
Copy link
Contributor

kiddigital commented Aug 9, 2023

I have never done that. Is there a guide how to do it?

Yes, here and here.

But first, try running domoticz with some debugflags enabled. Start domoticz (and/or adjust the startup script) with additional flags -debuglevel hardware,sql which will provide additional information on what is going on.

There are more debugflags you could try to see if it brings even more info. (run domoticz -h to see all startup flags and options)

PS: Better not reply to e-mail messages from GitHub

@Ulflindberg
Copy link
Author

I have tried to activate debug and created a log. I also deactivated all other "hardware" (e g Zwave, P1 smartmeter, Heos, RFXcom etc). I hope this can help to find what is wrong.
Debug_log.txt

@kiddigital
Copy link
Contributor

@Ulflindberg , ok that looks interesting.

What did you make of it? Already tried 'allow new hardware' I assume?

Looks like you are getting the measurements right?

@Ulflindberg
Copy link
Author

As you see at 21:44 many devices is found . For example the "26.5F1892010000" which is a combined temp and humidity sensor. It is in Domoticz GUI but has not been correct updated since the upgrade. The sensor can show

  1. Temperature
  2. Humidity
  3. Temperature and Humidity
    I can add screenshots from the GUI but I am travelling until Saturday.
    It keeps update Humidity but the two other alternatives does not update. I cannot find any log that it tries to read it.

2023-08-10 21:44:12.993  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/10.67C6697351FF
2023-08-10 21:44:12.993  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/05.4AEC29CDBAAB
2023-08-10 21:44:12.993  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/28.22047C060000
2023-08-10 21:44:12.993  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/28.51687A060000
2023-08-10 21:44:12.993  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/28.D9B87C060000
2023-08-10 21:44:12.993  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/28.BDA47A060000
2023-08-10 21:44:12.994  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/26.161F92010000
2023-08-10 21:44:12.994  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/26.ED1292010000
2023-08-10 21:44:12.994  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/26.5F1892010000
2023-08-10 21:44:12.994  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/81.DF6234000000
2023-08-10 21:44:12.995  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/28.22047C060000
2023-08-10 21:44:12.995  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/28.51687A060000
2023-08-10 21:44:12.995  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/28.D9B87C060000
2023-08-10 21:44:12.996  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/28.BDA47A060000
2023-08-10 21:44:12.996  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/26.161F92010000
2023-08-10 21:44:12.996  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/26.ED1292010000
2023-08-10 21:44:12.996  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/26.5F1892010000
2023-08-10 21:44:12.996  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/81.DF6234000000
2023-08-10 21:44:12.996  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/10.67C6697351FF
2023-08-10 21:44:12.996  Debug: 1wire: 1Wire (OWFS): Add device /mnt/1wire/05.4AEC29CDBAAB

Later I find that it is reading temperature from 26.5F1892010000:
2023-08-10 21:44:18.332  Debug: 1wire: 1Wire (OWFS): Get Temperature from /mnt/1wire/26.5F1892010000 = 16.9375
2023-08-10 21:44:18.334  Debug: SQLH UpdateValueInt Temperature HwID:2  DevID:52505 Type:80  sType:5 nValue:0 sValue:16.9 
2023-08-10 21:44:18.334  subtype       = TEMP5 - LaCrosse TX2, TX3, TX4, TX17
Sequence nbr  = 0
ID            = 52505
Temperature   = 16.9 C
Signal level  = 12
Battery       = OK

And the Humidity
2023-08-10 21:44:18.465  Debug: 1wire: 1Wire (OWFS): Get Humidity from /mnt/1wire/26.5F1892010000 = 60.706
2023-08-10 21:44:18.467  Debug: SQLH UpdateValueInt Humidity grunden norr HwID:2  DevID:24344 Type:81  sType:1 nValue:61 sValue:3 
2023-08-10 21:44:18.471  subtype       = HUM1 - LaCrosse TX3
Sequence nbr  = 0
ID            = 24344
Humidity      = 61 %
Status        = Wet
Signal level  = 12
Battery       = OK
2023-08-10 21:44:18.471  1wire: Humidity (Humidity grunden norr)

The Humidity updates in the GUI but not the Temperature. I did delete that device in the GUI and it will not come back when I open up for "accept new sensors". And the combined result with Temp and Humidity remains not updated.

I will try to analyse more from the logfile but I am confused that in OWFS (1-wire File System) the sensor is called 26.5F1892010000 and when it was added to Domoticz it got a common "ID" 5F18 and for 5F18 there was 3 devices(Idx).
Idx = 26 unit = 2 which was the combined Temp + Humidity that stopped working
Idx = 60 Unit =1 which is the Humidity that still works
The third was the one I deleted so I do not know IDX and Unit for that.

If any of this gives you any ideas or if you would like me add more let me know.

@waltervl
Copy link
Collaborator

waltervl commented Oct 5, 2023

Still an issue?

@Ulflindberg
Copy link
Author

Still an issue?

Yes, I have made a fresh installation only with the 1 wire hardware and still the same issue. Also in another installation where I only have one 1wire temperature sensor the update made the 1 wire sensor to identify itself as a new sensor with another ID.

I have no clue what to do more. I have been thinking of setting up an new pi with an older Domoticz version to see if it will solve the issue but I have no more Pi and also unsure how to install an old version.

@gizmocuz
Copy link
Contributor

gizmocuz commented Oct 6, 2023

Could you tell me the hardware name/type you are using? I could order a sensor and debug
Because to get this solved, someone actually has to debug the issue
Switching to a previous version might help you, but does not solve anything

@Ulflindberg
Copy link
Author

Could you tell me the hardware name/type you are using? I could order a sensor and debug Because to get this solved, someone actually has to debug the issue Switching to a previous version might help you, but does not solve anything

My hardware:
Raspberry PI
Adapter USB 1wire (DS9490R)
1-wire sensors for humidity and temperature (Dallas DS18B20+) The sensors is mounted in a plastic box by m.nu but are no longer to be found in their webshop so I cannot specify the humidity sensor.

@gizmocuz
Copy link
Contributor

gizmocuz commented Oct 6, 2023

Thank you for the information.

The Dallas DS18B20+ is a temperature only sensor?

Is it maybe possible to provide a aliexpress link?

@Ulflindberg
Copy link
Author

I have not found a aliexpresslink but hopefully I will have some spar sensors delivered from a friend that I can send. I will get back to you soon

@anthropo
Copy link

anthropo commented Nov 4, 2023

Uploading domoticz.txt…

Capture
Same here till the 2023.2 i have lost temperature sensors, and new ones have been create with weird ID (i mean i dont't see them in the /mnt/1wire list) and the old ones are not read anymore.

I think there is a bug in the DS18B20

ll -d /mnt/1wire/28.*
drwxrwxrwx 1 root root 4096  4 nov.  12:02 /mnt/1wire/28.057F35050000
drwxrwxrwx 1 root root 4096  4 nov.  12:02 /mnt/1wire/28.330936050000
drwxrwxrwx 1 root root 4096  4 nov.  12:02 /mnt/1wire/28.BC9A35050000

Package: owfs
Version: 3.2p4+dfsg1-4.1

2023-11-04 11:41:14.786  [7f9993ef40] Status: PluginSystem: 1 plugins started.
2023-11-04 11:41:14.937  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//28.BC9A35050000
2023-11-04 11:41:14.937  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//28.057F35050000
2023-11-04 11:41:14.937  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//28.330936050000
2023-11-04 11:41:14.937  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.E40DB9000000
2023-11-04 11:41:14.937  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.12EDA0000000
2023-11-04 11:41:14.937  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.F2B8B9000000
2023-11-04 11:41:14.937  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.F20DB9000000
2023-11-04 11:41:14.938  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.2EEBA0000000
2023-11-04 11:41:14.938  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.53EBA0000000
2023-11-04 11:41:14.938  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//29.97F10D000000
2023-11-04 11:41:14.939  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//28.BC9A35050000
2023-11-04 11:41:14.939  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//28.057F35050000
2023-11-04 11:41:14.939  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//28.330936050000
2023-11-04 11:41:14.939  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.E40DB9000000
2023-11-04 11:41:14.939  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.12EDA0000000
2023-11-04 11:41:14.939  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.F2B8B9000000
2023-11-04 11:41:14.939  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.F20DB9000000
2023-11-04 11:41:14.939  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.2EEBA0000000
2023-11-04 11:41:14.939  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//12.53EBA0000000
2023-11-04 11:41:14.940  [7f777eef40] Debug: One Wire: 1Wire (OWFS): Add device /mnt/1wire//29.97F10D000000

2023-11-04 11:48:02.611  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Get Temperature from /mnt/1wire//28.BC9A35050000 = 13.3125
2023-11-04 11:48:02.612  [7f95b82f40] Debug: SQLH UpdateValueInt Temperature HwID:6  DevID:35231 Type:80  sType:5 nValue:0 sValue:13.3
2023-11-04 11:48:02.613  [7f95b82f40] subtype       = TEMP5 - LaCrosse TX2, TX3, TX4, TX17
Sequence nbr  = 0
ID            = 35231
Temperature   = 13.3 C
Signal level  = 12
Battery       = OK
2023-11-04 11:48:02.613  [7f95b82f40] One Wire: Temp (Temperature)

2023-11-04 12:08:14.063  [7f7fffef40] Debug: One Wire: 1Wire (OWFS): Get Temperature from /mnt/1wire//28.BC9A35050000 = 13.3125
2023-11-04 12:08:14.065  [7f95b82f40] Debug: SQLH UpdateValueInt Temperature HwID:6  DevID:35231 Type:80  sType:5 nValue:0 sValue:13.3
2023-11-04 12:08:14.065  [7f95b82f40] subtype       = TEMP5 - LaCrosse TX2, TX3, TX4, TX17
Sequence nbr  = 0
ID            = 35231
Temperature   = 13.3 C
Signal level  = 12
Battery       = OK
2023-11-04 12:08:14.066  [7f95b82f40] One Wire: Temp (Temperature)
2023-11-04 13:14:56.818  Debug: One Wire: 1Wire (OWFS): Get Temperature from /mnt/1wire//28.057F35050000 = 13.3125
2023-11-04 13:14:56.818  Debug: Query:SELECT AddjValue,AddjMulti FROM DeviceStatus WHERE (HardwareID=6 AND DeviceID='12410' AND Unit=122 AND Type=80 AND SubType=5)
2023-11-04 13:14:56.818  Debug: Query:SELECT ID, Name, Used, SwitchType, nValue, sValue, LastUpdate, Options FROM DeviceStatus WHERE (HardwareID=6 AND DeviceID='12410' AND Unit=122 AND Type=80 AND SubType=5)
2023-11-04 13:14:56.819  Debug: Query:UPDATE DeviceStatus SET SignalLevel=12, BatteryLevel=100, nValue=0, sValue='13.3', LastUpdate='2023-11-04 13:14:56' WHERE (ID = 162)
2023-11-04 13:14:56.819  Debug: Query:SELECT nValue,sValue FROM DeviceStatus WHERE (HardwareID=6 AND DeviceID='12410' AND Unit=1 AND Type=81 AND SubType=1)

@Ulflindberg
Copy link
Author

I have not found a aliexpresslink but hopefully I will have some spar sensors delivered from a friend that I can send. I will get back to you soon

Unfortunately the spar sensors were only temp sensors and not multi sensors.
As I wrote before I have a Maxim IC 1 wire adapter USB (DS9490R) and then a 1wire network connected to that. My sensors use RJ12 contacts. I found sensors at iButtonlink.com but they have RJ45 connections. They have a multisensor with Temp and Hum https://www.ibuttonlink.com/collections/1-wire-products/products/ms-th-bk

@gizmocuz
Copy link
Contributor

Ehhmmm that 'sensor' uses two internal sensors, one for temperature (DS-2438Z) and one for humidity (HIH-4000)
A DS18B20 only has temperature.

I am closing this issue because I don't think it is correct. You can have either a temperature or humidity 1-wire sensor

You can make a dzVents script that received both temperature and humidity sensor and updates a dummy temp+hum sensor

@Ulflindberg
Copy link
Author

Ehhmmm that 'sensor' uses two internal sensors, one for temperature (DS-2438Z) and one for humidity (HIH-4000) A DS18B20 only has temperature.

I am closing this issue because I don't think it is correct. You can have either a temperature or humidity 1-wire sensor

You can make a dzVents script that received both temperature and humidity sensor and updates a dummy temp+hum sensor

The strange thing is that I have done nothing with the 1 wire network but in the old version of Domiticz the multisensors showed up as one sensor with both Temp and Humidity. I attach a screenshot from the 1wire (OWFS) where you see that it is called a multisensor and the sensor seems to be a DS2438. As you see in the screenshot it has both temp and humidity stored. In the older version of Domoticz the ID in Domoticz was ED12 and showed up as three sensors. 1. Temp 2. Hum 3 Temp and Hum. After upgrade it only has humidity but there are new IDs that do not match any id´s in the OWFS with temp figures.
Skärmavbild 2023-11-30 kl  10 14 09

@gizmocuz
Copy link
Contributor

https://www.analog.com/media/en/technical-documentation/data-sheets/ds2438.pdf

It looks like this is a temperature only IC

For now, easiest way for a fix, use dzVents as mentioned above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants