Connecting ds18b20 without selecting an address from the list.
Moderators: grovkillen, Stuntteam, TD-er
Connecting ds18b20 without selecting an address from the list.
Is it possible to modify the P004 plugin so that when only one sensor is connected to the gpio, the plugin does not require the selection of the sensor address from the list and would be connected automatically? Just like it is implemented in Sonoff TN.
Re: Connecting ds18b20 without selecting an address from the list.
Hmm this can be a bit tricky.
What if multiple tasks were configured and 1 sensor is failing?
What if multiple tasks were configured and 1 sensor is failing?
Re: Connecting ds18b20 without selecting an address from the list.
I'll try to formulate it differently.
If one sensor is connected to the GPIO and you do not need to select the sensor address in the "Number Output Values:Single" task, it is already only one.
If several sensors are connected to one contact, then everything works as before.
Sorry, my "knowledge" of English makes me use google translator.
If one sensor is connected to the GPIO and you do not need to select the sensor address in the "Number Output Values:Single" task, it is already only one.
If several sensors are connected to one contact, then everything works as before.
Sorry, my "knowledge" of English makes me use google translator.
Re: Connecting ds18b20 without selecting an address from the list.
Don't worry about your English. It was clear to me what you meant.
What I mean is that it might be slightly more complex than one would expect at first as it requires the plugin to check whether there are multiple instances of the same plugin active to see if seeing only 1 sensor is what is expected.
So this may become a bit more tricky than what you may think.
What I mean is that it might be slightly more complex than one would expect at first as it requires the plugin to check whether there are multiple instances of the same plugin active to see if seeing only 1 sensor is what is expected.
So this may become a bit more tricky than what you may think.
Re: Connecting ds18b20 without selecting an address from the list.
It's a pity.
I used EspEasy on 28 tobacco drying chambers and sometimes I have to change the modules, and register the old sensor in the settings. This work can be difficult for service personnel, especially at night.
Thank you for the work you and your colleagues are doing.
I used EspEasy on 28 tobacco drying chambers and sometimes I have to change the modules, and register the old sensor in the settings. This work can be difficult for service personnel, especially at night.
Thank you for the work you and your colleagues are doing.
Re: Connecting ds18b20 without selecting an address from the list.
I will look into it, but I just wanted to warn you that it might be more than a very simple 1-line code change.
However I was thinking, maybe I could add a checkbox to the plugin where the user explicitly states the task may use the "1st found" sensor.
This would remove a lot of the possible complexity and possible unexpected results.
However I was thinking, maybe I could add a checkbox to the plugin where the user explicitly states the task may use the "1st found" sensor.
This would remove a lot of the possible complexity and possible unexpected results.
Re: Connecting ds18b20 without selecting an address from the list.
That would be what need!
Re: Connecting ds18b20 without selecting an address from the list.
This is a quick attempt to implement it. https://github.com/letscontrolit/ESPEasy/pull/4300
Can you test to see if it is working? I don't have my Dallas sensors at hand right now, so it is untested.
A test build can be found here, in about 30 minutes: https://github.com/letscontrolit/ESPEas ... 3258878003
N.B. you need to be logged in to GitHub to download the Binaries zip file.
Can you test to see if it is working? I don't have my Dallas sensors at hand right now, so it is untested.
A test build can be found here, in about 30 minutes: https://github.com/letscontrolit/ESPEas ... 3258878003
N.B. you need to be logged in to GitHub to download the Binaries zip file.
Re: Connecting ds18b20 without selecting an address from the list.
That's wonderful!
Now a simple electrician can change the temperature sensor!
Re: Connecting ds18b20 without selecting an address from the list.
Great!
I will merge it, so it will be included in the next build.
I will merge it, so it will be included in the next build.
Who is online
Users browsing this forum: Bing [Bot] and 0 guests