{"id":875,"date":"2020-10-19T20:39:33","date_gmt":"2020-10-19T18:39:33","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/?p=875"},"modified":"2025-05-09T10:49:37","modified_gmt":"2025-05-09T08:49:37","slug":"domotiser-sa-boite-aux-lettres-2-0","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-boite-aux-lettres-2-0","title":{"rendered":"Domotizing your mailbox 2.0"},"content":{"rendered":"<figure class=\"wp-block-table\">\n    <table class=\"has-fixed-layout\" style=\"border-collapse: collapse; border: none;\">\n        <tbody>\n            <tr>\n                <td style=\"border: none;\">\n                    <figure>\n                        <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-902\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.1.png\" alt=\"Picture 1\" width=\"101\" height=\"101\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.1.png 256w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.1-100x100.png 100w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.1-150x150.png 150w\" sizes=\"auto, (max-width: 101px) 100vw, 101px\" \/>\n                    <\/figure>\n                <\/td>\n                <td style=\"border: none;\">\n                    <figure>\n                        <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-901\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.0.png\" alt=\"Picture 2\" width=\"101\" height=\"101\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.0.png 256w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.0-100x100.png 100w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.0-150x150.png 150w\" sizes=\"auto, (max-width: 101px) 100vw, 101px\" \/>\n                    <\/figure>\n                <\/td>\n            <\/tr>\n        <\/tbody>\n    <\/table>\n<\/figure>\n\n\n\n<!--more-->\n\n\n\n<h1 class=\"wp-block-heading\">The end of \"Domotizing your mailbox\" 1.0<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Like some of you, I had a domotised mailbox that dates back a few years. I had been using the excellent DS12A that had been running at 433Mhz, reliably for years, powered by two easy-to-find AAA batteries. This device allowed, in addition to a magnet (contact), also to recover a dry contact from the opening of the letter slot.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This device is now disassembled. To meet a small nostalgic need of more than 8 years of good and loyal services, here are in tribute, the photos of the disassembly. I delete the tutorial from version 1.0 of my blog.<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"169\" height=\"300\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-1-169x300.jpg\" alt=\"Dismantling 1\" class=\"wp-image-876\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-1-169x300.jpg 169w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-1-600x1067.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-1-576x1024.jpg 576w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-1-768x1365.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-1-864x1536.jpg 864w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-1.jpg 1134w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/>\n<\/figure>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"169\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-2-300x169.jpg\" alt=\"Dismantling 2\" class=\"wp-image-877\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-2-300x169.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-2-600x338.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-2-1024x576.jpg 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-2-768x432.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-2-1536x864.jpg 1536w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-2.jpg 2016w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\n<\/figure>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"169\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-3-300x169.jpg\" alt=\"Dismantling 3\" class=\"wp-image-878\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-3-300x169.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-3-600x338.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-3-1024x576.jpg 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-3-768x432.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-3-1536x864.jpg 1536w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal1-3.jpg 2016w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\n<\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Principle of 2.0<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, the detection of the opening of the slot is proving increasingly unnecessary, with the factor using in 90% cases at home the opening of the door. There are fewer and fewer letters, sometimes small parcels, often Chinese \ud83d\ude09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So I decided to only detect the front door (factor side) and the back door (house side).<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Materials<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">I used what works best at home, two Xiaomi door\/window opening detectors.<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal2-1-150x150.jpg\" alt=\"Xiaomi 1 detector\" class=\"wp-image-880\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal2-1-150x150.jpg 150w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal2-1-300x300.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal2-1-100x100.jpg 100w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/>\n<\/figure>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal2-2-150x150.jpg\" alt=\"Xiaomi 2 detector\" class=\"wp-image-881\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal2-2-150x150.jpg 150w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal2-2-300x300.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/bal2-2-100x100.jpg 100w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/>\n<\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Configuring Sensors in the Xiaomi Plugin<\/h1>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/xiaomihome_icon-150x150.png\" alt=\"Xiaomi Plugin\" class=\"wp-image-883\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/xiaomihome_icon-150x150.png 150w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/xiaomihome_icon-300x300.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/xiaomihome_icon-100x100.png 100w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nothing is simpler, we add the two sensors in the Xiaomi plugin.<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"130\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/pluginxiaomi-150x130.png\" alt=\"Configuration Plugin Xiaomi\" class=\"wp-image-882\"\/>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I only use the \u2018open\u2019 info command. When \u2018Open\u2019 is 0, the mailbox is closed, when it is 1, the door is opened.<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"510\" height=\"49\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/ouverture.png\" alt=\"Order Opening\" class=\"wp-image-884\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/ouverture.png 510w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/ouverture-300x29.png 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/>\n<\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Use of a Mail Widget<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">I created a small homemade Widget v4. Note that I use a little trick to put my images to myself and not the ones provided by default.<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"304\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/widgetducourrier2.png\" alt=\"Widget Courier\" class=\"wp-image-899\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/widgetducourrier2.png 792w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/widgetducourrier2-600x230.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/widgetducourrier2-300x115.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/widgetducourrier2-768x295.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the two images used:<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"256\" height=\"256\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.0.png\" alt=\"Image Widget 1\" class=\"wp-image-901\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.0.png 256w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.0-100x100.png 100w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.0-150x150.png 150w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/>\n<\/figure>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"256\" height=\"256\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.1.png\" alt=\"Image Widget 2\" class=\"wp-image-902\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.1.png 256w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.1-100x100.png 100w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/978.1-150x150.png 150w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/>\n<\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Use of a Virtual Mail<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">In the Virtual plugin, I added a simple virtual one with a mail info command corresponding to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n    <li>0 = No mail<\/li>\n    <li>1 = Mail<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"375\" height=\"159\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/virtuelducourrier.png\" alt=\"Virtual Mail\" class=\"wp-image-888\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/virtuelducourrier.png 375w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/virtuelducourrier-300x127.png 300w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/>\n<\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Use of scenarios<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">We can do everything in the same scenario, but to simplify, I make one per sensor:<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"184\" height=\"111\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrier.png\" alt=\"Mail Scenarios\" class=\"wp-image-890\"\/>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Triggering scenarios<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">They are triggered when a door is opened.<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"128\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierf1.png\" alt=\"Trigger Scenario 1\" class=\"wp-image-892\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierf1.png 790w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierf1-600x97.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierf1-300x49.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierf1-768x124.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/>\n<\/figure>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"132\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierm1.png\" alt=\"Trigger Scenario 2\" class=\"wp-image-893\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierm1.png 846w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierm1-600x94.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierm1-300x47.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierm1-768x120.png 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Scenario actions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When the postman opens the door on his side, it sends a message to all Alexa devices and switches the Virtual \"Mail\" to 1.<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"124\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierf2.png\" alt=\"Action Scenario 1\" class=\"wp-image-894\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierf2.png 630w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierf2-600x118.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierf2-300x59.png 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then, when you open the door on the house side to pick up the mail, it returns the virtual \"the Courier\" to 0.<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"418\" height=\"58\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierm2.png\" alt=\"Action Scenario 2\" class=\"wp-image-895\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierm2.png 418w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/scenariosducourrierm2-300x42.png 300w\" sizes=\"auto, (max-width: 418px) 100vw, 418px\" \/>\n<\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Design info display in the kitchen<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">To this end, the \"Mail\" command is added to the Design.<\/p>\n\n\n\n<figure class=\"wp-block-image\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"118\" height=\"120\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2020\/10\/design2.png\" alt=\"Kitchen Design\" class=\"wp-image-903\"\/>\n<\/figure>","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-875","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\/875","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=875"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/875\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}