Skip to content

180 Using 1‐Wire Sensors

Phil edited this page Jan 28, 2025 · 21 revisions

I did it this way (2 wires + gnd):

grafik (source)

additionally required:

  • in /boot/config.txt add the line
dtoverlay=w1-gpio,gpiopin=4

and reboot. then

  • uncomment the 1-wire lines in settings_ini (2 sections!) and
  • adopt the serial number/s.

Serial number/s can be found in /sys/bus/w1/devices/

Addresses can get choosen freely since it is only used as 'binding' for integration and identification in the poll mechanism. Do not use Optolink addresses in use with the polling items. You may also use 'addresses' >FFFF since address is an int and 1-wire does not use the VS2 protocol.

You may also use 2-wire connection (1-wire + gnd), see https://www.kompf.de/weather/pionewiremini.html

Be aware of that reading 1-w sensors takes much longer than reading an Optolink datapoint.

Clone this wiki locally