<?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=Homekit_Siri</id>
	<title>Homekit Siri - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Homekit_Siri"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Homekit_Siri&amp;action=history"/>
	<updated>2026-09-18T23:45:13Z</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=Homekit_Siri&amp;diff=13877&amp;oldid=prev</id>
		<title>Rwaaren: /* Add Homebridge-Edomoticz plugin */</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Homekit_Siri&amp;diff=13877&amp;oldid=prev"/>
		<updated>2020-03-02T09:24:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Add Homebridge-Edomoticz plugin&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This wiki page describes the installation steps required to install Homebridge &amp;amp; Systemd (Raspbian, Ubuntu, Debian) with Siri support. For Docker or Synology DSM install &amp;#039;&amp;#039;&amp;#039;[https://github.com/nfarina/homebridge/wiki/Docker click here]&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
This enables you to talk to your apple iPhone or iPad to control your domoticz installation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;To manage Homebridge(Homekit) go to for example, [http://192.168.1.20:9898 http://192.168.1.20:8581]. From here you can install, remove and update plugins, modify the Homebridge config.json and restart Homebridge.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[file:Homebridge-config-ui-x-status.png|Homebridge UserInterface]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Update your system==&lt;br /&gt;
Make sure your system is up-to-date:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Install Homebridge &amp;amp; Systemd==&lt;br /&gt;
&lt;br /&gt;
===Step 1: Install Node.js and Homebridge===&lt;br /&gt;
&lt;br /&gt;
Install the LTS version of Node.js from the official repository, as well as additional dependencies:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -&lt;br /&gt;
sudo apt-get install -y nodejs gcc g++ make python&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Test if node is working. This should display the version number of the installed node.js&lt;br /&gt;
  node -v&lt;br /&gt;
&amp;lt;span class=&amp;quot;mw-customtoggle-myDivision&amp;quot;&amp;gt;[[File:informatie.jpg]]&amp;lt;u&amp;gt;&amp;#039;&amp;#039;&amp;#039;Raspberry Pi 1 and Zero Users, click here for alternative Node.js installation instructions.&amp;#039;&amp;#039;&amp;#039;&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
The installation of Node.js on arm32v6 devices such as the Raspberry Pi 1 and Raspberry Pi Zero is not supported by the official repository using the steps above. Instead use the following commands to install Node.js.&lt;br /&gt;
&lt;br /&gt;
update repos and install deps&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get install -y gcc g++ make python&lt;br /&gt;
&lt;br /&gt;
install node and npm&lt;br /&gt;
  curl -Lsf &amp;quot;https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-armv6l.tar.gz&amp;quot; | tar xzf - -C /usr/local --strip-components=1 --no-same-owner&lt;br /&gt;
&lt;br /&gt;
test node is working&lt;br /&gt;
  node -v&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now install Homebridge and Homebridge Config UI X:&lt;br /&gt;
&lt;br /&gt;
  sudo npm install -g --unsafe-perm homebridge@latest homebridge-config-ui-x@latest&lt;br /&gt;
&lt;br /&gt;
To setup Homebridge as a service that will start on boot you can use the provided hb-service command:&lt;br /&gt;
&lt;br /&gt;
  sudo hb-service install --user homebridge&lt;br /&gt;
&lt;br /&gt;
This command will do everything that is required to setup Homebridge and the Homebridge UI as a service on your system, it will create the homebridge user if it does not already exist, and create the default Homebridge config.json under /var/lib/homebridge if it does not already exist.&lt;br /&gt;
&lt;br /&gt;
When setting up Homebridge as a service using this command, the UI will stay online even if Homebridge is crashing due to a bad plugin or configuration error.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Manage and Configure Homebridge===&lt;br /&gt;
To manage Homebridge go to &amp;lt;code&amp;gt;http://&amp;lt;ip of server&amp;gt;:8581&amp;lt;/code&amp;gt; in your browser. For example, http://192.168.1.20:8581. From here you can install, remove and update plugins, modify the Homebridge config.json and restart Homebridge.&lt;br /&gt;
&lt;br /&gt;
The default username is &amp;#039;&amp;#039;admin&amp;#039;&amp;#039; with password &amp;#039;&amp;#039;admin&amp;#039;&amp;#039;. &amp;#039;&amp;#039;&amp;#039;Remember you will need to restart Homebridge to apply any changes you make to the config.json.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===Step 3: Adding Homebridge to iOS===&lt;br /&gt;
Use the Home app (or most other HomeKit apps), you should now be able to add the single accessory &amp;quot;Homebridge&amp;quot;, assuming that you&amp;#039;re still running Homebridge and you&amp;#039;re on the same Wifi network.  When you attempt to add Homebridge, &amp;#039;&amp;#039;&amp;#039;scan the QR code&amp;#039;&amp;#039;&amp;#039; in Homebridge Status Screen or add with &amp;#039;&amp;#039;&amp;#039;PIN code&amp;#039;&amp;#039;&amp;#039;. Adding this accessory will automatically add all accessories and platforms defined in config.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
The Homebridge logs can be viewed using the web interface, but if cant open config ui or you need to view them via the terminal run:&lt;br /&gt;
&lt;br /&gt;
  sudo hb-service logs&lt;br /&gt;
&lt;br /&gt;
Start, stop and restart service:&lt;br /&gt;
  sudo hb-service start&lt;br /&gt;
  sudo hb-service stop&lt;br /&gt;
  sudo hb-service restart&lt;br /&gt;
&lt;br /&gt;
If you get this error in log: &amp;#039;&amp;#039;&amp;#039; Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory:&amp;#039;&amp;#039;&amp;#039;. Try delete cached accessories folder.&lt;br /&gt;
&lt;br /&gt;
  rm -r /var/lib/homebridge/accessories&lt;br /&gt;
&lt;br /&gt;
==Add Homebridge-Edomoticz plugin==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;http://&amp;lt;ip of server&amp;gt;:8581&amp;lt;/code&amp;gt; in your browser. For example, http://192.168.1.20:8581.&lt;br /&gt;
&lt;br /&gt;
*Click on plugins&lt;br /&gt;
*Search for &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;edomoticz&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Click &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Install&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; in Homebridge Edomoticz container&lt;br /&gt;
*Click on &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Config&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Edit config to match your settings: &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note &amp;#039;&amp;#039;&amp;#039;: you have to provide userid/password in the config.json file, even when you exclude local addresses from the need of authentication. To provide userid and password in config.json, change the server rule to: &amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;  &amp;quot;server&amp;quot;: &amp;quot;username:password@127.0.0.1&amp;quot;, &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;bridge&amp;quot;: {&lt;br /&gt;
        &amp;quot;name&amp;quot;: &amp;quot;Homebridge&amp;quot;,&lt;br /&gt;
        &amp;quot;username&amp;quot;: &amp;quot;CB:22:3D:E2:CE:31&amp;quot;,&lt;br /&gt;
        &amp;quot;port&amp;quot;: 51826,&lt;br /&gt;
        &amp;quot;pin&amp;quot;: &amp;quot;031-45-154&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;accessories&amp;quot;: [],&lt;br /&gt;
    &amp;quot;platforms&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;name&amp;quot;: &amp;quot;Config&amp;quot;,&lt;br /&gt;
            &amp;quot;port&amp;quot;: 8581,&lt;br /&gt;
            &amp;quot;auth&amp;quot;: &amp;quot;form&amp;quot;,&lt;br /&gt;
            &amp;quot;theme&amp;quot;: &amp;quot;teal&amp;quot;,&lt;br /&gt;
            &amp;quot;restart&amp;quot;: &amp;quot;sudo -n systemctl restart homebridge&amp;quot;,&lt;br /&gt;
            &amp;quot;tempUnits&amp;quot;: &amp;quot;c&amp;quot;,&lt;br /&gt;
            &amp;quot;sudo&amp;quot;: true,&lt;br /&gt;
            &amp;quot;log&amp;quot;: {&lt;br /&gt;
                &amp;quot;method&amp;quot;: &amp;quot;systemd&amp;quot;&lt;br /&gt;
            },&lt;br /&gt;
            &amp;quot;platform&amp;quot;: &amp;quot;config&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;platform&amp;quot;: &amp;quot;eDomoticz&amp;quot;,&lt;br /&gt;
            &amp;quot;name&amp;quot;: &amp;quot;eDomoticz&amp;quot;,&lt;br /&gt;
            &amp;quot;server&amp;quot;: &amp;quot;127.0.0.1&amp;quot;,&lt;br /&gt;
            &amp;quot;port&amp;quot;: &amp;quot;8080&amp;quot;,&lt;br /&gt;
            &amp;quot;ssl&amp;quot;: false,&lt;br /&gt;
            &amp;quot;roomid&amp;quot;: 2,&lt;br /&gt;
            &amp;quot;mqtt&amp;quot;: true,&lt;br /&gt;
            &amp;quot;excludedDevices&amp;quot;: []&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Click &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; then &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Restart&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; Homebridge&lt;br /&gt;
&lt;br /&gt;
For more additional settings or help visit [https://github.com/PatchworkBoy/homebridge-edomoticz eDomoticz] or [https://www.domoticz.com/forum/viewtopic.php?f=36&amp;amp;t=10272 forum thread]&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/nfarina/homebridge/wiki/Homebridge-UI-&amp;amp;-Systemd-(Raspbian,-Ubuntu,-Debian) Homebridge on github]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/PatchworkBoy/homebridge-edomoticz Homebridge-Edomoticz Plugin]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/nfarina/homebridge/wiki/Docker Homebridge for Docker]&lt;/div&gt;</summary>
		<author><name>Rwaaren</name></author>
	</entry>
</feed>