All posts by admin

Trying to build a detector for if the garage is open

Using the Raspberry Pi and the Z-Wave.Me USB Stick and a garage detector from Vision ZG8101

 

  1. Download the raspbian jessie lite 2016-09-23. Apparently after this one can not SSH into a fresh installed raspbian installation. I guess it is safe, but then you need to connect a keyboard and display. Not a wise decision IMHO.
  2.  Using Win32Diskimager creating drive for the Raspi
  3. SSH into the raspi using putty if you are on Windows
  4. Do not change the password !! That will bring us into an endless crash circle… Believe me, I have been there.
  5. download the latest updates with sudo apt-get update && sudo apt-get  upgrade -y
  6. sudo raspi-config to change the time zone and location to whatever suits you.
  7. Since there is a new kernel we sudo reboot and login again. If you are using putty click on the top left corner and use Restart session.
  8. We’ll try the all in one installer,
    wget -Nnv https://raw.githubusercontent.com/home-assistant/fabric-home-assistant/master/hass_rpi_installer.sh && bash hass_rpi_installer.sh

    when the installation crashes we need to do

  9. rm -rf fabric-home-assistant
  10. sudo apt-get install libffi-dev libssl-dev
  11. sudo pip install cryptography –force-reinstall
  12. and then we try again
  13. wget -Nnv https://raw.githubusercontent.com/home-assistant/fabric-home-assistant/master/hass_rpi_installer.sh && bash hass_rpi_installer.sh
  14. again reboot, this is not working

Lets try with docker instead.

Install a jessie-lite

Then we get docker

  1. curl -sSL get.docker.com | sh

    setup auto start

  2. sudo systemctl enable docker
  3. sudo systemctl start docker
  4. sudo usermod -aG docker pi

    docker run -d –name=”home-assistant” -v /home/pi/docker/config:/config -v /etc/localtime:/etc/localtime:ro –net=host homeassistant/home-assistant