-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Request: remove duplicated DS18x20 drivers from Tasmota. #6486
Comments
Legacy, legacy and legacy... in sonoff_post.h you'll find:
So if a user does/did not define a DS18x20 there would always be code for a single DS18B20. In those days I couldn't remove optional sensors from the template. Another issue was that when I released the non-legacy version people complained about the JSON message change between the two. To keep everyone happy there are still two drivers doing the same. I think it's time to remove them now and prepare for a thunderstorm... |
Theo, the way
It cover all the user cases and I din't pulling my hair out when you changed the driver. For me is time to remove them too and I don't see any thunderstorm incoming... |
Remove support for define USE_DS18x20_LEGACY and legacy DS18x20 driver (#6486)
Would it be possiblefor the driver to detect if only one sensor is connected and reply as such, but for more than one reply with a JSON object? Or always reply with the object, even with one sensor? And since I've been asked about this on discord, would you be able to add a SetOption which will determine what is the object key? Some users are fine with -1 -2 -3, but some users would prefer keying by the ID |
It has always been there:
|
Oh I don't use that sensor; I only analyzed the various JSON outputs from different drivers, so I may be mixing something up |
Just my consideration Jacek: |
Yes, that's a fair point. But since the webui isn't (or at least shouldn't be) the primary interface for tasmota, then is this really a problem? I mean, the font could be downsized via CSS |
And for completeness that's the difference of the Json dict: |
ideally, for single sensor for consistency sake, should be also DS18B20-1. But that's just me ;) |
That is feasible if @arendst agree I'll do a PR. |
No need to do a PR as it will change legacy single sensor support. It'll stay as it is now. |
One thunderstorm at a time? :) Well like I said, it's just me. The keys can be easily checked for presence so it's just a cosmetic change. |
Have you looked for this feature in other issues and in the wiki?
Yes, I have.
Is your feature request related to a problem? Please describe.
Tasmota has 3 different
.ino
used to managing DS18 temperature sensors:The first must be enabled on compiler with
USE_DS18x20_LEGACY
and seems is used just for OneWire lib. The second should be enabled withUSE_DS18B20
, but this option is not present onmy_user_config.h
. The latter is enabled by default onclassic, sonoff, knx, sensors, display
bins and works just fine for single sensor as for OneWire configuration.DS18x20 seems a standalone driver, not directly linked to DS18x20_LEGACY nor DS18B20 drivers.
Describe the solution you'd like
Remove the files if not needed anymore.
Describe alternatives you've considered
Leave them in place!
Additional context
Some user on Discord get confused when looking for a build necessary to manage a DS18 sensors when landing on release page (under
Available Features and Sensors
) because for single sensor seems they need a build withUSE_DS18B20
enabled that doesn't exists anymore.The text was updated successfully, but these errors were encountered: