HNHacker News
TopNewBestAskShowJobs

balloob

2,085 karma · joined August 27, 2012

Founder of Home Assistant & Nabu Casa.
submissionscomments
balloob··on Home Assistant is an open-source home automation platform running on Python 3
Contributions to improve Open Z-Wave integration are always welcome :)

We already allow reloading the most important pieces of configuration: groups, scripts and automation.

balloob··on Home Assistant is an open-source home automation platform running on Python 3
We are on Discord which has a better experience for our users https://discord.gg/c5DvZ4e
balloob··on Home Assistant is an open-source home automation platform running on Python 3
I submitted a talk proposal for PyCon 2016 about this but was not selected.
balloob··on Home Assistant is an open-source home automation platform running on Python 3
For people interested in the tech stack:

Backend is Python 3 with asyncio. Source: https://github.com/home-assistant/home-assistant - License: Apache 2

Frontend is a PWA powered by Polymer 2 Source: https://github.com/home-assistant/home-assistant-polymer - License: Apache 2 - Demo: https://home-assistant.io/demo/

balloob··on Home Assistant is an open-source home automation platform running on Python 3
asyncio is amazing. It has been way faster and more predictable. Home Assistant has a lot of small tasks running all the time with the occasional task taking a long time (ie. trying to reach a device which has been turned off). The number of tasks running simultaneously used to be limited by the size of the thread worker pool, which is no longer the case. A request taking a long time is now just a coroutine pending result in our event loop.

We still offer the old API on top of asyncio, so we have been able to incrementally transition. By now the core and important components are all fully asyncio. Most integrations are not.

balloob··on Home Assistant is an open-source home automation platform running on Python 3
It is not for-profit. We will soon start a program for people to support the project.

The published version of Home Assistant is 100% what is on GitHub. Home automation is able to gather very private details of your house. It knows when you're home, what TV shows you watch, when you go to sleep. We keep all this data locally in your house, without the cloud. We want to make sure that anyone can check and influence the code that is distributed. No data should leave your house without your permission.

balloob··on Home Assistant is an open-source home automation platform running on Python 3
Automations can now be created via the user interface: https://www.youtube.com/watch?v=f3isVVpmiq4

(Automations have been able to be reloaded without restarting for a while now by calling the automation/reload service)

[edit: added word "service" at the end]

balloob··on Home Assistant is an open-source home automation platform running on Python 3
Founder of Home Assistant here. If anyone has any questions, let me know!

Besides being able to install it as a Python package on Python 3, you can also install it using our Hass.io OS. Based on ResinOS and powered by Docker, it offers over the air updates and management of your device via the user interface: https://home-assistant.io/hassio/

balloob··on The Zen of Just Writing CSS
> How can we reuse constants that are defined in a single place?

The answer for this is already in your browser: CSS custom properties http://caniuse.com/#feat=css-variables

On top of that the CSS working group is working on ::part and ::theme pseudoselectors to help theming across components. Brief intro in this Polymer Summit 2017 talk: https://youtu.be/rvpJ5O0W_6A?list=PLNYkxOF6rcIDP0PqVaJxqNWwI... (skip back to 16:17 to hear why the CSS mixins proposal didn't work out)

balloob··on Ask HN: Share Your Raspberry Pi Project
Use Home Assistant to integrate anything in your house. Make voice assistants respond to your commands. Write advanced automations to help make your life easier.

Use our Hass.io OS build to setup Google Assistant easily on your Pi. Need a USB microphone and speakers connected to the Pi and you'll get the full Google Assistant experience.

https://home-assistant.io

(disclaimer: I'm the founder)

balloob··on Home automation with Raspberry Pi, Node and React
Thanks! Made possible by CloudFlare + static website (using Jekyll) and no JavaScript in critical rendering path :-).
balloob··on Home automation with Raspberry Pi, Node and React
Founder Home Assistant here. Besides Hassbian we'll soon launch Hass.io: an OS for RPi + Intel NUC that runs Home Assistant and other apps inside Docker. All management of OS/containers is done from inside Home Assistant: https://home-assistant.io/hassio/

YouTube video showing a user installing Homebridge in 30 seconds on Hass.io https://youtu.be/A_LmQ5OlofY?t=61

balloob··on Home automation with Raspberry Pi, Node and React
Glad you like it! And now I've been listening to Northern loon calls for the last 10 minutes..
balloob··on I don't understand Python's Asyncio
We no longer need locks in the core because there is now only 1 thread that interacts with the core. We still have other threads but all they do is schedule tasks to be run on the event loop.

