An app that controls and monitors my home and my life.
Now supports controlling my Magic Mirror also:
The app uses my backend https://awesomeopensource.com/project/jakkra/OneBackendToRuleThemAll, which is hosted on Heroku. You can run your own server instance, in that case you need to edit the url in the constants file.
The app consists of four parts:
Without Philips Hue and/or some kind of data source in your home, it is only an app that does reminders.
My current implementation lets you control your Hue lights from outside of your network from any device, using the backend.
So to have full functionality you want some kind of data source (temperatures and motion detection). I have a Raspberry Pi with two connected thermometers and a PIR motion sensor (infrared) which supply my backend with data via a simple Python script.
Firstly install React Native: https://facebook.github.io/react-native/docs/getting-started.html#content
git clone https://github.com/jakkra/OneAppToRuleThemAll.git cd OneAppToRuleThemAll npm install react-native run-android
This server can control your lights from outside of your home network. This is not officially supported yet by Philips (it's coming). So since I'm using the unofficial Philips Hue Remote API, it requires some configuration. For full description look at http://blog.paulshi.me/technical/2013/11/27/Philips-Hue-Remote-API-Explained.html
On your phone:
www.meethue.com/en-US/api/gettoken?devicename=iPhone+5&appid=hueapp&deviceid=**BRIDGEID**and log in.
React-Native didn't have any bridge for Androids Geo Fences, so I'm using IFTTT to automatically update the server if I'm at home or not. Otherwise you must do it manually or the server will send you motion detection notifications which was falsely triggered by you.
You can do this on multiple phones, if you aren't alone in your household.
The token attribute can be found in the app under Settings, there you can copy it to the clipboard.
This project is licensed under the MIT License - see the LICENSE file for details