1-Wire ds18b20
Brand | Protocol |
---|---|
1-Wire | ds18b20 |
None
"living": { "name": "Living", "temperature": { "name": "Temperature", "protocol": [ "ds18b20" ], "id": [{ "id": "0000052ba3ac" }], "temperature": 19562 } }
Setting | Default | Format | Description |
---|---|---|---|
device-decimals | 3 | number | How many decimals does the temperature information contain |
gui-show-temperature | 1 | 1 or 0 | Don't display the temperature value |
poll-interval | 5 | seconds | What should be the poll interval of the sensors |
device-temperature-offset | 0 | number | Correct temperature value |
None
Before pilight can see the sensor, you have to run the following commands:
sudo modprobe w1-gpio sudo modprobe w1-therm
To make sure this is done every reboot, edit /etc/modules
and add the following lines:
w1-gpio w1-therm
If you have enabled “Device tree support” (since Raspbian with kernel 3.18 it's the default configuration), you have to add the following line to /boot/config.txt
:
dtoverlay=w1-gpio-pullup,gpiopin=4
This will load the module w1-gpio, so you only have to add w1-therm
to your /etc/modules
.
To find the correct sensor id, you have to run the following commands:
cd /sys/bus/w1/devices ls
The result will look like:
28-0000055bd776 w1_bus_master1
Use the part after 28- as the correct id, e.g. 0000055bd776.