{"id":332,"date":"2020-02-23T12:14:11","date_gmt":"2020-02-23T12:14:11","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/domotiser-son-chauffage-de-salle-de-bains-controle-par-jeedom"},"modified":"2024-04-21T13:17:25","modified_gmt":"2024-04-21T11:17:25","slug":"domotiser-son-chauffage-de-salle-de-bains-controle-par-jeedom","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-son-chauffage-de-salle-de-bains-controle-par-jeedom","title":{"rendered":"Dominate your Jeedom-controlled bathroom heater (with a Sonoff Basic R2)"},"content":{"rendered":"<h2><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-326\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/20200223_182855.jpg\" alt=\"20200223 182855\" width=\"800\" height=\"450\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/20200223_182855.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/20200223_182855-600x338.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/20200223_182855-300x169.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/20200223_182855-768x432.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/h2>\n<p><em>Note: one <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/domotiser-son-chauffage-de-salle-de-bains-controle-par-jeedom-v2-avec-basicr3\">V2 of this tutorial<\/a> was made with a Sonoff Basic R3<\/em><\/p>\n<h2>Objectives:<\/h2>\n<p>At a lower cost (within \u20ac10) + the price of heating (\u20ac16), I wanted to domotiser the heating of the bathroom to:<\/p>\n<ul>\n<li>Be able to trigger (or stop) heating via Jeedom (and therefore controlled by Google Home, Alexa, Touchscreen, Phone \u2026)<\/li>\n<li>Be able to trigger (or stop) heating from the button on the Sonoff<\/li>\n<li>Automatically stop heating to a certain temperature and warn Jeedom to trigger information<\/li>\n<li>Automatically stop heating after a certain period of time and warn Jeedom to trigger information<\/li>\n<li>Try as much as possible to make the heating stand-alone (whether it works even without wifi or jeedom)<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h2>Necessary equipment:<\/h2>\n<ul>\n<li>A heater that starts when power is turned on, I ordered <a href=\"https:\/\/amzn.to\/38RjsHn\" target=\"_self\" rel=\"noopener noreferrer\">this one<\/a> (<strong><em>15.99\u20ac<\/em><\/strong>)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/amzn.to\/38RjsHn\" target=\"_self\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-327\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_D%C3%A9tails_des_commandes.png\" alt=\"Screenshot 2020 02 23 Order Details\" width=\"401\" height=\"102\"><\/a><\/p>\n<ul>\n<li>A Sonoff Basic R2 (<em><strong>4.16\u20ac<\/strong><\/em>), I ordered <a href=\"http:\/\/bgd.by\/2erhvf\">this one<\/a><\/li>\n<li>A Temperature\/Humidity Probe, I ordered <a href=\"https:\/\/www.banggood.com\/custlink\/3mDvzmT1DF\">this one<\/a><\/li>\n<li>What Flash the Sonoff and install EspEasy<\/li>\n<li>Jeedom\/plugin ESPEasy<\/li>\n<\/ul>\n<h1><\/h1>\n<h1>Implementation<\/h1>\n<h2><\/h2>\n<h2>Step 1: Flashing<\/h2>\n<p>Flashing the Sonoff, for that, there are hundreds of tutorials, I'm not going to do one more for that. The only detail to report is that the ESP_Easy_mega-20200222_normal_ESP8285_1M.bin file must be used during Flashing because the Sonoff module used is equipped with an ESP8285.<\/p>\n<p>To help you, you can look<a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flasher-le-sonoff-4ch-pro-r2\"> this Tuto<\/a> or <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flasher-le-sonoff-dual-r2\">this Tuto<\/a> or <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flasher-le-sonoff-pow\">this Tuto<\/a> that I did for other less documented modules<\/p>\n<h2><\/h2>\n<h2>Step 2: Connecting the Sonoff to Wi-Fi<\/h2>\n<p>Connect <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flash-sonoff-reseau-wifi-flashage\">the Sonoff to the local network and then integrate it into Jeedom<\/a><\/p>\n<h2><\/h2>\n<h2>Step 3: Weld the temperature probe<\/h2>\n<ul>\n<li>Ground Terminal on Ground <span style=\"color: #ffffff; background-color: #000000;\">(black thread)<\/span><\/li>\n<li>Vc Terminal on Vc <span style=\"background-color: #ff0000;\">(red thread)<\/span><\/li>\n<li>Terminal Data on Tx <span style=\"background-color: #ffcc00;\">(yellow thread)<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-328\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/connectsonoffbasicr2.png\" alt=\"connectsonoffbasicr2\" width=\"290\" height=\"504\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/connectsonoffbasicr2.png 290w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/connectsonoffbasicr2-173x300.png 173w\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" \/><\/p>\n<h2><\/h2>\n<h2>Step 4: Disable Serial Port<\/h2>\n<p>To do this, disable the serial port in the ESPEasy config, this allows you to recover the Rx and Tx terminals<\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-329\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_Espeasy_-_Jeedom.png\" alt=\"Screenshot 2020 02 23 Espeasy Jeedom\" width=\"321\" height=\"102\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_Espeasy_-_Jeedom.png 321w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_Espeasy_-_Jeedom-300x95.png 300w\" sizes=\"auto, (max-width: 321px) 100vw, 321px\" \/><\/h2>\n<h2><\/h2>\n<h2>Step 5: Configure ESPEasy devices<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-330\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_SonoffSalleBain.png\" alt=\"Screenshot 2020 02 23 SonoffSalleBain\" width=\"1080\" height=\"235\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_SonoffSalleBain.png 1080w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_SonoffSalleBain-600x131.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_SonoffSalleBain-300x65.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_SonoffSalleBain-1024x223.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_SonoffSalleBain-768x167.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<h2>Step 6: Configure rules<\/h2>\n<p>For this step, you can set your temperature values (25\u00b0c in example) or timer (1h=3600s in example)<\/p>\n<p><samp>the Probe#Temperature do<\/samp><br \/>\n<samp> if [Sonde#Temperature]&gt;25 do<\/samp><br \/>\n<samp> if [juice#juice]=1<\/samp><br \/>\n<samp> gpio,13.1<\/samp><br \/>\n<samp> gpio,12,0<\/samp><br \/>\n<samp> timerSet,1,0<\/samp><br \/>\n<samp> endif<\/samp><br \/>\n<samp> endif<\/samp><br \/>\n<samp>endon<\/samp><\/p>\n<p><samp>on button#button do<\/samp><br \/>\n<samp> if [button#button]=1<\/samp><br \/>\n<samp> gpio,12.1<\/samp><br \/>\n<samp> timerSet,1,3600<\/samp><br \/>\n<samp> else<\/samp><br \/>\n<samp> gpio,12,0<\/samp><br \/>\n<samp> timerSet,1,0<\/samp><br \/>\n<samp> endif<\/samp><br \/>\n<samp>endon<\/samp><\/p>\n<p><samp>we juice#jus do<\/samp><br \/>\n<samp> if [juice#juice]=1<\/samp><br \/>\n<samp> gpio,13,0<\/samp><br \/>\n<samp> timerSet,1,3600<\/samp><br \/>\n<samp> else<\/samp><br \/>\n<samp> gpio,13.1<\/samp><br \/>\n<samp> timerSet,1,0<\/samp><br \/>\n<samp> endif<\/samp><br \/>\n<samp>endon<\/samp><\/p>\n<p><samp>on System#Boot do<\/samp><br \/>\n<samp> gpio,12,0<\/samp><br \/>\n<samp> gpio,13.1<\/samp><br \/>\n<samp>endon<\/samp><\/p>\n<p><samp>On Rules#Timer=1 do <\/samp><br \/>\n<samp> gpio,13.1<\/samp><br \/>\n<samp> gpio,12,0<\/samp><br \/>\n<samp>endon<\/samp><\/p>\n<h2>Step 7: Configure Jeedom<\/h2>\n<p>In Jeedom, in the ESPEasy plugin, you can retrieve the temperature information, the status of your relay and add an on\/off command to control the relay.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-331\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_Espeasy_-_Jeedom1.png\" alt=\"Screenshot 2020 02 23 Espeasy Jeedom1\" width=\"797\" height=\"352\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_Espeasy_-_Jeedom1.png 797w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_Espeasy_-_Jeedom1-600x265.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_Espeasy_-_Jeedom1-300x132.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/02\/Screenshot_2020-02-23_Espeasy_-_Jeedom1-768x339.png 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/p>\n<h2>Operation completed<\/h2>\n<p>Use <a href=\"https:\/\/community.jeedom.com\/t\/tuto-domotiser-le-chauffage-de-sa-salle-de-bains\/18648\" target=\"_self\" rel=\"noopener noreferrer\">this discussion<\/a> for any request for precision, support or assistance:<\/p>\n<p><a href=\"https:\/\/community.jeedom.com\/t\/tuto-domotiser-le-chauffage-de-sa-salle-de-bains\/18648\">https:\/\/community.jeedom.com\/t\/tuto-domotiser-le-chauffage-de-sa-salle-de-bains\/18648<br \/>\n<\/a><\/p>\n<h2>Interesting links:<\/h2>\n<ul>\n<li>Seb's Tuto on <a href=\"https:\/\/domotic-hobby.com\/tutotial-1-thermostat-for-small-radiator\">https:\/\/domotic-hobby.com\/tutotial-1-thermostat-for-small-radiator<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Nota : une V2 de ce tuto a \u00e9t\u00e9 r\u00e9alis\u00e9 avec un Sonoff Basic R3 Objectifs : A moindre cout (dans les 10\u20ac) + le prix du chauffage (16\u20ac), j&rsquo;ai voulu domotiser le chauffage de la salle de bains pour : Pouvoir d\u00e9clencher (ou stopper) le chauffage via Jeedom (et donc commandable par Google Home, [&hellip;]<\/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-332","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\/332","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=332"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/332\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}