Blog
Using USB webcams with Home Assistant
In this blog post I am using a Fedora 24 (will most likely work on other distributions too) installation with Home Assistant 0.22.1 on a Foxconn nT-330i with an old Logitech QuickCam Orbit AF
0.22: Pandora, BT Home Hub 5 and local file camera.
It’s time for the 0.22 release. This was a pretty rough release cycle and we had to issue two hot fixes for our core improvements. But it seems now that all is good and a lot of people have reported that their installs are faster than ever and the occasional quirks no longer occur.
We are aware that our new web stack has caused issues installing Home Assistant on ARM-based platforms. This sadly includes the Raspberry Pi and Synology NAS systems. We’re working on getting to a better solution. For Raspberry Pi, the All-in-One installer will take care of everything for you. We’re working on updating our standalone Raspberry Pi installation guide.
There are two cool things that I want to highlight in this release. The first is Pandora support. This is based on the CLI player called pianobar. This means that your machine running Home Assistant can be connected to the speakers and provide your house with tunes.
Another cool addition is the local file camera. This seems very basic at first but will allow you to generate a graph with your favorite 3rd party graphing tool and display it on your Home Assistant dashboard. We’re looking forward to see what you can do with this!
- Media Player: Pandora media player now supported (@partofthething
) - Device Tracker: BT Home Hub 5 now supported (@lwis
) - Camera: New local file platform shows any image as camera (@Landrash
) - Add Sonos snapshot and restore services (@dansullivan86
) - Device Tracker: AsusWRT in Access Point mode now supported (@linjef
) - Device Tracker: AsusWRT login using public key now supported (@mtreinish
) - Device Tracker: AsusWRT protocol to use is now auto detected (@persandstrom
) - Camera: Netatmo now supported (@jabesq
) - API documentation added in Swagger.yaml format
(@wind-rider ) - Media Player: Cast devices can now be stopped (@michaelarnauts
) - MySensors: IR switch device and service now supported (@MartinHjelmare
) - Bloomsky: Voltage sensor now supported (@arsaboo
) - Sensor: New Plex sensor monitors friends streaming from your Plex server (@nkgilley
) - Component shell command can now use templates to render arguments (@partofthething
) - Rollershutter: Wink is now supported (@philk
) - Alexa: Updated documentation to show how to call scripts and scenes (@acockburn)
- Sensor: SNMP is now supported (@fabaff
) - Sensor: Support for Swiss hydrological data (@fabaff
)
Breaking change
- The new Netatmo support caused us to change how Netatmo are configured. It’s now done via its own component.
netatmo:
api_key: API_KEY
secret_key: SECRET_KEY
username: username
password: password
Hotfix 0.22.1 - June 20
- Insteon Hub lights will load again
Home Assistant at PyCon 2016
It’s been already almost two weeks ago that a few of the Home Assistant developers headed towards Portland for PyCon 2016
Couple of Home Assistant devs. Left to right: [Paulus (@balloob)], [Alex (@infamy)], [Ryan (@rmkraus)].
On Monday I (Paulus) gave a presentation about Home Assistant to an audience of over 400 people! It was a bit scary at first but after a couple of minutes it went all great including some great questions afterwards. Slides can be found here
One of the things that really impressed me was the amount of people that approached us to tell how they love Home Assistant, how it has replaced their previous solution, how they enjoyed contributing to Home Assistant and how helpful our community is. It makes me proud of Home Assistant and especially our community.
Read on →0.21: Improved Web and support for EnOcean, LIRC and Osram Lightify
It’s time for release 0.21 and it contains massive core improvements: replacement of our home grown HTTP stack with a standardized WSGI stack. This will improve performance, speed, security and make future development of advanced HTTP features a breeze.
This work was driven by the amazing Josh Wright. His knowledge, high standards and drive for security has helped improve Home Assistant a lot ever since he started helping out. Hip hip hurray for Josh!
Alright, time for the changes:
- New HTTP stack based on WSGI (@JshWright
, @balloob ) - Frontend: lots of performance improvements (@balloob
) - Initial support for EnOcean lights, sensors and switches added (@rubund
) - Light: Osram Lightify is now supported (@olimpiurob
) - Light: Insteon Hub now supports brightness (@wkonkel
) - Add support for adding HA as Windows 10 tile (@fabaff
) - Condition: time condition can now cross midnight (@jaharkes
) - Template based sensors should now throw less warnings (@Bart274
) - New LIRC component allows receiving IR commands (@partofthething
) - The Feedreader component will now persist data to disk to prevent duplicate events (@shaftoe
) - Sun: azimuth attribute added (@fabaff
) - New Flux like switch platform to change light intensity in the evening (@nkgilley
) - We no longer crash if you live in a part of the world where the sun never sets (@balloob
) - Rollershutter: RFXTRX now supported (@jacobtomlinson
) - Switch: Template switches can now execute scripts (@kellerza
) - Z-Wave: automatically heal the network at midnight (@infamy
) - Sensor: DTE Energy Bridge now supported (@kylehendricks
) - Media Player: Kodi now supports different turn off commands (@armills
)
Backward-incompatible changes
- Our work in the WSGI stack is not fully done yet. We still have a minor issues where retrieving the error log in the about screen can raise an encoding error
- The API used to incorrectly accept a JSON body with form-url-encoded headers. Our cURL examples on the website used to be wrong and have been updated.
- Make sure your configuration.yaml file contains
frontend:
to serve the frontend
Hotfixes 0.21.1 and 0.21.2
We released two hotfixes to address some issues that couldn’t wait till the next release.
0.21.1 - June 12
- Add eventlet to base requirements to resolve some installation issues (@balloob
) - GTFS will filter out routes in the wrong direction (@imrehg
) - Recover from rare error condition from LIRC (@partofthething
) - Z-Wave autoheal will no longer raise exception (@balloob
) - Alexa will now execute the script before making reply (@balloob
) - Fix MJPEG camera streaming (@stjohnjohnson
) - Fix frontend in older browsers (@balloob
) - Fix history in more info dialog being cut off (@balloob
)
0.21.2 - June 15
- Fix input_select calling the set_option service again when changed (@persandstrom
) - Fix more info dialog not being able to open on Safari (@balloob
) - Add support for OPTIONS HTTP command to get CORS working (@JshWright
)
Community Highlights
Our community is amazingly helpful and creative. If you haven’t been there yet, make sure to stop by our chat room
SceneGen - cli for making scenes
SceneGen is a new command line utility developed by Andrew Cockburn
Videos
Nick Touran
Ben from BRUH Automation
Muhammed Kilic has created a video how to make your Home Assistant instance accessible from the internet using the free dynamic DNS service DuckDNS.
iBeacons: How to track things that can’t track themselves (part II)
This post is by Home Assistant contributor Greg Dowling
In Part 1 I talked about using iBeacons to improve presence tracking. In part 2 I’ll talk about how to track things like keys that can’t track themselves by using iBeacons.
Tracking things using iBeacons
In the first part I mentioned that iBeacons just send out I’m here packets, and we used this to trigger an update when your phone came close to a fixed beacon.
But beacons don’t have to be fixed.
Your phone knows roughly where it is located (based on mobile phone masts, Wi-Fi networks or GPS). If your phone sees an I’m here message then it knows the beacon is close.
If your phone can remember (or tell a server) where it was when it last saw the iBeacon - then it knows where the beacon was. So the result of this is that you can track where an iBeacon was - even though the iBeacon doesn’t have any tracking technology itself.
So if you put an iBeacon on your keys or in your car - then you can track them.
Here are my keys - with a Estimote Nearable iBeacon stuck to them. Ugly but effective!
Read on →Raspberry Pi all-in-one installer
We are always hard at work at the virtual Home Assistant headquarters to make it easier for you to get started with Home Assistant. That’s why @patchedsoul
wget -Nnv https://raw.githubusercontent.com/home-assistant/fabric-home-assistant/master/hass_rpi_installer.sh && bash hass_rpi_installer.sh;
This feature wouldn’t be complete if it wasn’t accompanied by a new video by Ben from BRUH Automation
0.20: Roku, Last.fm, AWS, Twilio
Tons of new supported things in 0.20.
- Restarting now supported without forking (@jaharkes
) - Add purge days option to recorder component (@justyns
, @infamy ) - Generic load_platform mechanism for entity components (@kellerza
) - Template: new
relative_time
function to render ie.7 seconds ago
(@robbiet480) - Sensor: supervisord now supported (@happyleavesaoc
) - Docker: we should no longer get SSL errors with requests (@lwis
) - Media Player: Google Play Music Desktop Player now supported (@GreenTurtwig
) - Notify: Twilio SMS platform added (@robbiet480
) - Device Tracker: Asus WRT will now default to SSH (but telnet is still an option) (@froz
) - Support Nest Protect smoke alarms (@khabi
) - Configurator: allow supplying a link to the user (@mnestor
) - Media Player: Roku now supported (@bah2830
) - Sensor: Last.fm now supported (@darookee
, @GreenTurtwig ) - Notify: Amazon Lambda, SNS, SQS now supported (@robbiet480
) - Light: allow human readable colors in turn_on command (@robbiet480
) - YAML: new include dir options
!include_dir_merge_list
and!include_dir_merge_named
(@happyleavesaoc) - Media Player: LG Netcast TVs now supported (@wokar
) - Media Player: Allow enqueuing media on Sonos (@shaftoe
) - Notify: Ecobee thermostats now supported (@nkgilley
) - Sensor: Mold indicator added (@xifle
) - Export to Logentries support added (@omgapuppy
) - Group more info dialog allows control of group domain if available (@fignuts)
Backward-incompatible changes
- Asus WRT will now default to SSH with Telnet being an option
device_tracker:
platform: asuswrt
protocol: telnet
Why we use web components and Polymer
I’ve been planning to write this post for a while now as we get questions like this a lot: “Why does Home Assistant use Polymer? Why not React, Redux and what not?”
It’s understandable, Polymer is quite the underdog in the world of web frameworks. A corporate backer does not guarantee popularity or an active community and this shows in the number of projects using Polymer.
Still, we use Polymer and it’s awesome. To explain why, I’ll be referencing the React workflow quite a bit, as they do a lot of things right, and show how it is done in Polymer.
Polymer gives us components for the web, just like React, but based on web standards: web components
Video: How To Configure Home Assistant
Ben from BRUH Automation
Make sure to subscribe to his YouTube channel