DWinchester - Can someone point me to example s...
Can someone point me to example sensor code that uses multiple dallastemperature sensors.
7 Replies
Sure, check out this repo at HatLabs: https://github.com/hatlabs/SH-ESP32-onewire-temperature/blob/96b66dcde0075a3dc117e8e2d56dbe15d235ca32/src/main.cpp#L90
This uses 2 DTSs
Unfortunately the only way to alias each one is to wire them to the same one wire bus and change the temperature of each one, then alias each one programmatically
Thankyou those are great. It will be fun getting each sensor in right position in code since they are already installed but have to upgrade fom 8266 to esp32 and version 2 code
Before you upgrade, Go to the web app and copy the serial numbers and locations of each sensor then once you do the upgrade, just paste them back in
Thanks for the response, but I am a little dense, I did not know the serial numbers are available or how to look at them or where to paste them back in. It would be great if I could specify serial numbers in the original code.
if you type the IP address of the ESP32 into a web browser you will get to the SensESP web UI Status Page, from here select 'control' and you should see all the 1-wire devices - here you can make a note of al the numbers to put them back in the right order after you update