Page 1 of 1

Connecting devices to a pi without passwords

Posted: Fri Nov 13, 2015 10:58 pm
by gmidwood
Hi,

I have a vision.. and that vision is for a pi-controlled home automation system, controlled and monitored from any location using your mobile phone or a web browser. I'll skim over the gory details to keep the question focussed, but please feel free to pm me to ask any questions or if you would like to get involved :D

The system would involve a master device (this will be a pi) and multiple connected devices - these could be anything from light switches and power sockets to hifi's, thermostats, washing machines and fridges. You'll be able to control the devices using a web/mobile app (my background is in web development so I'm very comfortable with this part of the project) and trigger 'actions' on the devices, either to start instantly or on a schedule.

My plan is to open source the project code, provide code frameworks, and to encourage anyone and everyone to create their own devices - I'll provide the app to control and schedule, a standard for communication and some code to get you started - you can do the fun stuff! I'd love to build a community around this and get it into schools (my wife is a teacher, so who knows!) and Universities, but I'm not getting carried away just yet, one step a time... :)

So, my question:

The problem I'm currently facing is pinning down the best method to connect the devices together. Here's my very rough spec:
  • simple connection between master and device. I want non-techies to be able to set this up, you shouldn't need to log in or enter passwords anywhere. My best guess right now is having a button (WPS perhaps?) to push-and-connect but I'm very interested in any ideas, so please do throw some out there! (even better if you can help me set them up :D)
  • strong connection across the home. I think this rules out bluetooth as an option
  • devices shouldn't be able to accidentally connect to the wrong network (i.e. your neighbours master device)
  • the master should maintain a list of connected devices
  • the master should be able to send commands to connected devices
I look forward to any suggestions or feedback, and as I mentioned earlier I would be very happy to get together a team to help build this. I'd really like to make this work, but I can't do it on my own :)

Thanks

Gareth

Re: Connecting devices to a pi without passwords

Posted: Sat Nov 14, 2015 12:17 am
by DougieLawson
I think most of what you're planning is already part of MQTT and available to install as Mosquitto or RabbitMQ.

Re: Connecting devices to a pi without passwords

Posted: Sat Nov 14, 2015 7:02 am
by fruit-uk
gmidwood wrote:I have a vision.. and that vision is for a pi-controlled home automation system, controlled and monitored from any location using your mobile phone or a web browser. I'll skim over the gory details to keep the question focussed, but please feel free to pm me to ask any questions or if you would like to get involved
A bit like http://fhem.de or many other similar HA applications?