Adding my home electricity uptime to status.href.cat

https://news.ycombinator.com/rss Hits: 6
Summary

status.href.cat now reports and notifies me if my home power/internet goes down! The other day, PG&E and my landlord emailed me about a power outage. The elevator system needed a technician to reset it. All the e-key readers in the lobby no longer work. This got me wondering, how long was the power out for? With this, I decided to add uptime stats for my home electricity. PG&E emailed about the power outage. 10 minutes later, my power was restored. My landlord emailed, reporting all the things that they checked and are failing My first thought was, how can I check if my home power is out? I have some IoT devices around the house connected to the Wi-Fi. If the power goes out, these devices would go offline, right? Unfortunately, it was a big waste of time; the “last connected” timestamps from the Wyze API are from almost 20 hours ago. I guess Wyze devices are incredibly passive, which doesn’t solve my problem. My Eero app says my router is powered on and connected to the internet. There must be an API powering this, right? Then I realized my Eero router has an app that tells me if my router is online and connected to the internet! I found a repo on Github, reproduced the requests in CURL by eyeballing the code, and built an n8n workflow in 10 minutes. So much automation in my life boils down to looping over “run a CURL command” and then “run some logic”. It’s nice to be able to focus on those core issues instead of all the boilerplate. Now that I can reliably see my power availability, how should I store this information? Naively, I could add a block that emails/texts me when power is unavailable, but I’d also notify myself every minute that power is out. I wanted to know when my power first went offline and came back online. Showing historical data would be ideal. Then I realized I could use my uptime dashboard! I added a webhook for my small piece of code, and now my uptime dashboard checks every 5 minutes, including history and stats. Tada! My uptime dashboard now...

First seen: 2025-08-21 16:17

Last seen: 2025-08-21 22:32