LarisHome

My own smart home ecosystem.

About

The idea came from the fact that I used to come home late from school and always forgot to turn off the light when I went to bed. And I didn't have enough strength to get up and turn off the light. So I bought an ESP-8266, a 230V relay and an Arduino and started programming. My main goal was to control the light from outside the house without a cloud server, so I started a TOR server on my home NAS server. The next step was to create an Android app that would connect to this server and allow me to control all my devices from my phone. Unfortunately, due to lack of time, I did not complete this project, but the TOR connection works.

How it works?

The core of all is NAS server where I have runned Apache and TOR server. Android app allows to manage all rooms and devices, this app also supports multi users.

Creating new room and room list

Source code of Android app you can find here and PHP Backend here.

What I learned?

MQTT Protocol


Creating TOR relay


Creating PHP Backend using SLIM


ROOM, Retrofit and EventBus Android Library


JSON


JWT