<?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=I2C_Hardware</id>
	<title>I2C Hardware - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=I2C_Hardware"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=I2C_Hardware&amp;action=history"/>
	<updated>2026-09-18T23:07:02Z</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=I2C_Hardware&amp;diff=16704&amp;oldid=prev</id>
		<title>Walter vl: /* Not supported I2C devices */</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=I2C_Hardware&amp;diff=16704&amp;oldid=prev"/>
		<updated>2022-01-04T15:56:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Not supported I2C devices&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;It is possible to add some I2C devices directly connected to your &amp;#039;&amp;#039;&amp;#039;local&amp;#039;&amp;#039;&amp;#039; GPIO into Domoticz.&lt;br /&gt;
&lt;br /&gt;
Supported I2C devices are:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| - BMP085, BMP180&lt;br /&gt;
|Temp + Baro&lt;br /&gt;
|-&lt;br /&gt;
| - BMP280&lt;br /&gt;
|Temp + Humidity + Baro&lt;br /&gt;
|-&lt;br /&gt;
| - PCF8574, PCF8574A&lt;br /&gt;
|PIO 8 bit expander&lt;br /&gt;
|-&lt;br /&gt;
| - HTU21D&lt;br /&gt;
|Humidity + Temp&lt;br /&gt;
|-&lt;br /&gt;
| - TSL2561&lt;br /&gt;
|Illuminance&lt;br /&gt;
|-&lt;br /&gt;
| - MCP23017&lt;br /&gt;
|GPIO 16bit expander&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
First connect the I2C device to the RPi GPIO Header.&lt;br /&gt;
&lt;br /&gt;
Goto menu Setup - Hardware&lt;br /&gt;
&lt;br /&gt;
*Type: Select &amp;#039;&amp;#039;I2C Sensors&amp;#039;&amp;#039; Hardware Gateway from the pull down list.&lt;br /&gt;
*Enabled/Disabled: you can disable the hardware gateway. The created devices stay active (but greyed out) but will not be updated.&lt;br /&gt;
*Name: Enter a meaningful name for this I2C Gateway&lt;br /&gt;
*Select Log Levels:&lt;br /&gt;
**Info: Shows info logging about the hardware and its devices in the log file or log page. This will normally generate the most log lines&lt;br /&gt;
**Status: Shows Status logging in the log file or log page.&lt;br /&gt;
**Error: Shows Error logging in the log file or log page.&lt;br /&gt;
*Data Timeout: Enable Data Timeout if needed (1 minute to 24 hours). Domoticz will restart the Hardware thread/plugin if after the set timeout still no data is received by the gateway.&lt;br /&gt;
*Select the I2C Subtype from the pulldown list&lt;br /&gt;
*Set the path to the I2C bus (eg /dev/i2c-1 or leave empty for autodetection)&lt;br /&gt;
*For expanders enter I2C address&lt;br /&gt;
*For expanders enable GPIO inversion if needed.&lt;br /&gt;
&lt;br /&gt;
Click on Add to create the hardware. The related devices based on the I2C Subtype will be created and appear in the [[Setup Devices|device list]] (menu Setup - Devices) and in your Device tabs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:I2C-hardware.png]]&lt;br /&gt;
&lt;br /&gt;
==Not supported I2C devices==&lt;br /&gt;
For not supported devices you could create an external script (python/bash) that will read/write with the I2C device. Create [[Dummy for virtual Switches|Dummy Virtual devices]] and with [[Domoticz API/JSON URL&amp;#039;s|http URL/API commands]] update the domoticz devices.&lt;br /&gt;
&lt;br /&gt;
For Python you need to install the smbus library&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo apt-get install python-smbus&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also for example:&lt;br /&gt;
&lt;br /&gt;
https://www.domoticz.com/forum/viewtopic.php?t=33516&lt;/div&gt;</summary>
		<author><name>Walter vl</name></author>
	</entry>
</feed>