The Invincible A personal archive of software, founder life, travel, and the occasional detour.
Randoms

Smart Home – The Beginning

This isn’t a tutorial on how to build your own smart home. But more of how i built mine.

There are lots of different tutorials out there, using different chips, platforms, different software, etc. The hardest part at the beginning was to select which platforms to go with, and which hardware and software to use. I did not wanted to buy a ready made smart home software, due to there price, restricted use of only there supported products, and most of that, its simply not my thing 🙂

So i decided to build my own system. Which can support different platforms. But i did not wanted to build something from scratch ( that would be stupid rite? sometimes ) So i spent most of my free time researching of hardware and software i can use. and finally came up with the following.

Phase 1 Target

My target for Phase 1 is to automate my room first. When i wake up, I want my curtains to be open automatically. Turn off any night lights if On. ( Bonus: Switch on an Audio device and Start playing some music while reading my daily calendar or other news items which i can pre program )

In the evening when its getting dark, close the Curtains and switch on the lights. Additionally, I should be able to control the lights and night lights anytime i want.

Hardware and Software

Central Controller – Homebridge ( Running on Raspberry Pi )
The main reason to pick this one is its born compatibility to be used with Apple Homekit, which i think is the easiest way to control any and everything in a single app + you get the voice command features through Siri. Homebridge can simply run on an Raspberry Pi or any other similar hardware.

 

Wireless Modules – NodeMCU ESP8266
This means the end points, Lights, Switches, Sensors ( Phase 2 ) and every other outlet. I wanted them to be wireless, Less in size and less in cost.
Since the homebridge can be used with any other already existing hardware endpoints, i could have simply bought them and used, but then where’s the fun in that ?
The Winner of my research was this little module. It’s small in size and has built in wifi. It’s just a matter of few lines of code to get it working and few more lines of code to make it work through URL’s. just what i was looking for.

 

So at the time of writing this, I’ve already ran a homebridge server and programmed a NodeMCU.  it seems these two can accomplish what i want to do in Phase 1.

 

Related

More posts like this

Not Using AI Is a Choice, No more excuses

Frontier AI companies like OpenAI and Anthropic are competing hard, while open source models are catching up fast. This competition is driving costs down. The price per 1M tokens keeps dropping, which means you can do a lot more for a lot less. So the old excuse of 'I don't have the budget to use AI in my business' is quickly disappearing.

Read more
Day 5 of 31: Connections and Caffeine

The first Monday of the new year always feels like a reset button. For our service company, yesterday marked the official restart, and as expected, it was a busy one. The day was filled with catch-ups, follow-ups, and lots of reconnecting with clients who had patiently waited for us to get back into full swing.

Read more
Day 4 of 31: When the Day Slips Off Track

Some Sundays move at their own slow pace, and yesterday was one of them. I went into the weekend feeling excited to refactor a piece of code that’s been bothering me for weeks. But by Sunday evening, the work was still unfinished and instead of accepting that, I spent way too much time complaining to

Read more