Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

home automation

Hi guys,

I have a question about my project that I want to start. It's about home automation, I will not give every deatail here about my project, but i want some advice from you guys. What programming language would be the best, for programming home automation. Like making an app where I can have access to turn the light on and off, turn the tv on and off from my phone. Do I need to make my own app for that. Do i have to call an eletrician to do the all that stuff with the cables? If someone know the basics what I need for make a home automation, like apps, which programming language, electric.. Please guys, I need a really good answer. Thank you very much!

3 Answers

Zachary Kaufman
Zachary Kaufman
1,463 Points

I can't be certain but I believe both Python and Java have good libraries for that. Also, Treehouse just released their first API video and it might be useful for what you're looking for. I personally would go the Python route for this project. If I remember correctly the first Python video in Python basics talks about who Python can listen for voice commands which is nice for home automation. It is also fairly easy to learn. What type of phone do you have? Going into the mobile realm brings up all types of other roadblocks. iPhones especially are very particular about the apps allowed and it may not be possible to get a Java or Python app on there. I am sure there are applications out there to help but overall it is easiest to use Objective C or Swift with an iPhone. Java on the other hand is what makes Android apps so maybe you can do your whole home automation in Java. I am not sure how much it is used for the type of project you are describing but it is an essential when making an Android app. I also seem to notice that it is easier for beginners to learn Python compared to Java (for me it certainly was). If I were you, I'd check out the API course from Treehouse. It may not help you in your project but it is based around Amazon's Alexa (I think that is the name) and you can see what language Alexa uses. Whatever language Alexa uses I have to image can be used for home animation. I hope this helps!

Peter Quin
Peter Quin
3,203 Points

A friend of mine set up a home automation system, programmed in javascript running on node.js. Sensor system for automatic lights with wifi so no cabling needed and linked to an app he wrote in JS, to remote-control. If I can get some more details I'll post them tomorrow.

Thanks guys,

Ok, let me know.