https://github.com/home-assistant/home-assistant/blob/dev/ho...

balloob··on I don't understand Python's Asyncio
At home-assistant.io we just migrated our core from being based on threads + locks to use asyncio. We managed to keep a full backwards compatible API available so we can slowly migrate other parts of the system over to async.

Asyncio has a steep initial learning curve (especially in our hybrid setup) but it's well worth it. We target low resource computers like Raspberry Pi and using async over threads has speed up things a lot.

The biggest catch is that while writing code you have to think about every function that you use. Is it doing I/O, is it a coroutine or is it callback/async friendly.

balloob··on Ask HN: What are the cons of Google Polymer?
I have been using Polymer since 0.5 and it used to be like this but since the first major version (1.0) it has not required me to rewrite anything.
balloob··on Ask HN: What are the cons of Google Polymer?
You can totally use ES6 modules, you just have to split the web component JavaScript and HTML into separate files. That's what we did for Home Assistant, which we documented here: https://github.com/home-assistant/home-assistant-polymer#bui...
balloob··on Nest Reminds Customers That Ownership Isn't What It Used to Be
I don't know if they sell day tickets.

All videos will be recorded so you should be able to watch it online. I'm planning to give a similar talk soon at a Python SD user group meeting to practice for my PyCon 2016 talk.

You can find my sliders for tomorrow here: https://docs.google.com/presentation/d/1P2WsmwGSSni4gAriY5IA...

balloob··on Nest Reminds Customers That Ownership Isn't What It Used to Be
Author here. Thanks for the shout out.

As AcidBurnNSA said, Home Assistant is free, fully open-source and fully community driven - no company involved. We have over 240 components and platforms to include a wide range of products and services: https://home-assistant.io/components/

If you're attending OpenIoT Summit in San Diego, I'll be speaking tomorrow about Home Assistant 1:35pm - 2:25pm in Harbor Ballroom F: http://openiotelc2016.sched.org/event/6DBd/automating-your-h...

balloob··on IoT Intro: SMS me when I leave my garage door open
If you're in the US, Adafruit sells them for $10 and they can ship fast.

I used it myself to have the ESP8266 report temperature and humidity to my home automation: https://home-assistant.io/blog/2015/10/11/measure-temperatur...

balloob··on Netflix Switch – dim lights, turn on the TV, order food, and silence your phone
You can check out the demo here: https://home-assistant.io/demo/
balloob··on Heimcontrol.js – Home Automation in Node.js with Raspberry Pi and Arduino
For the people that prefer their Home Automation to be in Python, have a look at Home Assistant https://home-assistant.io/
balloob··on ClojureScript de Jong Attractor
My favorite is the cube: http://goo.gl/qnDIFW
balloob··on Ask HN: How do you stay motivated to work on side projects?
Work on something you like. Don't care about money or fame.

Use your side project as your playground to learn new things by doing mini projects within your side project:

- Want to learn about testing? Add test coverage. - Want to learn about webcomponents? Find a way to integrate it.

You don't have to finish all the mini projects. Dropping something is fine, you still have the experience and knowledge!

What really helped for me in keeping steam is publishing the source of my side projects on GitHub. The idea that someone else uses your code is very satisfying. Once some traction comes, the pull requests and issues start coming in and it gets even more fun.

And when you get bored? No problem, just switch to a different side project or think of a new mini project.

balloob··on Show HN: Python 3 home automation with Polymer/Material design front end
I've only added support for things that I use in my house and I don't have any X10 devices.
balloob··on Show HN: Python 3 home automation with Polymer/Material design front end
Polymer builds on top of the draft HTML standard of being able to register your own HTML tags that contain HTML, CSS and JavaScript. This opens the way for writing your website with components like: <google-maps center="London" /> <twitter-tweet id="ABCD" /> <facebook-like id="ABCD" /> <youtube-video id="ABCD" />

Components use internally a shadow DOM for representation so that they are untouched by / do not affect the CSS on the main page.

balloob··on Ask HN: Do you have a side project you want to sell?
paulus [at] paulusschoutsen nl
balloob··on Ask HN: Do you have a side project you want to sell?
http://go-inside.appspot.com/

Tool that allows users to create their own tours using Android Photospheres and embed them on their website/view online.

See https://www.youtube.com/watch?v=M0zk_VuX2b0 for a demo of the interface

Our current commitments prevent us from finishing it.

balloob··on Python Idioms [pdf]
Why not use the Python built-in method "anystring".isdigit() ?
← PreviousPage 4 of 4