DS18B20 on Sonoff 4ch

1,567 views
Skip to first unread message

DavidVT

unread,
Feb 13, 2017, 4:34:27 PM2/13/17
to SonoffUsers
Hello,
I proved a string of DS18B20's would indeed work on the new Sonoff 4Ch unit (using EasyEsp).  It pushed temps to MQTT and then to my Node-Red Dashboard.
I really look forward to using this cost effective solution for several existing one-wire networks I have control of.

I have now loaded Tasmota to try the same process.  I have two units running Tasmota and I can access their webservers.  One unit has been modified to support connecting a one-wire network via at RJ connector.

Clearly I have a learning curve to climb with Tasmota but I am ok with that.
At this point I see routine data from MQTTInspector on my iPad but nothing that hints of temperatures.
Things like:  Online, Time, Module, WebserverMode, etc...

I have googled around and found pages like this:

My one wire network uses the RJ plug mounted in the cover of the Sonoff 4 ch unit.  
That uses IO2 on the board as it did for EasyEsp.
On the module page I have selected 4 ds18x20 in GPIO2 (and tried GPIO3 just for the sake of trying).

Currently I have two sensors connected but the full string is eight sensors.

I dug into the Code and looked for DS18xx lines there were commented out as some pages suggest but no change was noted.  I did make other changes like time zone and that change did come across.

SO,  perhaps a neubie error or what?
Can someone get me off the starting block with this configuration.
Looking for any constructive suggests.

Thank you

DavidVT

unread,
Feb 13, 2017, 5:19:55 PM2/13/17
to SonoffUsers
UPDATE:
I just tried 3.9.15  and it came up with a single DS18b20 sensor attached and the value shows on the website below the 4 toggle buttons.  
When I tried more than one (with reboots)  they all went away.

When I went back to one sensor and rebooted the single value returned on the website.
I also see a entry in MQTT inspector this time :  tele/sonoff/SENSOR   which is showing the sensor type, value and time.

Now to figure out how to get eight sensors to display as before.. ???


Sporty Morty

unread,
Feb 13, 2017, 6:14:35 PM2/13/17
to SonoffUsers
I no with older versions of tasmota you had to include the onewire library to get multiple ds18b20 sensor i do not no if that is the case now 

DavidVT

unread,
Feb 13, 2017, 7:42:58 PM2/13/17
to SonoffUsers
Thank you,
In user_config.h I tried that but was not sure if I needed to comment something else out.  No change unfortunately.

// -- Sensor code selection -----------------------
#define USE_DS18x20   


David


DavidVT

unread,
Feb 18, 2017, 3:38:52 PM2/18/17
to SonoffUsers
continued on this thread with some success:


Reply all
Reply to author
Forward
0 new messages