Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Home assistant


Published on

How to simplify your home automation :)

Published in: Engineering
  • Be the first to comment

Home assistant

  1. 1. Who am I? ● Chief System Architect of ● I teach Network Security and Linux System Administration
  2. 2. ● Why am I talking about ?
  3. 3. ● DEMO
  4. 4. ● I was showing off my interface upgrades in the office
  5. 5. ● Told me about a software he had been using at home, that: – connects all of his switches – connects all of his video cameras – have motion detection – have vacation mode – have modules for everything he uses
  6. 6. ● I was like... – OK I have interface for my lighting and heating – I have ZoneMinder for video.. – I DON'T have a nice interface... and my phone experience was NON-EXISTENT ● So I MUST check this out :)
  7. 7. ● Welcome to Home Assistant:
  8. 8. Installation Install Hassbian on your Rapsberry Pi 3 Install Home Assistant in your home directory
  9. 9. home folder setup $ pip3 install homeassistant $ hass --open-ui ● Home Assistent runs in Python VirtualEnv
  10. 10. Hassbian http://hassbian.local:8123/ /home/homeassistant/.homeassistant/ configuration.yaml YUP its YAML configuration file
  11. 11. homeassistant: # Name of the location where Home Assistant is running name: Sara # Location required to calculate the time the sun rises and sets latitude: 00.00 longitude: 00.00 # Impacts weather/sunrise data (altitude above sea level in meters) elevation: 542 # metric for Metric, imperial for Imperial unit_system: metric time_zone: Europe/Sofia frontend: http: updater: discovery: # Enables support for tracking state changes over time. history: logbook:
  12. 12. Let me show you MY additional configuration :)
  13. 13. # Track the sun sun: sensor: # Weather Prediction - platform: yr # house temperatures - platform: command_line name: Kitchen temp command: curl -s 2>&1|awk '{gsub(/C/,"",$2);print $2}' unit_of_measurement: "°C" # Text to speech tts: platform: google light: - platform: lifx broadcast: media_player: - platform: kodi name: Bedroom host: - platform: kodi name: Livingroom host:
  14. 14. switch: platform: command_line switches: kitchen_light: friendly_name: Kitchen command_on: curl command_off: curl kitchen_table: friendly_name: Kitchen table command_on: curl command_off: curl livingroom_walls: friendly_name: Livingroom walls command_on: curl command_off: curl livingroom_table: friendly_name: Livingroom table command_on: curl command_off: curl stairs: friendly_name: Stairs command_on: curl command_off: curl
  15. 15. heating: friendly_name: Heating command_on: curl command_off: curl command_state: curl -q | grep -q on underfloor_pump: friendly_name: Heating underfloor pump command_on: curl command_off: curl command_state: curl -q | grep -q on
  16. 16. Management ● systemd shit... – when restarted via the web interface, with broken config, systemd does not detect that :( ● some helpful commands: – systemctl reset-failed home- assistant@homeassistant.service – systemctl stop home-assistant@homeassistant.service – systemctl start home-assistant@homeassistant.service
  17. 17. Management - via web
  18. 18. Management - via web
  19. 19. Management - via web
  20. 20. ● Grouping switches and/or lights ● Triggering actions, based on sensors ● Scheduling actions
  21. 21. Problems ● Almost everything requires a state – the state takes too much time to be verified(if at all possible) ● There is no button functionality ● The kodi component has extremely basic functionality ● Broken configuration crashes the hass daemon ● No native app for phone or tablet
  22. 22. ● I'm currently – adding powered window blinds – moving the video cameras to HA – adding more temperature sensors – adding the water heating controls
  23. 23. Thank yoU!