Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use the Pi for standalone home automation.

As such, the Pi must boot up automatically and run a Java program.

I am running Debian Wheezy hardfloat.

I have little Linux experience, what is the best way of doing this?

Also, how safe is the sd card if the power supply fails?

What is the best way to shutdown safely?

share|improve this question
Your last question is answered here. Also, your question seems to be composed of three different problems - how to run java application on RaspberryPi (answered here), how to run application at bootup (answered here) and if it's safe for SD card to turn device off. Am I missing something? – Krzysztof Adamski Oct 15 '12 at 10:58

Z-Wave looks like a good choice now, and there are many ways to use it with Pi. Everyone is building some Z-Wave enabled device so you can now interface almost anything in your home. It's something like an enhanced wireless version of good old X10. Protocol can be found here, devices can be Pi controlled via USB sticks, and you can make your own devices if you need to (modules can be bought for example on Digikey, but chip is not open design).

Here are some Raspberry Pi examples:

X10 upgrade project example is here.

share|improve this answer
Got another link for the protocol available? :) Your link is broken. – Dave Feb 8 '13 at 15:14
It seams that site is dead for some time. You can browse it's old version here: web.archive.org/web/20120716054304/http://www.digiwave.dk/en/…. Links with more Z-Wave info: code.google.com/p/open-zwave, github.com/ekarak/Thrift4OZW, razberry.zwave.me/hardware.php – avra Feb 12 '13 at 11:17
thanks, I will check them out. – Dave Feb 13 '13 at 6:00

I am working exactly on that ! Had the same question, could not find a good answer, so I made my own Java API (called Hans Java API), which makes it very use for a Java application to implement home automation using FS20, HMS and FHT based devices - you can see more details here: www.paulo-lima.org/hans

share|improve this answer

To run an application at boot-time, you can use crontab. Add a line like:

@reboot pi java /home/pi/myapp.jar

This will run the command java /home/pi/myapp.jar at reboot as the user pi.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.