Control a wide range of IoT devices using Python on Raspberry Pi, iOS, and Android
Home Assistant automates homes with rules such as “turn on the porch lights when the sun sets”, etc.
At https://demo.home-assistant.io Home Assistant presents a clickable dashboard such as:
- Demo of Home Assistant integration with Google Assistant by Paulus Schoutsen
Home Assistant consists of custom Python 3 scripts running on a Raspberry Pi machine board powered by HassOS (instead of Raspian) operating system. Hass is Docker-based, so one-click update is available.
- Cheaper SD cards degrade over time.
- Upgrade processing power by running on Intel NUC (Next Unit of Computing) mini PCs (models i3/5/7/9) at several hundred dollars on Amazon.
Unlike Samsung’s SmartThings Hub and other cloud-based services, Home Assistant does not send data out to the internet. So you have total data privacy and less lag while watching Netflix, perhaps in a home on wheels.
- “Presence detection is a big input … There’s a lot of things that you don’t want to happen if you’re not at home” [13:10] in No Privacy Compromise Home Automation Jun 9, 2017 by Jupiter Broadcasting. “Wi-Fi router can detect your location”
Home Assistant uses the MQTT protocol and supports over 1,400 devices – just about every type of Smart Home device from Google Home, Alexa, Apple HomeKit, Nest, Ecobee, Z-Wave, Hue, Lifx, Belkin WeMo, IKEA Trådfri, Sonos, etc.
- HomeBridge to integrate with Apple HomeKit.
- To communicate with Z-Wave devices, plug in a USB stick that talks that protocol.
- Lifx responds with status, where Phillips devices need to be polled.
Most IOT projects that use the ESP8266 or ESP32 can be tied into this system as easily as connecting to Adafruit.io, IFTTT, or Samsung Smart Hub.
But Home Assistant’s Smart Home Hub also eliminates the (annoying) need to installing multiple apps to control devices.
Paulus Schoutsen https://www.youtube.com/watch?v=Cfasc9EgbMU at Pycon 2016
Install on Raspberry Pi
Home Assistant is not “plug-and-play” software.
Review my article IoT Raspberry Install
Download from https://www.home-assistant.io/hassio/installation the latest version, such as:
Instead of going to https://www.balena.io/etcher
brew install --cask balenaetcher
- Burn 64GB chip using Etcher.
- Power up the Pi.
Getting Started with Home Assistant Part 7 Customising the UI by Hive Mind Automation
HomeAssitant Dashboard Creation by misperry using the Lovelace UI: https://www.youtube.com/watch?v=QEtX0uboxQA
Use JupyterLab to analyze your data at https://data.home-assistant.io/docs/quick_start_index using https://github.com/home-assistant/home-assistant-notebooks
https://uriotnews.com/iot-around-the-house-sensors-mongodb-and-rest-api-on-the-onesait-platform-part-2/ from Spain https://github.com/onesaitplatform
ioBroker, but its available only in Germany!
More on IoT
This is one of a series on IoT:
IoT Acronymns and Abbreviations on Quizlet
- IoT Apprentice school curriculum
- IoT use cases
- IoT reminders prevent dead mobile battery
- IoT text to speech synthesis
- IoT AWS button
- Intel IoT
- IoT Raspberry hardware
- IoT Clouds
- Samsung IoT Cloud
NOTE: Pages about GE’s Predix have been removed.