{"id":2744,"date":"2022-01-22T09:48:44","date_gmt":"2022-01-22T07:48:44","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/?p=2744"},"modified":"2024-04-21T13:06:49","modified_gmt":"2024-04-21T11:06:49","slug":"integration-jeedom-du-sonoff-mini-et-mini-r2","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/integration-jeedom-du-sonoff-mini-et-mini-r2","title":{"rendered":"Jeedom integration of Sonoff Mini and Mini R2"},"content":{"rendered":"<h3><!--more--><a id=\"Prog\"><\/a>Programming modules to interface them with the plugin<\/h3>\n<div class=\"form-group\">\n<div class=\"form-group\">\n<p>Modules are delivered as usable with the eWeLink application<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-292\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/ewelink.png\" alt=\"ewelink\" width=\"100\" height=\"100\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/ewelink.png 180w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/ewelink-100x100.png 100w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/ewelink-150x150.png 150w\" sizes=\"auto, (max-width: 100px) 100vw, 100px\" \/><\/p>\n<p>Do not use this application, it is even completely unnecessary to configure it before switching to DIY mode.<\/p>\n<p>The only interest to go through the application is to <strong>make an update<\/strong>, I have always received up-to-date modules so I have never used this feature.<\/p>\n<p><em><strong>Sonoff advises to use at least version 3.3.0<\/strong><\/em><\/p>\n<p style=\"text-align: center;\"><span style=\"color: #ff6600;\"><strong>Updated December 2020<\/strong><\/span><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; border-style: solid; border-color: #ed9315; background-color: #f2d6ae;\">\n<ul>\n<li><strong>Version of Firmware 3.5.0, and new method, follow: <\/strong><strong><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/sonoff-diy-depuis-firmware-3-5-0-ewelink-protocol-v2\"><span style=\"text-decoration: underline;\">Specific tutorial for version 3.5.0<\/span><\/a><\/strong><\/li>\n<li><strong>Version of <span style=\"color: #ff6600;\">Firmware 3.6.0<\/span>, and new method, follow: <\/strong><span style=\"text-decoration: underline;\"><strong><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/sonoff-diy-depuis-firmware-3-6-0\">Specific tutorial for version 3.6.0<\/a><\/strong><\/span><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><strong>Step<\/strong> 1 : Switch the module to DIY mode<\/h3>\n<p>To switch them to DIY mode, it is necessary to open them (it is very simple) and add the small rider provided on the space provided for this purpose:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-293\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Sonoff_Mini_demontage.jpg\" alt=\"Sonoff Mini demontage\" width=\"300\" height=\"286\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Sonoff_Mini_demontage.jpg 807w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Sonoff_Mini_demontage-600x571.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Sonoff_Mini_demontage-300x286.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Sonoff_Mini_demontage-768x731.jpg 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>This image shows a Sonoff Mini but it is almost the same for the other modules.<\/p>\n<p>Once the rider is placed, close the case, hard side (material) <strong>it is over<\/strong>, your module is switched to DIY mode.<\/p>\n<h3>Step 2: create a WIFI access point with your mobile phone<\/h3>\n<p>This step is very simple, use your mobile phone and activate the functionality, on a Samsung, for example:<\/p>\n<ul>\n<li><strong>Settings<\/strong><\/li>\n<li><strong>Connections<\/strong><\/li>\n<li><strong>Mobile access point and modem<\/strong><\/li>\n<li>Activate <strong>Mobile access point<\/strong><\/li>\n<li>Press it<\/li>\n<li>Change the name of the network and put: <strong>sonoffDiy<\/strong><\/li>\n<li>Change the password and put: <strong>20170618sn<\/strong><\/li>\n<li>On the \u2026 at the top right, <strong>Approved devices<\/strong> then Disable <strong>Only authorized devices<\/strong><\/li>\n<\/ul>\n<h3>Step 3: connect the Sonoff to electricity<\/h3>\n<p>Obviously with all the precautions for use!!!<\/p>\n<ul>\n<li>Connecting N and Lin to a power outlet<\/li>\n<li>Connect the socket<\/li>\n<\/ul>\n<p>The blue diode will blink once every second. As soon as the connection is made to the access point, it will blink twice in 1 second.<\/p>\n<h3>Step 4: connect a computer to the sonoffDiy access point<\/h3>\n<p>On a computer with a wifi card, search the list of available wifi connections<\/p>\n<p>Connect to the network <strong>sonoffDiy<\/strong> (with code <strong>20170618sn<\/strong>)<\/p>\n<h3>Step 5: Launch the Sonoff DIY mode tool program<\/h3>\n<p>Upload <a href=\"https:\/\/github.com\/itead\/Sonoff_Devices_DIY_Tools\/tree\/master\/tool\">the latest version of the program on this page<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-294\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/diy.png\" alt=\"diy\" width=\"500\" height=\"254\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/diy.png 1119w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/diy-600x305.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/diy-300x152.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/diy-1024x520.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/diy-768x390.png 768w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<ul>\n<li>If the list of equipment unfortunately remains empty while the access point is well created and the module blinks well with two blue pulses, we have detected (thanks <span class=\"first username\">ezdom<\/span>) that the concern comes from a <strong>conflict<\/strong> between 2.4Ghz WIFI and 5Ghz. To fix this, disable 5Ghz in your wifi router (or disconnect 5Ghz antennas if you know how to do this).<\/li>\n<li>If despite disabling 5Ghz, you still have an empty list, use the Google Chrome\/Advanced REST Client (ARC) method. This method is explained <a href=\"https:\/\/www.planete-domotique.com\/blog\/2019\/10\/28\/sonoff-mini-diy-eedomus\/\" target=\"_self\" rel=\"noopener noreferrer\">on this page<\/a>.<\/li>\n<\/ul>\n<ul>\n<li>Note the number that appears in the first column, it will serve you to identify your module, (if you have forgotten, the plugin will be able to find you.)<\/li>\n<\/ul>\n<h3>Step 6: Change SSID Password<\/h3>\n<p>At the bottom right, use the Change SSID Password button to put the SSID and password of your Wifi network<\/p>\n<h3>Step 7: Unplug and reconnect the Sonoff module<\/h3>\n<p>It\u2019s over, your Sonoff module must be on your Wi-Fi network<\/p>\n<h3>Step 8: Go and find the IP address of your new module<\/h3>\n<p>The interface of your router will give you the IP of this new module, you must have it in the latest modules detected and added by the DHCP server of your router. I advise you to assign it a fixed IP at this stage.<\/p>\n<ul>\n<li>Record the IP, it will be necessary for you to order the module from the plugin<\/li>\n<\/ul>\n<h2>Adding a Sonoff Diy Device<\/h2>\n<p>Just press the button <span style=\"font-size: 14pt;\"><strong>+<\/strong><\/span> to add equipment<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-295\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-25_Sonoffdiy_-_Jeedom.png\" alt=\"Screenshot 2020 01 25 Sonoffdiy Jeedom\" width=\"290\" height=\"381\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-25_Sonoffdiy_-_Jeedom.png 290w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-25_Sonoffdiy_-_Jeedom-228x300.png 228w\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" \/><\/p>\n<h2>Configure new equipment<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-296\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-25_Sonoffdiy_-_Jeedom1.png\" alt=\"Screenshot 2020 01 25 Sonoffdiy Jeedom1\" width=\"543\" height=\"102\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-25_Sonoffdiy_-_Jeedom1.png 543w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-25_Sonoffdiy_-_Jeedom1-300x56.png 300w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/p>\n<p>There are two parameters in the configuration of a module:<\/p>\n<ul>\n<li><strong>The IP address<\/strong> : Mandatory parameter, this is the address of your module on the wifi network, your router will give you this information (see Step 8 of the equipment programming)<\/li>\n<li><strong>Device ID<\/strong> : Mandatory parameter, this serial number is given to you when configuring the module by the DIY mode tool software.<\/li>\n<\/ul>\n<p><strong>Important<\/strong> : If you have not specified l<strong>\u2018Device ID<\/strong>, you will not have status change returns because the plugin will not know which device to use.<\/p>\n<p>You have a very simple way to find the ID of a device:<\/p>\n<h3>Find the ID of a Sonoff<\/h3>\n<p><em><strong>Note of 07\/03\/2021<\/strong>, the plugin is now able to find the ID alone if you do not have it. The ID will be detected when the first order is sent.<\/em><\/p>\n<p>If you need to return the ID of a device, follow this procedure:<\/p>\n<ul>\n<li>Go to the configuration of the plugin, put yourself in mode \"\u00a0<strong>debug<\/strong>\u00a0\u00bb (<strong>warning<\/strong> minimum) and for it to be simpler, open the log <strong>sonoffdiy _mDNS<\/strong> and click on empty to purge it<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-297\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-27_Sonoff_DIY_-_Jeedom.png\" alt=\"Screenshot 2020 01 27 Sonoff DIY Jeedom\" width=\"557\" height=\"162\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-27_Sonoff_DIY_-_Jeedom.png 557w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-27_Sonoff_DIY_-_Jeedom-300x87.png 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/p>\n<ul>\n<li>Start a change of status of the module in question (pass it on or off)<\/li>\n<li>Go back to the plugin configuration, open the log <strong>sonoffdiy _mDNS<\/strong>, you will find the ID in the log:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-298\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-27_Sonoff_DIY_-_Jeedom1.png\" alt=\"Screenshot 2020 01 27 Sonoff DIY Jeedom1\" width=\"666\" height=\"73\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-27_Sonoff_DIY_-_Jeedom1.png 666w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-27_Sonoff_DIY_-_Jeedom1-600x66.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-27_Sonoff_DIY_-_Jeedom1-300x33.png 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/p>\n<ul>\n<li>Copy this ID in the configuration of the equipment, you should no longer see this type of message in the log <strong>and your equipment widget will automatically change status<\/strong>.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p>\u00a0<\/p>\n<h4>Other references<\/h4>\n<ul>\n<li>https:\/\/www.planete-domotique.com\/blog\/2019\/10\/28\/sonoff-mini-diy-eedomus\/<\/li>\n<\/ul>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,23],"tags":[],"class_list":["post-2744","post","type-post","status-publish","format-standard","hentry","category-domotique","category-jeedom-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/2744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=2744"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/2744\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=2744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=2744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=2744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}