<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=1Wire</id>
	<title>1Wire - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=1Wire"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=1Wire&amp;action=history"/>
	<updated>2026-09-18T23:01:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=1Wire&amp;diff=17667&amp;oldid=prev</id>
		<title>Walter vl at 11:01, 30 November 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=1Wire&amp;diff=17667&amp;oldid=prev"/>
		<updated>2022-11-30T11:01:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;1-Wire&amp;#039;&amp;#039;&amp;#039; is a device communications bus system designed by Dallas Semiconductor Corp. that provides low-speed (16.3 kbit/s) data, signaling, and power over a single conductor.&lt;br /&gt;
&lt;br /&gt;
Domoticz supports 1-Wire devices directly connected to the gpio of the Raspberry Pi or Windows system with serial adapter that runs Domoticz.&lt;br /&gt;
&lt;br /&gt;
=Setup=&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
First Stop Domoticz&lt;br /&gt;
&lt;br /&gt;
Download and install [http://sourceforge.net/projects/domoticz/files/ the OneWireDomoticzServiceInstaller.msi from here]&lt;br /&gt;
&lt;br /&gt;
With a serial adapter, update the OneWireDomoticzServiceConfig.xml in the OneWireDomoticzService installation directory (usually C:\Program Files (x86)\Domoticz\OneWireDomoticzService), with this content (update adapter name and COM port with your values), and restart the service&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;OneWireDomoticzServiceConfig&amp;gt;&lt;br /&gt;
   &amp;lt;adapter name=&amp;quot;{DS9097U_DS948X}&amp;quot; port=&amp;quot;COM1&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/OneWireDomoticzServiceConfig&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Supported adapter names are&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: {DS9097E}, {DS9097U_DS948X}, {DS9490}, NetAdapter&lt;br /&gt;
&lt;br /&gt;
USB DS9490 adapter should be auto discovered, it doesn&amp;#039;t need the OneWireDomoticzServiceConfig.xml file.&lt;br /&gt;
&lt;br /&gt;
Restart Domoticz&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
There are two methods to use 1-Wire devices&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===w1-gpio/w1-therm===&lt;br /&gt;
&lt;br /&gt;
Follow this guide to connect and install 1-Wire support&amp;lt;br&amp;gt;&lt;br /&gt;
[http://www.raspberrypi-spy.co.uk/2013/03/raspberry-pi-1-wire-digital-thermometer-sensor/ How to Setup 1-Wire]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
When the above is working, do not forget to include the two modules in /etc/modules, otherwise after the next reboot it is not working anymore.&amp;lt;br&amp;gt;&lt;br /&gt;
 sudo vi /etc/modules&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Add the following two modules (on separate lines):&amp;lt;br&amp;gt;&lt;br /&gt;
 w1-gpio&amp;lt;br&amp;gt;&lt;br /&gt;
 w1-therm&amp;lt;br&amp;gt;&lt;br /&gt;
Restart domoticz, and 1-wire support should now be detected, and you are able to add a new hardware device (1-Wire)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note: When using GPIO, set OWFS Path to nothing. After adding 1-wire (system) the sensors will eventually show up in the log.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===OWFS===&lt;br /&gt;
Follow this guide to connect and install OWFS - 1-Wire support&amp;lt;br&amp;gt;&lt;br /&gt;
[http://wiki.m.nu/index.php/OWFS_with_i2c_support_on_Raspberry_Pi_(English_version) How to Setup OWFS]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure everything works as it should by checking the contents of the 1wire folder or by reading a sensor: (Change path according to your sensor id)&lt;br /&gt;
 cat /mnt/1wire/10.F6877C010800/temperature&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Restart domoticz, and 1-wire support should now be detected, and you are able to add a new hardware device (1-Wire)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Note: to be detected by Domoticz, the 1-wire filesystem must be mounted as /mnt/1wire&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Disable 1-wire===&lt;br /&gt;
Add this line to crontab (sudo crontab -e):&amp;lt;br&amp;gt;&lt;br /&gt;
@reboot sudo rmmod w1_gpio&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Add 1-Wire Hardware Gateway==&lt;br /&gt;
After 1-wire system is working on your system you can add id to Domoticz:&lt;br /&gt;
&lt;br /&gt;
Go to menu &amp;lt;code&amp;gt;Setup -&amp;gt; Hardware&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select type: &amp;lt;code&amp;gt;1-Wire (system)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter a Name eg: &amp;lt;code&amp;gt;1-Wire&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OWFS Path: Enter path starting with &amp;lt;code&amp;gt;/mnt/1wire&amp;lt;/code&amp;gt;  Leave empty when using w1-gpio/w1-therm method!!&lt;br /&gt;
&lt;br /&gt;
Modify Sensor and switch Poll Periods to your need.&lt;br /&gt;
&lt;br /&gt;
Click on Add to add the Hardware. Domoticz will create the connected 1-Wire devices.&lt;br /&gt;
&lt;br /&gt;
They will show up in the [[Setup Devices|devices list]] (menu &amp;lt;code&amp;gt;Setup -&amp;gt; Devices&amp;lt;/code&amp;gt;) and need to be activated in domoticz (click on green arrow) to be shown in the devices tabs (switches, temperature etc).&lt;br /&gt;
&lt;br /&gt;
[[File:1wire.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Domoticz]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:Setup]]&lt;br /&gt;
[[Category:Hardware]]&lt;/div&gt;</summary>
		<author><name>Walter vl</name></author>
	</entry>
</feed>