...
The DS18B20 1-Wire digital temperature sensor from Maxim IC reports degrees C with 9 to 12-bit precision, -55C to 125C (+/-0.5C). Each sensor has a unique 64-Bit Serial number etched into it - allows for a huge number of sensors to be used on one data bus.
Wiring the DS18B20
Configuring the Sonoff
Retrieving the temperature via HTTP
http://sonoff/cm?user=<USER>&password=<PASS>&cmnd=status%2010
Ouput:
Code Block |
---|
{
StatusSNS: {
Time: "2018-06-14T07:34:49",
DS18B20: {
Temperature: 21.8
},
TempUnit: "C"
}
} |
Integrating with MQTT
The temperature information will put published to the
Integrating with Homebridge
References
Reference | URL |
---|---|
Temperature Sensor - DS18B20 | http://wiki.jmehan.com/display/KNOW/Temperature+Sensor+-+DS18B20 |
Sonoff Basic | http://wiki.jmehan.com/display/KNOW/Sonoff+Basic |
MQTT Web Client | http://www.hivemq.com/demos/websocket-client/ |