{"id":180,"date":"2020-11-14T14:03:21","date_gmt":"2020-11-14T13:03:21","guid":{"rendered":"https:\/\/www.cbulon.nl\/?p=180"},"modified":"2020-11-14T14:06:54","modified_gmt":"2020-11-14T13:06:54","slug":"lets-make-my-home-smart","status":"publish","type":"post","link":"https:\/\/www.cbulon.nl\/?p=180","title":{"rendered":"How to make your home smart"},"content":{"rendered":"\n<p>Okay, there are many ways to make your home smart. But what is the best way? What is the most secured way? Great questions. For now I do not have the answer for that. I already had a led dimmer from EcoDim (<a rel=\"noreferrer noopener\" href=\"https:\/\/www.ecodim.nl\/eco-dim07-zigbee-pro.html\" target=\"_blank\">https:\/\/www.ecodim.nl\/eco-dim07-zigbee-pro.html<\/a>). This one supported the Zigbee protocol, so I am going to use that. This is also be used by the Philips Hue and Ikea Hub. Of course I am a IT guy, so I am not going to buy a gateway\/hub, but I am going to build one \ud83d\ude42 <\/p>\n\n\n\n<p>For this build, I am using a Raspberry Pi 3 with a ConBee II (Zigbee USB-Gateway) and I am going to install Domoticz (https:\/\/www.domoticz.com\/) on it. <\/p>\n\n\n\n<p>First step is to go to the <a rel=\"noreferrer noopener\" href=\"https:\/\/phoscon.de\/en\/conbee2\/sdcard\" target=\"_blank\">ConBee website<\/a> and download the installation image. They already have start ready images for you. I choose the Raspbian Buster Headless (Beta image without desktop based on Debian Buster). To write this image to the SD card, you need to download the <a rel=\"noreferrer noopener\" href=\"https:\/\/www.balena.io\/etcher,\" target=\"_blank\">Etcher<\/a> program. Install and start it.<\/p>\n\n\n\n<p>1. Insert the SD-card into a SD card reader<br>2. Press Select image and select the downloaded SD-card image (Phoscon_Gateway_Headless_2020-10-16.xz)<br>3. Press Select drive and select the SD card drive<br>4. Press Flash! to start the copy process<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"573\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-12-om-18.46.37-1024x573.png\" alt=\"\" class=\"wp-image-190\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-12-om-18.46.37-1024x573.png 1024w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-12-om-18.46.37-300x168.png 300w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-12-om-18.46.37-768x430.png 768w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-12-om-18.46.37-1536x859.png 1536w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-12-om-18.46.37.png 1580w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>Place the SD card into the Raspberry Pi, add network and add the USB ConBee 2. Add power to boot. SSH is by default enabled. Find the IP of the Raspberry Pi by checking your DHCP list on your router or by adding a monitor to it and run <br><code># ip a<\/code><\/p>\n\n\n\n<p>Login credentials are:<br>Username: pi<br>Password: raspbeegw<\/p>\n\n\n\n<p>Change basic configurations by running command with root permissions:<br><code># sudo raspi-config<\/code><\/p>\n\n\n\n<p>Change the following settings (feel free to change more):<br>1. Change User Password<br>2. Network Options &#8211; Hostname<br>4. Localisation Options &#8211; Time Zone<br>7. Advanced Options &#8211; Expand Filesystem<br>8 Update<br>Some of the settings need a reboot to get activated, run command<br># sudo reboot<\/p>\n\n\n\n<p>On the Pi or on a different computer in the same network, go to <br><a rel=\"noreferrer noopener\" href=\"http:\/\/phoscon.de\/app\" target=\"_blank\">http:\/\/phoscon.de\/app<\/a><br>Click on the icon in the top (some kind of &#8220;P&#8221;) to start the search to your Phoscon gateway. When it is found, it will be displayed below the search bar. See printscreen below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"734\" height=\"492\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.52.17.png\" alt=\"\" class=\"wp-image-194\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.52.17.png 734w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.52.17-300x201.png 300w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/figure>\n\n\n\n<p>When the gateway is found (in my case the Phoscon-GW), click on it.<br>Set a Gateway name and a Login password and click on Next.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"551\" height=\"521\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.56.32.png\" alt=\"\" class=\"wp-image-195\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.56.32.png 551w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.56.32-300x284.png 300w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><\/figure>\n\n\n\n<p>In the next step you can connect lights, but I don&#8217;t have installed one yet, so I will continue with the button in the top right Proceed without lights -&gt;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"929\" height=\"803\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.58.02.png\" alt=\"\" class=\"wp-image-196\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.58.02.png 929w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.58.02-300x259.png 300w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.58.02-768x664.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>In the next step you can create your first group by clicking on Create first group, give it a name (in my case Keuken) and click on Create<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"928\" height=\"560\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.59.36.png\" alt=\"\" class=\"wp-image-198\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.59.36.png 928w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.59.36-300x181.png 300w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-18.59.36-768x463.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"609\" height=\"271\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-19.01.02.png\" alt=\"\" class=\"wp-image-199\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-19.01.02.png 609w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-19.01.02-300x133.png 300w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"708\" height=\"861\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-19.03.50.png\" alt=\"\" class=\"wp-image-200\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-19.03.50.png 708w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-13-om-19.03.50-247x300.png 247w\" sizes=\"(max-width: 708px) 100vw, 708px\" \/><\/figure>\n\n\n\n<p>Go back to Raspberry Pi (via SSH) to download and install Domoticz. Run command: <br><\/p>\n\n\n\n<p>Now we are going to install Domoticz.<br>Start the installation by running command<br><code># curl -L https:\/\/install.domoticz.com | bash<\/code><br>This installation will start a wizard.<\/p>\n\n\n\n<p>Select Services: Both HTTP and HTTPS<br>HTTP Port number: 8080<br>HTTPS Port number: 443<br>Installation folder: \/home\/pi\/domoticz<br>After the installation is complete, you can find the installation log in \/etc\/domoticz<\/p>\n\n\n\n<p>During my plugin installation (explained later), I had some issues finding it. Seems that we also need to install some python libraries. Run command<br><code># apt-get install python3 libpython3-dev libpython3.4-dev<\/code><br>After install, restart Domoticz<br><code># sudo service domoticz restart<\/code><\/p>\n\n\n\n<p>Now we are installing the deCONZ plugin to Domoticz. Go to the plugin folder<br><code># cd \/home\/pi\/domoticz\/plugins<\/code><br>Download the plugin<br><code># git clone https:\/\/github.com\/Smanar\/Domoticz-deCONZ.git<\/code><br>Be sure the plugin has the right permissions<br># chmod +x Domoticz-deCONZ\/plugin.py<\/p>\n\n\n\n<p>Connection between Domoticz and DeCONZ is going via API. So, first we need to generate a key. First go into the plugin folder<br><code># cd Domoticz-deCONZ<\/code><br>Generate the key<br># python3 API_KEY.py 127.0.0.1 create<br>The response will be something like this: <code>Your new API key is : 688C0296EC<\/code><\/p>\n\n\n\n<p>Now we are going to add this key to Domoticz, but first we need to restart Domoticz<br># sudo service domoticz restart<\/p>\n\n\n\n<p>After the restart (10 seconds), visit your Domoticz website. <br>http:\/\/ip_of_pi:8080 or https:\/\/ip_of_pi:443<\/p>\n\n\n\n<p>In Domoticz, go to Setup &#8211; Settings<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"756\" height=\"412\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-12.38.00.png\" alt=\"\" class=\"wp-image-202\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-12.38.00.png 756w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-12.38.00-300x163.png 300w\" sizes=\"(max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>Go to Hardware\/Devices (at the bottom of the page) and be sure Accept new Hardware Devices is ON (green)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"588\" height=\"262\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-12.40.25.png\" alt=\"\" class=\"wp-image-203\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-12.40.25.png 588w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-12.40.25-300x134.png 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/figure>\n\n\n\n<p>Go to Setup &#8211; Hardware<br>Add the DeConz Plugin<br>Add a Name and change the API KEY to the key you just generate.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"868\" height=\"690\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.42.40.png\" alt=\"\" class=\"wp-image-205\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.42.40.png 868w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.42.40-300x238.png 300w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.42.40-768x611.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>After clicking on Add, you can see in the top the just created Device <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"625\" height=\"125\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.46.34.png\" alt=\"\" class=\"wp-image-206\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.46.34.png 625w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.46.34-300x60.png 300w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/figure>\n\n\n\n<p>All devices which are already created are added to Domoticz!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"845\" height=\"267\" src=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.59.08.png\" alt=\"\" class=\"wp-image-208\" srcset=\"https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.59.08.png 845w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.59.08-300x95.png 300w, https:\/\/www.cbulon.nl\/wp-content\/uploads\/2020\/11\/Schermafbeelding-2020-11-14-om-13.59.08-768x243.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>You are now ready to add more devices to Domoticz and to personalise it special for yourself \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Okay, there are many ways to make your home smart. But what is the best way? What is the most secured way? Great questions. For now I do not have the answer for that. I already had a led dimmer from EcoDim (https:\/\/www.ecodim.nl\/eco-dim07-zigbee-pro.html). This one supported the Zigbee protocol, so I am going to use &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.cbulon.nl\/?p=180\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;How to make your home smart&#8221;<\/span> verder lezen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,2],"tags":[43,42,41,40,36,39],"_links":{"self":[{"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=\/wp\/v2\/posts\/180"}],"collection":[{"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180"}],"version-history":[{"count":16,"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":211,"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions\/211"}],"wp:attachment":[{"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cbulon.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}