{"id":9977,"date":"2026-01-02T19:59:37","date_gmt":"2026-01-02T17:59:37","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=9977"},"modified":"2026-03-17T01:43:14","modified_gmt":"2026-03-16T23:43:14","slug":"une-couleur-pour-surveiller-sa-maison","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison","title":{"rendered":"A color to monitor your home"},"content":{"rendered":"<p>Once the house is domotised, the lights connected, the shutters detected and the door lock domotised, imagine a small light at the entrance that changes colour to indicate the security status of your house at a glance: Locks, shutters, windows, lights \u2026 All driven by Home Assistant and Zigbee. Validation 200% WAF certified.<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-6ae450c4dee78\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6ae450c4dee78\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%8E%AFObjectifs\" >\ud83c\udfafObjectives<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%9B%A0%EF%B8%8FEquipement_utilise\" >\ud83d\udee0 Equipment used<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%8E%A8Etats_et_couleurs\" >\ud83c\udfa8States and Colors<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%93%85Une_journee_typique\" >\ud83d\udcc5A typical day<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%E2%9A%99%EF%B8%8FAutomatisation\" >\u2699 Automation<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%92%A1Explications\" >\ud83d\udca1Explanations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%91%81%EF%B8%8FComment_elle_detecte_les_changements\" >\ud83d\udc41How does it detect changes?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%A7%A0Le_%C2%AB_cerveau_%C2%BB_mon_calcul_magique_des_couleurs\" >\ud83e\udde0The \u2018brain\u2019: My Magical Color Calculation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%E2%9C%A8Genial_non\" >\u2728G\u00e9nial isn't it?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%94%84Automatisation_V2\" >\ud83d\udd04Automation V2<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%8C%B8Jajoute_le_rose\" >\ud83c\udf38I add pink<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%8E%A8Nouveau_tableau_des_etats\" >\ud83c\udfa8New table of states<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%E2%9A%99%EF%B8%8FNouvelle_automatisation\" >\u2699 New Automation<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%F0%9F%93%B1Et_sur_le_Dashboard_de_Home_Assistant\" >\ud83d\udcf1And on the Home Assistant Dashboard?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/une-couleur-pour-surveiller-sa-maison\/#%E2%9C%85Conclusion\" >\u2705Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%8E%AFObjectifs\"><\/span>\ud83c\udfafObjectives<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create a simple and intuitive visual indicator at the entrance that reflects the overall state of the house. The objective is to know immediately if everything is safe before going out, or if a light has remained on when leaving. This avoids going back and forth to check each sensor individually, perfect for discreet and efficient home automation.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%9B%A0%EF%B8%8FEquipement_utilise\"><\/span><strong>\ud83d\udee0<\/strong>Equipment used<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To achieve this indicator, I use the Third Reality multifunction night light <a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/3rsnl02043z\/\" target=\"_blank\" rel=\"noopener\">3RSNL02043Z<\/a>, Zigbee wall socket compatible with Zigbee2MQTT. It changes colour (16 million shades), turns on day\/night, and plugs directly into a standard socket. I tested it in detail here. Paired with my coordinator <a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/nabu-casa-adaptateur-usb-zigbee-home-assistant-connect-zbt-2\/\" target=\"_blank\" rel=\"noopener\">ZBT-2<\/a>, it responds perfectly to Home Assistant automations.<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">Update March 2026: Some time after writing this page, Third Reality released a new product which is a night light, presence detector, brightness sensor, air quality monitor with RGB lighting. This is the\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/p1msr3a1-eu\/\" target=\"_blank\" rel=\"noopener\">P1MSR3A1-EU<\/a> which I reeled over on the article\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/en\/je-teste-le-capteur-presence-veilleuse-zigbee-r3-p1msr3a1-eu\/\" target=\"_blank\" rel=\"noopener\">I am testing the Zigbee R3 P1MSR3A1-EU Presence\/Window Sensor<\/a>. This equipment can achieve exactly the same as the\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/3rsnl02043z\/\" target=\"_blank\" rel=\"noopener\">3RSNL02043Z<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"border-collapse: collapse; border: none;\">\n<tbody>\n<tr>\n<td style=\"width: 50%; border: none; padding: 0;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-9621\" style=\"border: none;\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_175134-scaled.jpg\" alt=\"\" width=\"230\" height=\"307\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_175134-scaled.jpg 1920w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_175134-225x300.jpg 225w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_175134-768x1024.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_175134-1152x1536.jpg 1152w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_175134-1536x2048.jpg 1536w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_175134-600x800.jpg 600w\" sizes=\"auto, (max-width: 230px) 100vw, 230px\" \/><\/td>\n<td style=\"width: 50%; border: none; padding: 0;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-9617\" style=\"border: none;\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_174339-scaled.jpg\" alt=\"\" width=\"230\" height=\"307\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_174339-scaled.jpg 1920w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_174339-225x300.jpg 225w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_174339-768x1024.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_174339-1152x1536.jpg 1152w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_174339-1536x2048.jpg 1536w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/12\/20251231_174339-600x800.jpg 600w\" sizes=\"auto, (max-width: 230px) 100vw, 230px\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%8E%A8Etats_et_couleurs\"><\/span><strong>\ud83c\udfa8<\/strong>States and colours<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"6\">\n<thead>\n<tr>\n<th>Entrance door lock<\/th>\n<th>RDC\/Garage shutters<\/th>\n<th>Windows<\/th>\n<th>Lights<\/th>\n<th>Color RGB<\/th>\n<th>Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Closed<\/td>\n<td>All closed<\/td>\n<td>All closed<\/td>\n<td>&#8211;<\/td>\n<td>Green<\/td>\n<td>Total security<\/td>\n<\/tr>\n<tr>\n<td>Closed<\/td>\n<td>All closed<\/td>\n<td>At least one open<\/td>\n<td>&#8211;<\/td>\n<td>Green-blue<\/td>\n<td>Almost secure<\/td>\n<\/tr>\n<tr>\n<td>Closed<\/td>\n<td>At least one open<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td>Red<\/td>\n<td>Priority alert<\/td>\n<\/tr>\n<tr>\n<td>Open<\/td>\n<td>All closed<\/td>\n<td>&#8211;<\/td>\n<td>All extinct<\/td>\n<td>Yellow<\/td>\n<td>Ready to go<\/td>\n<\/tr>\n<tr>\n<td>Open<\/td>\n<td>All closed<\/td>\n<td>&#8211;<\/td>\n<td>At least one lit<\/td>\n<td>Orange<\/td>\n<td>Lights to be switched off<\/td>\n<\/tr>\n<tr>\n<td>Open<\/td>\n<td>At least one open<\/td>\n<td>All closed<\/td>\n<td>&#8211;<\/td>\n<td>White<\/td>\n<td>Normal housing<\/td>\n<\/tr>\n<tr>\n<td>Open<\/td>\n<td>At least one open<\/td>\n<td>At least one open<\/td>\n<td>&#8211;<\/td>\n<td>Light blue<\/td>\n<td>Normal dwelling with open window(s)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"%F0%9F%93%85Une_journee_typique\"><\/span><strong>\ud83d\udcc5<\/strong>A typical day<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In the morning, when the sun barely points, the house still sleeps: lock locked, shutters closed, everything is perfectly green, which gives me absolute security during the night.<\/p>\n<p>I get up, open a window to let fresh air in: instantly, the night light turns green-blue, a subtle wink that the interior breathes well, but that vigilance remains in order.<\/p>\n<p>To take the dog out, I unlock the front door \u2013 shutters always closed, lights off? It goes to serene yellow meaning \"ready to go for a walk\". A lamp is already lit, the bright orange tickles me: \u2018don\u2019t forget to switch off\u2019.<\/p>\n<p>The shutters on the ground floor open in daylight: if at least one window is open, refreshing light blue; if not pure white, the house wakes up fully, inhabited and alive.<\/p>\n<p>Before I go to work, I close shutters and garage: yellow if everything is turned off (\u2018perfect for locking\u2019), orange if a light hangs out (\u2018turn me off first!\u2019). The final lock on the front door lock brings back the tranquilising green.<\/p>\n<p>Dinner, dim lights, sleeping children \u2013 everything closes gradually, but the door remains open \u2192 yellow\/orange whispers \"locks before the night\". Click on the lock: if everything flawless, soothing green envelops the entrance; otherwise, streaky red screams forgetfulness of a shutter.<\/p>\n<p>The night light, a faithful green multicoloured sentinel, watches until the next dawn. Good night, see you tomorrow!<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E2%9A%99%EF%B8%8FAutomatisation\"><\/span><strong>\u2699<\/strong>Automation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">alias: Entrance guard - Full security description: Colors according to lock + shutters\/garage\/windows\/lights triggers: - trigger: state entity _id: lock.porte - trigger: state entity _id: - binary_sensor.petit_volet_de_la_salle_a_manger_contact - binary_sensor.volet_de_la_cuisine_contact - binary_sensor.grand_volet_de_la_salle_a_manger_contact - binary_sensor.porte_du_garage_contact - binary_sensor.fenetre_de_manon_contact - binary_sensor.fenetre_toilettes_du_bas_contact - binary_sensor.fenetre_de_coralie_contact - binary_sensor.fenetre_de_lambre_des_parents_contact -light.lumi\u00e8re_chambre_de_coralie -light.lumi\u00e8re_chambre_parents -light.lumi\u00e8re_couloir_etage -light.lumi\u00e8re_du_bureau - light.lumi\u00e8res_de_l_etage - light.lumi\u00e8res_de_la_cuisine - light.lumi\u00e8res_de_la_salle_a_manger - light.lumi\u00e8res_du_canap\u00e9 - light.lumi\u00e8res_du_dressing - light.lumi\u00e8res_du_salle_a_manger - light.lumi\u00e8res_du_canap\u00e9 - light.lumi\u00e8resdudressing - light.lumi\u00e8resdusalon conditions: [] actions: - target: entity_id: light.veilleuse _entree data: rgb _color: &gt; {% set lock_state = states('lock.porte') %} {% set vg _ok = [states('binary_sensor.petit_volet_de_la_salle_a_manger_contact'),states('binary_sensor.volet_de_la_cuisine_contact'),states('binary_sensor.grand_volet_de_la_salle_a_manger_contact'),states('binary_sensor.porte_du_garage _contact')] | select('eq','off') | list | count == 4 %} {% set f_ok = [states('binary_sensor.fenetre_de_manon_contact'),states('binary_sensor.fenetre_toilettes_du_bas_contact'),states('binary_sensor.fenetre_de_coralie_contact'),states('binary_sensor.fenetre_de_la_chambre_des_parents _contact')] | select('eq','off') | list | count == 4 %} {% set lights_off = [states('light.light_chambre_de _coralie'),states('light.light_chambre_parents'),states('light.light_chambre_de _manon'),states('light.light_couloir _etage'),states('light.light_du _bureau'),states('light.light_l _etage'),states('light.light_la _cuisine'),states('light.light_de _la _salle _a _manger'),states('light.light_du _canap\u00e9'),states('light.light_du _dressing'),states('light.light_du _salon')] _ select('eq','off') _ list | count == 11 %} {% if lock_state == 'locked' %} {% if vg _ok %} {% if f_ok %} [0.255.0] {% else %} [0.255,200] {% endif %} {% else %} [255.0,0] {% endif %} {% elif lock_state == 'unlocked' %} {% if vg _ok %} {% if lights _off %} [255,255,0] {% else %} [255,140,0] {% endif %} {% elif f_ok %} [255,255,255] {% else %} [119,159,235] {% endif %} {% else %} [255,255,255] {% endif %} service: light.turn_on mode: single\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%F0%9F%92%A1Explications\"><\/span><strong>\ud83d\udca1<\/strong>Explanations<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">This automation is my \u2018super guardian\u2019 in Home Assistant: I constantly observe several elements of my house (lock, shutters, windows, lights) and it changes the color of my little night light at the entrance to give me a clear visual summary, without me having to open an app or check everything one by one. It is like a tricolor fire for the safety of my home, which reacts in seconds to any change.<\/p>\n<h3 id=\"comment-elle-dtecte-les-changements\" class=\"mb-2 mt-4 font-display font-semimedium text-base first:mt-0 md:text-lg [hr+&amp;]:mt-4\"><span class=\"ez-toc-section\" id=\"%F0%9F%91%81%EF%B8%8FComment_elle_detecte_les_changements\"><\/span><strong>\ud83d\udc41<\/strong>How does it detect changes?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">Automation \u2018listens\u2019 to changes in the condition of 18 specific items in my house:<\/p>\n<ul class=\"marker:text-quiet list-disc\">\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">My front door lock (lock.door: locked or unlocked).<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">My 4 shutter sensors and garage (e.g. binary_sensor.petit_volet_de_la_salle_a_manger_contact \u2013 \u2018off\u2019 means closed).<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">My 4 window sensors (e.g. binary_sensor.fenetre_de_manon_contact \u2013 \u2018off\u2019 means closed).<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">My 11 lights (e.g. light.lumi\u00e8re_chambre_de_coralie \u2013 \u2018off\u2019 means off).<\/p>\n<\/li>\n<\/ul>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">As soon as one of these elements changes (I open a window, I turn on a lamp, etc.), the automation automatically wakes up and updates the colour of my night light (light.veilleuse _entree).<\/p>\n<h3 id=\"le-cerveau--mon-calcul-magique-des-couleurs\" class=\"mb-2 mt-4 font-display font-semimedium text-base first:mt-0 md:text-lg [hr+&amp;]:mt-4\"><span class=\"ez-toc-section\" id=\"%F0%9F%A7%A0Le_%C2%AB_cerveau_%C2%BB_mon_calcul_magique_des_couleurs\"><\/span><strong>\ud83e\udde0<\/strong>The \u2018brain\u2019: My Magical Color Calculation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">At the heart, there is a small program that makes three quick checks:<\/p>\n<ul class=\"marker:text-quiet list-disc\">\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\"><strong>Shutters\/Garage OK?<\/strong>\u00a0: Are all my 4 sensors \"off\" (closed)? It has: if exactly 4, this is true.<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\"><strong>Windows OK?<\/strong>\u00a0: Are all my 4 \"off\" (closed)? Account = 4 \u2192 true.<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\"><strong>Lights off?<\/strong>\u00a0: Are all my 11 \"off\"? Account = 11 \u2192 true.<\/p>\n<\/li>\n<\/ul>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">Then, depending on the state of my lock, he chooses the colour RGB (such as a code for green, red, etc.):<\/p>\n<ul class=\"marker:text-quiet list-disc\">\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\"><strong>Locked lock<\/strong>\u00a0:<\/p>\n<ul class=\"marker:text-quiet list-disc\">\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">Shutters\/Garage OK + Windows OK \u2192 Pure green: Everything is secure!<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">Shutters\/Garage OK but an open window \u2192 Blue-green: \u2018Nearly perfect, I am aerating.\u2019<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">An open shutter or garage \u2192 Red: Danger, I close it fast!<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\"><strong>Unlocked lock<\/strong>\u00a0:<\/p>\n<ul class=\"marker:text-quiet list-disc\">\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">Shutters\/Garage OK + All lights off \u2192 Yellow: Ready to lock and go.<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">Shutters\/Garage OK but a light on \u2192 Orange: \u2018I turn off the lights first!\u2019<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">Shutters\/Garage not OK but Windows OK \u2192 White: House inhabited normally.<\/p>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">Shutters\/Garage not OK + Open windows \u2192 Light blue: Living house with aeration.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li class=\"py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;&gt;p]:pt-0 [&amp;&gt;p]:mb-2 [&amp;&gt;p]:my-0\">\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">If other state \u2192 White by default.<\/p>\n<\/li>\n<\/ul>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">This color is sent via the service \"light.turn _on\" to light my night light with the exact shade.<\/p>\n<h3 id=\"pourquoi-cest-gnial-pour-moi\" class=\"mb-2 mt-4 font-display font-semimedium text-base first:mt-0 md:text-lg [hr+&amp;]:mt-4\"><span class=\"ez-toc-section\" id=\"%E2%9C%A8Genial_non\"><\/span><strong>\u2728<\/strong>Awesome, isn't it?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">No complicated conditions (everything works directly), ultra-responsive (instant updates), and easy to customize: I add my own sensors to the lists, I test the template in the \u2018Models\u2019 interface of Home Assistant. Result: my house that \"talks\" in colors, simple and wireless visible!<\/p>\n<p>Note: I did this in YAML directly because the graphical interface of the automations does not yet allow this to be done.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%94%84Automatisation_V2\"><\/span><strong>\ud83d\udd04<\/strong>Automation V2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"%F0%9F%8C%B8Jajoute_le_rose\"><\/span><strong>\ud83c\udf38<\/strong>I add the pink<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Red in the morning when opening the shutters on the ground floor is not suitable, there is no anomaly.<\/p>\n<p>So I put the pink on a time slot and kept the red in the evening.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%F0%9F%8E%A8Nouveau_tableau_des_etats\"><\/span><strong>\ud83c\udfa8<\/strong>New table of statements<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"6\">\n<thead>\n<tr>\n<th>Entrance door lock<\/th>\n<th>RDC\/Garage shutters<\/th>\n<th>Windows<\/th>\n<th>Lights<\/th>\n<th>Colour<\/th>\n<th>Schedules<\/th>\n<th>Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Closed<\/td>\n<td>All closed<\/td>\n<td>All closed<\/td>\n<td>&#8211;<\/td>\n<td>Green<\/td>\n<td><\/td>\n<td>Total security<\/td>\n<\/tr>\n<tr>\n<td>Closed<\/td>\n<td>All closed<\/td>\n<td>At least one open<\/td>\n<td>&#8211;<\/td>\n<td>Green-blue<\/td>\n<td><\/td>\n<td>Almost secure<\/td>\n<\/tr>\n<tr>\n<td>Closed<\/td>\n<td>At least one open<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td>Red<\/td>\n<td>20h-6h<\/td>\n<td>Priority alert<\/td>\n<\/tr>\n<tr>\n<td>Closed<\/td>\n<td>At least one open<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td>Rose<\/td>\n<td>6 a.m. - 8 p.m.<\/td>\n<td>Lifted<\/td>\n<\/tr>\n<tr>\n<td>Open<\/td>\n<td>All closed<\/td>\n<td>&#8211;<\/td>\n<td>All extinct<\/td>\n<td>Yellow<\/td>\n<td><\/td>\n<td>Ready to go<\/td>\n<\/tr>\n<tr>\n<td>Open<\/td>\n<td>All closed<\/td>\n<td>&#8211;<\/td>\n<td>At least one lit<\/td>\n<td>Orange<\/td>\n<td><\/td>\n<td>Lights to be switched off<\/td>\n<\/tr>\n<tr>\n<td>Open<\/td>\n<td>At least one open<\/td>\n<td>All closed<\/td>\n<td>&#8211;<\/td>\n<td>White<\/td>\n<td><\/td>\n<td>Normal housing<\/td>\n<\/tr>\n<tr>\n<td>Open<\/td>\n<td>At least one open<\/td>\n<td>At least one open<\/td>\n<td>&#8211;<\/td>\n<td>Light blue<\/td>\n<td><\/td>\n<td>Normal dwelling with open window(s)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"%E2%9A%99%EF%B8%8FNouvelle_automatisation\"><\/span><strong>\u2699<\/strong>New automation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">alias: Entrance guard - Full security description: Colors according to lock + shutters\/garage\/windows\/lights triggers: - trigger: state entity _id: lock.porte - trigger: state entity _id: - binary_sensor.petit_volet_de_la_salle_a_manger_contact - binary_sensor.volet_de_la_cuisine_contact - binary_sensor.grand_volet_de_la_salle_a_manger_contact - binary_sensor.porte_du_garage_contact - binary_sensor.fenetre_de_manon_contact - binary_sensor.fenetre_toilettes_du_bas_contact - binary_sensor.fenetre_de_coralie_contact - binary_sensor.fenetre_de_lambre_des_parents_contact -light.lumi\u00e8re_chambre_de_coralie -light.lumi\u00e8re_chambre_parents -light.lumi\u00e8re_couloir_etage -light.lumi\u00e8re_du_bureau - light.lumi\u00e8res_de_l_etage - light.lumi\u00e8res_de_la_cuisine - light.lumi\u00e8res_de_la_salle_a_manger - light.lumi\u00e8res_du_canap\u00e9 - light.lumi\u00e8res_du_dressing - light.lumi\u00e8res_du_salle_a_manger - light.lumi\u00e8res_du_canap\u00e9 - light.lumi\u00e8resdudressing - light.lumi\u00e8resdusalon conditions: [] actions: - target: entity_id: light.veilleuse _entree data: rgb _color: &gt; {% set lock_state = states('lock.porte') %} {% set hour = now().hour %} {% set night = hour &gt;= 20 or hour &lt; 6%} {% set vg _ok = [states('binary_sensor.petit_volet_de_la_salle_a_manger_contact'),states('binary_sensor.volet_de_la_cuisine_contact'),states('binary_sensor.grand_volet_de_la_salle_a_manger_contact'),states('binary_sensor.porte_du_garage _contact')] | select('eq','off') | list | count == 4 %} {% set f_ok = [states('binary_sensor.fenetre_de_manon_contact'),states('binary_sensor.fenetre_toilettes_du_bas_contact'),states('binary_sensor.fenetre_de_coralie_contact'),states('binary_sensor.fenetre_de_la_chambre_des_parents _contact')] | select('eq','off') | list | count == 4 %} {% set lights_off = [states('light.light_chambre_de _coralie'),states('light.light_chambre_parents'),states('light.light_chambre_de _manon'),states('light.light_couloir _etage'),states('light.light_du _bureau'),states('light.light_l _etage'),states('light.light_la _cuisine'),states('light.light_de _la _salle _a _manger'),states('light.light_du _canap\u00e9'),states('light.light_du _dressing'),states('light.light_du _salon')] _ select('eq','off') _ list | count == 11 %} {% if lock_state == 'locked' %} {% if vg _ok %} {% if f_ok %} [0.255.0] {% else %} [0.255,200] {% endif %} {% else %} {% if night %} [255.0,0] {% else %} [255,104,235] {% endif %} {% endif %} {% elif lock_state == 'unlocked' %} {% if vg _ok %} {% if lights _off %} [255,255,0] {% else %} [255,140,0] {% endif %} {% elif f_ok %} [255,255,255] {% else %} [119,159,235] {% endif %} {% else %} [255,255,255] {% endif %} action: light.turn_on mode: single\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%93%B1Et_sur_le_Dashboard_de_Home_Assistant\"><\/span><strong>\ud83d\udcf1<\/strong>What about the Home Assistant Dashboard?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Yes, I use this colour of light.veilleuse _entere in an icon on my Dashboard, the information is also useful on this screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9991\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/veilleuse.gif\" alt=\"\" width=\"317\" height=\"214\" \/><\/p>\n<p>The map is embedded in a picture-elements map on the main page of my dashboard. To integrate the tile card, I used the combination I had documented in the tutorial:\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/en\/des-cartes-ne-sintegrent-pas-dans-une-carte-picture-elements\/\" target=\"_blank\" rel=\"noopener\">Cards do not fit into a picture-elements card<\/a><\/p>\n<p>I added a _mod card to make the card transparent and superimposed it on the image of the plan of my house.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">Type: picture-elements image: \/local\/house\/1920x1000\/transparent.png elements: - type: custom:mod-card card: Type: tile entity: light.veilleuse _entree icon: mdi:home-circle-outline show _entity _picture: false hide _state: true vertical: false features_position: bottom name: \"\\_\" style: top: 75% left: 26.5% card_mod: style: | :host { --ha-card-background: transparent!important; --ha-card-box-shadow: none; }<\/pre>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E2%9C%85Conclusion\"><\/span><strong>\u2705<\/strong>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">This night light\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/3rsnl02043z\/\" target=\"_blank\" rel=\"noopener\">3RSNL02043Z<\/a> transforms the input into an instant visual dashboard, driven by Home Assistant and Zigbee for intuitive day-to-day security.<span class=\"inline-flex\" aria-label=\"I would like to write an article to explain what I want to do on my blog. Write an article on this format: Introduction without title Objectives: xxx Equipment to achieve this: here explain that I will use a multifunctional night light T... ...monitor-multifunction-third-reality-3rsnl02043z) States and colours: here make a table like the summary table made previously Explain well a day from sunrise to bedtime and the colours Automation: give the code Conclusion\" data-state=\"closed\">\u200b<\/span><\/p>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">No need to consult the app or dashboard: a simple glance at the soothing green confirms that everything is locked, or the urgent red alerts a forgotten shutter.<\/p>\n<p class=\"my-2 [&amp;+p]:mt-4 [&amp;_strong:has(+br)]:inline-block [&amp;_strong:has(+br)]:pb-2\">Simple to deploy, scalable with new sensors, it embodies discreet and efficient home automation, <strong>200% WAF<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>Once the house is domotised, the lights connected, the shutters detected and the door lock domotised, imagine a small light at the entrance that changes colour to indicate the security status of your house at a glance: Locks, shutters, windows, lights \u2026 All driven by Home Assistant and Zigbee. [\u2026]<\/p>","protected":false},"author":1,"featured_media":10410,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,53,166],"tags":[],"class_list":["post-9977","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotique","category-home-assistant","category-retex"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/9977","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=9977"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/9977\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media\/10410"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=9977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=9977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=9977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}