-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fix detection of LM75AD #3408
Fix detection of LM75AD #3408
Conversation
@arendst Thanks for always merging my stuff so quickly - much appreciated. I'm not sure who developed the ADS1115 driver but it needs to have something similar to what I did for the LM75AD as it also gets detected if an LM75AD is present and the allsensors code is used... I do not currently have one but I've got one in my shopping card from banggood on the next order from there so will look at it then but if you have one and have time perhaps check if there's a specific register that has a unique value which can verify that the i2c address is indeed used by an ADS1115. It looks like Config Register would = 0x8583 on power-up/reset so perhaps performing a 16bit read like I did in the LM75AD and comparing it to that of contents 0x8583 to confirm the validity of chip on an address. I think these kind of scenarios are going to become increasingly useful to have multiple sensor types on the same address ranges whilst Tasmota can correctly detect which device is on which address. I would make the code change but have no way of testing it at the moment. |
Something like this
|
I'm currently on the Moselradweg so can't do much Tasmota wise :-) Will be back in 8 days (long river LOL). |
Enjoy :-) 👍 |
@arendst |
Fix detection of LM75AD
Prevent false detection of LM75AD on same addresses as other devices such as the ADS1115 by polling a specific register that has a known value valid only for the LM75AD