maghix
Posts: 1
Joined: Sat Mar 07, 2020 3:04 am

Raspberry Pi Simple Home Automation - From Scratch

Sat Mar 07, 2020 3:11 am

Hello,

I am looking for a way where I can create home automation software from scratch, mostly for coding practice. I looked online and there seems to be a lot of already-built software that offers what I need, however, I would really like to program this from scratch to work on my programming skills.

I have experience with Java, Python, and C. Can someone please point me towards a guide or library that I can use to start implementing this? My goal is to use the USB port to power a desk light-strip using my iPhone's Home application.

Thank you in advance!

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspberry Pi Simple Home Automation - From Scratch

Sat Mar 07, 2020 8:16 am

Welcome to the Raspberry Pi forums.

maghix wrote:
Sat Mar 07, 2020 3:11 am
Hello,

I am looking for a way where I can create home automation software from scratch, mostly for coding practice. I looked online and there seems to be a lot of already-built software that offers what I need, however, I would really like to program this from scratch to work on my programming skills.

I have experience with Java, Python, and C. Can someone please point me towards a guide or library that I can use to start implementing this? My goal is to use the USB port to power a desk light-strip using my iPhone's Home application.

Thank you in advance!



Not specifically about Home Automation, but this Raspberry Pi material about Physical Computing might give you a useful start at dealing with the inputs and outputs available on your RPi board - https://projects.raspberrypi.org/en/pro ... -computing

User avatar
neilgl
Posts: 2111
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: Raspberry Pi Simple Home Automation - From Scratch

Sat Mar 07, 2020 9:08 am

Ah, that Apple Home app uses Apple Homekit Protocol, so take a look at that https://developer.apple.com/support/hom ... -protocol/. (Needs Apple id). Some others have used node.js and "homebridge" on the pi, but as you want to code from scratch, that might just be useful for testing/comparison purposes, not to use it.

User avatar
pi-anazazi
Posts: 716
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Re: Raspberry Pi Simple Home Automation - From Scratch

Sat Mar 07, 2020 12:06 pm

It's perl but speaks Apple trash (and dozens of other protocols): FHEM. Can be run on pi 1 to pi 4 (some use zeros for the start...)
Kind regards

anazazi

boyoh
Posts: 1468
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: Raspberry Pi Simple Home Automation - From Scratch

Sat Mar 07, 2020 1:21 pm

maghix wrote:
Sat Mar 07, 2020 3:11 am
Hello,

I am looking for a way where I can create home automation software from scratch, mostly for coding practice. I looked online and there seems to be a lot of already-built software that offers what I need, however, I would really like to program this from scratch to work on my programming skills.

I have experience with Java, Python, and C. Can someone please point me towards a guide or library that I can use to start implementing this? My goal is to use the USB port to power a desk light-strip using my iPhone's Home application.

Thank you in advance!
From BoyOH
Yes learn all the coding you want , but don't ignore the hardware side , You can only writ code for something if you know how it works


My advice is learn coding in parallel with electronics.
Regards BoyOh.
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

Return to “Beginners”