{"id":1168,"date":"2021-01-03T16:04:29","date_gmt":"2021-01-03T14:04:29","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/?p=1168"},"modified":"2024-04-21T13:16:15","modified_gmt":"2024-04-21T11:16:15","slug":"installer-un-interrupteur-domotique-le-relier-a-jeedom-et-le-commander-avec-alexa","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/installer-un-interrupteur-domotique-le-relier-a-jeedom-et-le-commander-avec-alexa","title":{"rendered":"Install a home automation switch, connect it to Jeedom and control it with Alexa"},"content":{"rendered":"<h2>Objective<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1202\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/schema-sonoff-mini-r2-300x150.jpg\" alt=\"\" width=\"576\" height=\"288\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/schema-sonoff-mini-r2-300x150.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/schema-sonoff-mini-r2-600x300.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/schema-sonoff-mini-r2-768x384.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/schema-sonoff-mini-r2.jpg 800w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/p>\n<p>Although everything is in the title for this tutorial, here is the step-by-step installation of a domotised switch, without changing your switch and for less than \u20ac5 (price of the Sonoff Mini).<!--more--><\/p>\n<p>The only constraint is to have the neutral on the switch.<\/p>\n<p>The lights can be controlled by home automation on the dashBoard or on a Design on Jeedom. To order them by voice, I used the <a href=\"https:\/\/doc.jeedom.com\/fr_FR\/plugins\/communication\/ash\/\">Alexa plugin from Jeedom<\/a>, note that the same can be done with the <a href=\"https:\/\/doc.jeedom.com\/fr_FR\/plugins\/communication\/gsh\/\">Google SmartHome Plugin<\/a> from Jeedom.<\/p>\n<h2>Material<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1104\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2020\/12\/sonoffminir2-300x168.png\" alt=\"\" width=\"352\" height=\"197\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/12\/sonoffminir2-300x168.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/12\/sonoffminir2-600x336.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/12\/sonoffminir2-1024x573.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/12\/sonoffminir2-768x430.png 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/12\/sonoffminir2.png 1296w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/p>\n<ul>\n<li>A Sonoff Mini (less than \u20ac5 for Chinese people, reception in 3 weeks) or on Amazon:<\/li>\n<\/ul>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 25%;\"><iframe style=\"width: 120px; height: 240px;\" src=\"\/\/ws-eu.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=FR&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=sigalou-21&amp;language=fr_FR&amp;marketplace=amazon&amp;region=FR&amp;placement=B08NBGQ6NC&amp;asins=B08NBGQ6NC&amp;linkId=eedd16c669846f53d1b2f8a3e13cf594&amp;show_border=true&amp;link_opens_in_new_window=true\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/td>\n<td style=\"width: 25%;\"><iframe style=\"width: 120px; height: 240px;\" src=\"\/\/ws-eu.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=FR&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=sigalou-21&amp;language=fr_FR&amp;marketplace=amazon&amp;region=FR&amp;placement=B08NDFFJNS&amp;asins=B08NDFFJNS&amp;linkId=49fe6655f7ff4671ff54afe815a40512&amp;show_border=true&amp;link_opens_in_new_window=true\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/td>\n<td style=\"width: 25%;\"><iframe style=\"width: 120px; height: 240px;\" src=\"\/\/ws-eu.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=FR&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=sigalou-21&amp;language=fr_FR&amp;marketplace=amazon&amp;region=FR&amp;placement=B08NDH7LHD&amp;asins=B08NDH7LHD&amp;linkId=4a5d1a296e915d9b2b89b463635b1ab4&amp;show_border=true&amp;link_opens_in_new_window=true\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/td>\n<td style=\"width: 25%;\"><iframe style=\"width: 120px; height: 240px;\" src=\"\/\/ws-eu.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=FR&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=sigalou-21&amp;language=fr_FR&amp;marketplace=amazon&amp;region=FR&amp;placement=B08NDGH2V7&amp;asins=B08NDGH2V7&amp;linkId=d2655091ccef97fe45ff299f8b0fc288&amp;show_border=true&amp;link_opens_in_new_window=true\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>I advise the <a href=\"https:\/\/amzn.to\/3ocBRpP\">Mini R2<\/a>, even if the <a href=\"https:\/\/amzn.to\/354Sa0C\">Mini all-round<\/a> is very good, the R2 is really simpler to configure. Once configured, the two are identical.<\/p>\n<p>Note: The color of the last two connectors is gray on the R2, this allows to visually differentiate them<\/p>\n<h2>Preparing the Sonoff Mini in DIY mode<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-381\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2020\/04\/sonoffdiy2-294x300.jpg\" alt=\"sonoffdiy2\" width=\"294\" height=\"300\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/04\/sonoffdiy2-294x300.jpg 294w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/04\/sonoffdiy2-600x612.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/04\/sonoffdiy2-1004x1024.jpg 1004w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/04\/sonoffdiy2-768x783.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/04\/sonoffdiy2.jpg 1077w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/p>\n<ul>\n<li>Follow <span style=\"text-decoration: underline;\"><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/sonoff-diy-depuis-firmware-3-6-0\" target=\"_blank\" rel=\"noopener\">my tutorial on the preparation of this equipment<\/a><\/span><\/li>\n<\/ul>\n<p>Once you have informed the sonoff of your wifi credentials, relaunch it and proceed to the next step.<\/p>\n<h2>Integration with Jeedom<\/h2>\n<p>To make the link between the Sonoff Mini and Jeedom, use the plugin <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/plugin-sonoff-diy-documentation\">Sonoff-DIY<\/a> :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-295\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-25_Sonoffdiy_-_Jeedom-228x300.png\" alt=\"Screenshot 2020 01 25 Sonoffdiy Jeedom\" width=\"228\" height=\"300\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-25_Sonoffdiy_-_Jeedom-228x300.png 228w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2020-01-25_Sonoffdiy_-_Jeedom.png 290w\" sizes=\"auto, (max-width: 228px) 100vw, 228px\" \/><\/p>\n<p>Here are the links to the explanations for<\/p>\n<ul>\n<li><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/plugin-sonoff-diy-documentation#Installation_du_Plugin_SonoffDIY\" target=\"_blank\" rel=\"noopener\"><span style=\"text-decoration: underline;\">Install the Sonoff-DIY plugin<\/span><\/a><\/li>\n<li><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/plugin-sonoff-diy-documentation#Ajout_d%E2%80%99un_Device_Sonoff_Diy\" target=\"_blank\" rel=\"noopener\"><span style=\"text-decoration: underline;\">Add your Sonoff Mini in the Sonoff-DIY plugin<\/span><\/a><\/li>\n<\/ul>\n<p>Your switch must appear in Jeedom:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1182\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine-300x111.png\" alt=\"\" width=\"570\" height=\"211\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine-300x111.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine-600x221.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine-1024x378.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine-768x283.png 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine.png 1212w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1184\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine2.png\" alt=\"\" width=\"267\" height=\"152\" \/><\/p>\n<p><strong>Important<\/strong> : For the rest, consider assigning the switch\u2019s On and Off commands the generic type<em> Light Button On<\/em> and<em> Light Button Off<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1188\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine3-300x41.png\" alt=\"\" width=\"571\" height=\"78\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine3-300x41.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine3-600x83.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine3-1024x141.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine3-768x106.png 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine3.png 1233w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1189\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine4-300x99.png\" alt=\"\" width=\"491\" height=\"162\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine4-300x99.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine4-600x198.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine4.png 658w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/p>\n\n\n\n<h2>Link Jeedom \u2013 Alexa<\/h2>\n<p>To control the switch by voice, the link between Jeedom and Alexa must be established.<\/p>\n<p>The plugin <a href=\"https:\/\/doc.jeedom.com\/fr_FR\/plugins\/communication\/ash\/?theme=dark\" target=\"_blank\" rel=\"noopener\">Alexa<\/a> will be necessary.<\/p>\n<p>I do not discuss here the configuration of this plugin of the Jeedom team. <span style=\"text-decoration: underline;\"><a href=\"https:\/\/doc.jeedom.com\/fr_FR\/plugins\/communication\/ash\/?theme=dark\" target=\"_blank\" rel=\"noopener\">the documentation is here.<\/a><\/span><\/p>\n<p>Go to the Alexa plugin\u2019s equipment list, search for the switch, and tick the forward box. If you want to be able to turn on the kitchen by saying \u2018Alexa, turn on the kitchen\u2019, you have to give it a name, such as cooking:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1195\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine5-1-300x16.png\" alt=\"\" width=\"600\" height=\"32\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine5-1-300x16.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine5-1-600x32.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine5-1-1024x54.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine5-1-768x40.png 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine5-1.png 1100w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Click on Save and then launch a discovery on <span style=\"text-decoration: underline;\"><a href=\"https:\/\/alexa.amazon.fr\/spa\/index.html\" target=\"_blank\" rel=\"noopener\">Amazon Alexa<\/a><\/span>.<\/p>\n<p>Then go back to the Alexa plugin and then Equipment, a small green OK must appear on the new line created:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1199\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine6-300x24.png\" alt=\"\" width=\"575\" height=\"46\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine6-300x24.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine6-600x48.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/01\/intercuisine6.png 635w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/p>\n<p>&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>Although everything is in the title for this tutorial, here is step by step the installation of a domotised switch, without changing your switch and for less than \u20ac5 (price of the Sonoff Mini).<\/p>","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-1168","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\/1168","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=1168"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/1168\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}