<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Massimiliano Massaro on Medium]]></title>
        <description><![CDATA[Stories by Massimiliano Massaro on Medium]]></description>
        <link>https://medium.com/@massimiliano024?source=rss-94fc20b7c8c5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p_Pj-Z_Ssm4oi9DtdgFWEQ.jpeg</url>
            <title>Stories by Massimiliano Massaro on Medium</title>
            <link>https://medium.com/@massimiliano024?source=rss-94fc20b7c8c5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:28:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@massimiliano024/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I left Google Photos and I took my photos back]]></title>
            <link>https://medium.com/@massimiliano024/i-left-google-photos-and-i-took-my-photos-back-2decfa86b5b0?source=rss-94fc20b7c8c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2decfa86b5b0</guid>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Massimiliano Massaro]]></dc:creator>
            <pubDate>Fri, 20 Mar 2026 15:05:14 GMT</pubDate>
            <atom:updated>2026-03-20T15:05:14.227Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I migrated years of memories to Immich and finally felt like I owned my memories again</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CLzTTDurJZG1oZSOaP0QLw.jpeg" /><figcaption>This image was generated with Gemini (ironic, I know)</figcaption></figure><p>I have ~80GB of photos and videos on my Google Photos account. Years and years of memories, neatly organised by an algorithm I didn’t write, stored on servers I’ll never see, owned by a company whose business model is built on knowing everything about me.</p><p>For a long time, I told myself this was fine. The app was good. The search was magic. I didn’t have to worry about backups.<br>Convenience, I decided, was worth the trade-off. And I trusted them <a href="https://www.reddit.com/r/degoogle/comments/1g5uepg/dont_be_evil_was_a_lie_from_the_start_google/">not to be evil</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*gWjP9ZQaII4IMPbr" /></figure><p>Then Google changed the deal.</p><h3>The last straw</h3><p>In 2021, Google ended its “free unlimited storage” offer for photos. Suddenly, the 15GB free tier was shared across Gmail, Drive, and Photos — and my library was already at capacity. I got the email telling me I’d need to upgrade to Google One. It wasn’t even that much money. €3/month for 100GB. So I just paid for it. Then the realization came.</p><p>I was paying rent on my own memories.</p><p>Around the same time, I started paying more attention to what Google actually does with your photos. The company’s privacy policy is vague by design. <a href="https://www.washingtonpost.com/technology/2026/01/27/google-personal-intelligence-privacy/">Photos are used to “improve” services</a>. Faces are recognized and stored. Location data is extracted from every image.</p><p>I kept putting it off again and again because of convenience.<br>Besides, for this to work I had two very basic requirements:</p><ul><li>good GUI for media access</li><li>reliable server and backup strategy of all files</li></ul><p>Then at some point I realized I had everything I needed.<br>I already had a NAS for other purposes with a good backup strategy. What I needed was just the right software.</p><h3>Enter Immich</h3><p><a href="https://immich.app/">Immich</a> is a self-hosted photo and video backup solution. <br>It’s open-source, actively developed, and has a great user interface. <br>It has timeline browsing, face recognition, album sharing, mobile apps for iOS and Android, automatic backup, and a map view that shows where your photos were taken.</p><p>The difference is that you will own your data and run it locally on your machine.</p><h3>Requirements</h3><p><strong>A machine to run it on</strong> <br>This could be a Synology or QNAP NAS, an old PC or Mac Mini you repurpose, or a cheap VPS if you’re comfortable with cloud servers.<br>I run mine on a small NAS with two drives in RAID 1 — total cost was around €300 (but I use this system for <strong>many</strong> other purposes).</p><p><strong>Enough storage</strong><br>Calculate your current Google Photos library size and double it (at least). Immich stores originals without re-encoding them (unless you want to), so what you had on Google is roughly what you’ll need here.</p><p><strong>A way to access it remotely<br></strong>For backup from your phone to work outside your home network, you’ll want to expose Immich to the internet. The safest way to do this is through a reverse proxy like Caddy or Nginx Proxy Manager, ideally with a domain name and HTTPS. <br>Alternatively, Cloudflare Tunnel lets you do this without opening any ports on your router.</p><h3>The migration</h3><h3>Step 1: export everything from google</h3><p>Go to <a href="https://takeout.google.com/">takeout.google.com</a> and request an export of your Google Photos data. Deselect everything except Photos. Choose your preferred file format (depending on spacing you might have to download split files) and wait. For a large library, this can take anywhere from a few hours to a couple of days. You’ll get an email when the download links are ready.</p><p>A word of warning: <strong>download these immediately </strong>as soon as they’re ready<strong>.</strong> Google only keeps the export available for a week.<br>So if you’re planning to do this over the weekend (as I did) remember to request the takeout on Friday.<br>Also, depending on your internet connection speed, download may take a while.</p><h3>Step 2: unzip and upload</h3><p>Google’s takeout format is a bit messy. You’ll find folders organized by album name and year, and each photo will be accompanied by a .json sidecar file containing metadata, timestamps, location, description. These JSON files are important. They&#39;re the only way to preserve the original capture dates on your photos, since Google sometimes strips EXIF data.</p><p>Don’t worry too much though. Immich’s importer handles these Google Takeout JSON files natively, so you don’t need to pre-process them manually. Just keep the folder structure intact.</p><h3>Step 3: install Immich</h3><p>Follow the official Immich documentation at <a href="https://docs.immich.app/overview/quick-start/">immich.app/docs</a>.</p><p>Within a few minutes, Immich will be running.<br>Create your admin account, then your user account, and you&#39;re in.</p><h3>Step 4: import your library</h3><p>Immich has a built-in tool specifically for Google Takeout imports. In the web interface, go to <strong>Administration &gt; Libraries</strong> and create an external library pointing at your exported photo folder on the server’s filesystem. It will scan everything, read the JSON sidecars, restore timestamps, and index all your files.</p><p>For all of my media, the import took about 8 hours.<br>I left it running overnight. The next morning, my entire library was there — organized by date, faces recognized, locations mapped.</p><h3>Step 5: set up the mobile app</h3><p>Install the Immich app on your phone (iOS and Android). Point it at your server address, log in, and enable automatic backup. From that point on, every new photo you take backs up to your Immich server — just like it used to back up to Google.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*b4RNOA4rYDA9Mug4kSotaw.jpeg" /></figure><h3>The drawbacks</h3><p><strong>You’re responsible for backups.</strong> Google had data centers and redundancy. Now you do. This is not optional. A self-hosted solution with no backup strategy is worse than Google.<br>In my case I’m working with a RAID1 setup on my NAS, an external storage backup located away from the main server and also a cloud backup.<br>I know, you might think: “cloud backup? Isn’t the whole point not to have your data on the cloud?”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*F-1R5G-0PipuQzK5MsASig.jpeg" /></figure><p>And you’re right, that’s why I encrypt my backup.<br>Also keep in mind a cloud backup is not mandatory. I do this for peace of mind but if you implement a good 3–2–1 backup strategy you’re good to go.</p><p><strong>No pet recognition (yet). </strong>Immich can detect faces and it does a great job doing it. But unfortunately the same doesn’t happen for pets. Google Photos would tag pictures with my dog in it so I could look them up easily. I have to tag them manually on an album on Immich.<br>I know, this might be a non-problem for some people but it’s a real drawback for me. That said, Immich is open source. So nothing is stopping you (or me for that matter) from implementing something to “fix” this.</p><p><strong>Google’s search is still better.</strong> You can type “dog wearing hat” into Google Photos and it’ll find exactly that. Immich’s search has improved dramatically and now supports natural language queries via machine learning, but it doesn’t quite match Google’s years of training on billions of images.</p><h3>The benefits</h3><p>I gained my own photos back. No one is scanning them. No one is training a model on my pictures. No algorithm is deciding which ones to showcase to sell me something.</p><p>I’m also going to save money long term. I was paying €30/year for 100GB on Google One, and I was already bumping into the ceiling.<br>Now I just pay for the electricity of the server and my backup setup. That’s it. No more subscriptions.</p><h3>Should you do this?</h3><p>As with everything, it depends.</p><p>If you want zero maintenance, advanced sharing, and the AI search, Google Photos is still genuinely good software. After all, it’s the convenience of Google Photos that kept me from moving away for so long.</p><p>But if you’ve ever felt uneasy about what Google does with your photos — or if the creeping storage fees have started to sting — Immich is ready. It’s not a hobbyist project you have to nurse along. It’s a polished, actively developed application that happens to run on your hardware.</p><p>The migration took me a weekend. But now I’ve taken my photos back.</p><p><em>Immich is free and open-source. You can find it at </em><a href="https://immich.app/"><em>immich.app</em></a><em> or on </em><a href="https://github.com/immich-app/immich"><em>GitHub</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2decfa86b5b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remote Control from the Void: Managing Your Smart Home Without an Internet connection]]></title>
            <link>https://medium.com/@massimiliano024/remote-control-from-the-void-managing-your-smart-home-without-an-internet-connection-85ab5ad1a4dd?source=rss-94fc20b7c8c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/85ab5ad1a4dd</guid>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[off-grid]]></category>
            <category><![CDATA[home-assistant]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Massimiliano Massaro]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 14:10:00 GMT</pubDate>
            <atom:updated>2026-03-04T14:10:00.500Z</atom:updated>
            <content:encoded><![CDATA[<h3>Remote Control from the Void: Control your Home Assistant Without an Internet Connection</h3><p>Build an off-grid control channel for Home Assistant using Meshtastic for when internet and cellular networks fail</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uFkfN5M1IxdvgVErIp4MTQ.jpeg" /><figcaption>This image is AI generated</figcaption></figure><h3>The Problem: remote control requires a network connection</h3><p>I have a Home Assistant instance in my home which lets me control and manage sensors, lights, shutters and so much more.<br>Most of those devices are controlled locally (with a few unfortunate exceptions), meaning if I’m home I can still control them even if internet is down.</p><p>I also have installed a UPS on the most important devices (machine where Home Assistant runs, router, …) so even if the power goes out I can still control things like the alarm system.</p><p>I was pretty satisfied with my current setup with a single exception:</p><blockquote><em>When I’m away, both I and my home need an internet connection for remote control to work.</em></blockquote><h3>The Solution: SIM fallback?</h3><p>I was curious how people handled this problem. After all I could not have been the first one to think about this.<br>Most people just buy a SIM with a data plan and set their smart home system so it uses the SIM network connection as fallback if the main network is down.</p><p>This works and should be pretty reliable. After all, what’s the chance both the main network and the SIM network are down at the same time?</p><p>My main problems with this solution are:<br>- SIMs with data plans are expensive. I rarely have connectivity issues and I really don’t want to pay yet another subscription for a service I don’t use<br>- Although unlikely if the SIM network is also down you’re back to the original problem</p><blockquote>What I really needed wasn’t another internet connection.<br>It was a completely different communication channel.</blockquote><h3>Enter Meshtastic</h3><p>Meshtastic is an open-source, decentralised mesh network system that uses LoRa (Long Range) radio to transmit data over long distances without needing an internet connection.<br><a href="https://meshtastic.org/">https://meshtastic.org/</a></p><p>Unlike Wi-Fi or cellular networks, LoRa radios communicate directly with each other over long distances using very little power.<br>Messages hop between nearby nodes, forming a decentralised mesh that continues working even when traditional infrastructure is unavailable.<br>The more people you have on Meshtastic the better range you have over the network itself.<br>Have a look at a map of active Meshtastic devices all over the world:<br><a href="https://meshmap.net/">https://meshmap.net/</a></p><p>Meshtastic per se does not have a standard use case and most people use it as a disaster-proof messaging service.<br>But I believe one of its perfect use cases is exactly linking it to a Home Assistant instance.</p><h3>Let’s setup a Meshtastic Home Assistant bridge</h3><p>My idea was to set up a Meshtastic device in my home that could control Home Assistant through its APIs so I could message this specific device over the Meshtastic open network and give it commands to handle things such as my lights, alarm system, …</p><h3>Architecture overview</h3><figure><img alt="Phone &gt; Meshtastic mobile node &gt; Meshtastic mesh &gt; Meshtastic home node &gt; Home Assistant" src="https://cdn-images-1.medium.com/max/347/1*AxMPW8nyBb7Eld3lI47rIg.png" /></figure><h3>Hardware I used</h3><p>For this to work you need at least 3 devices.</p><p><strong>Home device<br></strong>This node lives inside your home and connects directly to Home Assistant.<br>I chose an <strong>Heltec v3 </strong>but any <a href="https://meshtastic.org/docs/hardware/devices/">Meshtastic compatible device</a> works.<br>I also suggest adding a battery backup to this node so if the power goes out it will still be turned on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/166/1*ehLm8RRvfefLdLdz9awp4Q.png" /><figcaption>Heltec V3 in a 3D printed case</figcaption></figure><p><strong>Raspberry Pi Zero (or similar)<br></strong>You will connect this to the meshtastic device and this will be the actual device making the API calls to Home Assistant. Any device which can connect to your network works here as long as it has an extra USB port where you can connect the Meshtastic device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*YM_5FZxkxKFYkJjreWn3zA.png" /><figcaption>Raspberry Pi Zero W</figcaption></figure><p><strong>Handheld Meshtastic node<br></strong>This will instead be the device you will bring with you when you go outside and the device you use to control your Home Assistant devices with.<br>Again you can use any <a href="https://meshtastic.org/docs/hardware/devices/">Meshtastic supported devices</a> but you will definitely need a battery here.<br>I have used a <strong>Heltec nrf t114 </strong>for its low power usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/202/1*PfxYPdEL4Bfp_fTZtechKQ.png" /><figcaption>Heltec nrf t114 in a 3D printed case</figcaption></figure><p><strong>Extra nodes<br></strong>To further improve the Meshtastic range you might want to add additional devices in good locations (e.g. on a balcony or terrace) so you can extend the range by hundreds or thousands of meters depending on environment conditions.<br>To know more: <a href="https://www.reddit.com/r/meshtastic/comments/1jb7x0u/what_is_point_of_solar_base_node/?utm_source=share&amp;utm_medium=web3x&amp;utm_name=web3xcss&amp;utm_term=1&amp;utm_content=share_button">https://www.reddit.com/r/meshtastic/comments/1jb7x0u/what_is_point_of_solar_base_node/</a></p><h3>The result</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N-1OpDnJE3oOGsi3Rzw3pw.jpeg" /></figure><h3>The drawbacks</h3><p>Of course there are drawbacks to this implementation.</p><p>The main one is if you don’t have a stable and reliable Meshtastic network around your home you will be the one to set this up and you may not have a great range.<br>For this I suggest looking up local Meshtastic communities: for Italy <a href="https://www.loraitalia.it/">https://www.loraitalia.it/</a>. This way you can talk to other people who use Meshtastic and try to build an improved network around your home area.</p><p>Another one is security. Although Meshtastic provides E2E encryption you’re still adding a new remote control channel into your smart home eco system. So security should be considered carefully when choosing which devices you want to control over the mesh network.</p><h3>Remember: local control first!</h3><p>In order for all of this to work your devices must be managed locally.<br>You can control your home lights if they’re connected through Zigbee/Z-wave/Thread or any local communication protocol but if they require a cloud connection to work then you’re out of luck. If the network is down then the cloud API will be unreachable.</p><p>Also as a rule of thumb always buy devices that can be controlled locally. This way you own your device the same way you own your smart home. <br>If the device needs a network connection to work you’re not really the owner. You’re just renting it.</p><p>Read more about this here:<br><a href="https://www.androidauthority.com/offline-smart-home-3398608/">https://www.androidauthority.com/offline-smart-home-3398608/</a></p><h3>Repository</h3><p>You can find the code on my repository:<br><a href="https://github.com/andriensis/homeassistant-meshtastic-bridge/">https://github.com/andriensis/homeassistant-meshtastic-bridge/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85ab5ad1a4dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Long-Range Smart Mailbox with LoRa and Home Assistant]]></title>
            <link>https://medium.com/@massimiliano024/building-a-long-range-smart-mailbox-with-lora-and-home-assistant-e373f8253f5d?source=rss-94fc20b7c8c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e373f8253f5d</guid>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[home-assistant]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[lora]]></category>
            <dc:creator><![CDATA[Massimiliano Massaro]]></dc:creator>
            <pubDate>Fri, 27 Feb 2026 13:27:25 GMT</pubDate>
            <atom:updated>2026-02-27T15:18:35.340Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Long-Range Smart Mailbox Sensor with LoRa and Home Assistant</h3><p><em>A DIY low-power LoRa sensor that reliably notifies me when new mail arrives. Without Wi-Fi, cloud services, or subscriptions.</em></p><figure><img alt="AI generated image showing a mailbox with an IoT device inside and another device with an antenna on top of it linked together wirelessly" src="https://cdn-images-1.medium.com/max/1024/1*ivJ76TruGoNqJzpzyQoZXQ.jpeg" /></figure><h3>The Problem: Smart Homes Stop at the Front Door</h3><p>There’s entire weeks (sometimes even months) where I don’t get physical mail at all. Most of my invoices are sent digitally. So I often just forget to check my mail and I thought to myself: it would be great to get a notification whenever there’s new mail to pick up. <br>But here comes the problem.</p><p>Smart home ecosystems are great, until your devices are too far away and you cannot run cables to them.</p><p>My mailbox sits far from my apartment. Not “bad Wi-Fi coverage” far — <strong>completely unreachable</strong> by traditional smart home protocols: Wi-Fi, Zigbee, Thread, Z-wave.</p><p>What I needed was really simple:</p><blockquote>Get a notification the moment my mailbox is opened.</blockquote><p>And there are already comercially available solutions for this exact problem.<br><a href="https://lora-alliance.org/about-lorawan/">LoRaWAN</a> is a great example. It uses LoRa which is an open standard for IoT for low-power long-range devices. <strong>But </strong>as it turns out it’s quite expensive.<br>A good LoRaWAN gateway + contact/motion sensor setup would easily cost ~€200. I think that’s a bit too much for a simple mailbox sensor.</p><p>So I asked myself: why not use devices I already own to try and create a custom solution to my problem.</p><p>That’s where this project based on LoRa comes in.</p><h3>Why LoRa?</h3><p>As briefly explained earlier LoRa is the perfect solution for this use case. <br>It’s a radio modulation protocol used to communicate between devices with benefits such as:<br>- Great range (hundres of meters to several kilometers depending on environment)<br>- Low power consumption<br>- Great for communication through obstacles (walls, trees, buildings, …)</p><p><strong>LoRa</strong> is the physical application of this low-power long-range protocol. <strong>LoRaWAN</strong> builds a network architecture on top of <strong>LoRa</strong> with some benefits such as encryption, gateway to server communication (instead of P2P).<br>You can read more about the differences between LoRa and LoRaWAN here: <a href="https://www.mokosmart.com/lora-and-lorawan/">https://www.mokosmart.com/lora-and-lorawan/</a></p><p>LoRaWAN was just too expensive for my use case. And I also didn’t really need advanced encryption (the mail box being opened is not really a sensitive information).<br>So I created my own LoRa network and implementation.</p><h3>System Architecture</h3><p>The overall architecture is intentionally simple. It consists of only two devices.</p><p><strong>LoRa Gateway (inside the apartment):<br></strong>This will always be powered on and listen for LoRa packets coming from the mailbox sensor.<br>We will run a <strong>ESPHome</strong> instance on this to forward events to my Home Assistant instance so I can create automations based on the status of the sensor.</p><p><strong>Mailbox Sensor<br></strong>This device will instead be battery powered as I cannot run cables directly inside my mailbox. We’ll use a low-power device for this, connect it to a reed contact sensor and use deep sleep in between contact changes to preserve battery.<br>The purpose of this device is really easy: listen for contact change and when that happens send a LoRa packet.<br>Because it sleeps most of the time the battery life on 2x 18650 batteries should last months and possibly years.</p><p>No cloud, no polling.<br>Everything is local and can be managed without power (by adding a battery backup on the gateway too) and without an internet connection.</p><h3>Hardware choices</h3><p><strong>LoRa gateway<br></strong>You can use any LoRa device here. I had some spare <strong>Heltec v2</strong> device and I used that. You might look into newer versions such as Heltec v4 (for better range) but for my case it worked flawlessly.</p><p><strong>Mailbox sensor<br></strong>We need long lasting battery life here. I don’t wanna change/charge the batteries frequently for this device (or I might as well just check the mailbox myself).<br>For best battery life, devices based on the <strong>nRF52840</strong> chip are strongly recommended.<strong><br></strong>This chip is great for its ultra-low power consumption.<br>I used an <strong>Heltec t114 </strong>and soldered a cheap reed contact sensor bought from AliExpress. <br>I’ve used 2x 18650 batteries as power source because they have a great capacity and they’re easy to swap when the device runs out of battery.</p><blockquote>Make sure to check LoRa regulations in your country. Since I live in Italy, EU regulations apply, so my devices operate on the 868 MHz band.<br>You can check what frequency you should use based on your country here: <a href="https://meshtastic.org/docs/configuration/region-by-country/">https://meshtastic.org/docs/configuration/region-by-country/</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*OhyouzOOmc8nXXdC-_n-Nw.jpeg" /><figcaption>The mailbox sensor installed in my mailbox</figcaption></figure><h3>Real world performance</h3><p>I have been testing this setup for a few months now.<br>The battery on the contact sensor doesn’t seem to have dropped at all (reading might be a bit flaky) so I’m expecting the battery to last at least a full year.</p><p>I have not missed a single mailbox sensor change.</p><p>The gateway is placed in my living room and I would estimate the distance to the mailbox to be around 50 meters with many obstacles in between (neighbours, concrete walls, the mailbox itself is a metal cage).</p><h3>What’s still missing</h3><p>Right now when the contact sensor battery dies I will have no clue. <br>Whenever the mailbox is opened the sensor sends its telemetry data (battery voltage, estimated percentage) but this is an estimation and also I might not get mail for a long time and meanwhile the battery dies.</p><p>One improvement I explored was adding an RTC chip to wake up the device every 24 hours or so to send telemetry data. This would be a great addition but the RTC chip I used didn’t seem to be behaving consistently so I let this idea go but might be a great future improvement.</p><h3>Final thoughts</h3><p>This is not just about your mailbox sensor. <br>You could use LoRa to control any distant devices around your home such as: garage sensor, environment, gardening.</p><p>You don’t need to run cables everywhere but can just use cheap devices to make some dumb objects smarter.<br>Sometimes the best smart home upgrade might just be to build your own device and choosing the correct communication layer.</p><h3>Repository</h3><p>You can find the code and some more technical information on my repository:</p><p><a href="https://github.com/andriensis/ha-lora-mailbox-sensor">https://github.com/andriensis/ha-lora-mailbox-sensor</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e373f8253f5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>