Yannick Weiss

Home Assistant

Home Assistant

New try, June 2017

Pros: + It works

Negs: - Emulating Hue adds “all switches” and other virtual devices to amazon alexa, without me having configured such behaviour. - Emulating Hue does not support percentage for dimmers?

Installing hassbian got a lot easier. To install Z-Wave use the built in cmd hassbian-config

sudo hassbian-config install openzwave

https://home-assistant.io/hassio/installation/

Home Assistant Node.js library Common Tasks

Copy paste

sudo su -s /bin/bash homeassistant
nano /home/homeassistant/.homeassistant/configuration.yaml

I had to setup the broadlink with the offical app, but from there I could learn the codes with HA. I could not configure a static IP for it, which makes it an unreliable network participant.

IR Infrared Codes for Logitech Speaker System Z906

Protocol: NEC1 
Device: 2 
SubDevice: 160 

Func.  OBC  HEX  EFC 
Power: 128  FE   189 
Input: 8    EF   053 
Mute:  234  A8   079 
Level: 10   AF   055 
Plus:  170  AA   095 
Effect:14   8F   054 
Minus: 106  A9   071 

Input1 4    DF   180 
Input2 130  BE   191 
Input3 12   CF   052 
Input4 140  CE   060 
Input5 2    BF   183 
AUX    66   BD   167 

Amazon Alexa

I am integrating the Alexa over an emulated hue, because this is one of the easier way. (Amazon should really offer something like this themself.)

Also there is an offline voice service called snips

Old setup, written on (15.1.2017)

Home Assistant requires a lot of IT knowledge and patience, but it gives you complete power over the devices and automation. If you are a developer you will love it.

You don’t really need much hardware, just a Raspberry Pi, and some sensor for onto the GPIO pins. I did buy the offical Pi NoIR v2 Camera. So I can, for example, take a picture if the motion sensor triggers, and send it over IFTTT to my phone.

I also got some Fibaro Motion sensors to track the temperature and check how often I go to the toilet each night. Just being able to measure things gives new insight. 😁

I did run into a few issues:

  • My Z-Wave USB stick was not supported, make sure yours is. z-wave-controllers
  • My Fibaro push button did not work with current open-zwave version.
  • My Fibaro Motion Sensor did not accept the negative temperature offset.
  • You have to wake up each z-wave sensor once for home assistant to recognize them fully

Getting Z-Wave to work is really hard, especially if the devices were just recently released.

For more there is a tutorial series on youtube. BRUH Automation
And this tutorial was very solid How to: Create a Z-Wave Smart Home hub using a Raspberry Pi
Poor mans heating solution with Home Assistant: Building a better Thermostat

Tipps

  • Split the configuration from the start. Tutorial
  • Disable the LEDs on any Z-Wave device (in the configuration UI), it is so annoying.

Z-Wave configuration UI

sudo systemctl stop home-assistant.service
cd /srv/homeassistant/src/open-zwave-control-panel/
sudo ./ozwcp -p 8888
sudo systemctl start home-assistant.service

Z-Wave USB stick uses /dev/ttyACM0, but don’t check the USB checkbox.

Working with Home Assistant

Change to homeassistant user sudo su -s /bin/bash homeassistant
Change to virtual enviroment source /srv/homeassistant/homeassistant_venv/bin/activate

Update HA: pip3 install --upgrade homeassistant
Check config: hass --script check_config
Restart: sudo systemctl restart home-assistant.service