News for hackers. Stuff that matters.
Re:Home Assistant: Open-source home automation platform runn... by balloob on Thursday August 23, 2018 @09:50AM (#17827202)
Founder of Home Assistant here. Happy to answer any questions.
Re:Home Assistant: Open-source home automation platform runn... by hirundo on Thursday August 23, 2018 @11:07AM (#17827852)
My initial experience with Home Assistant has been very frustrating. I filled my house with HomeSeer HS-WD100+ and HS-WS100+ wall dimmers/switches. I thought I was safe as they are best sellers in zwave devices. But Home Assistant doesn't seem to support them without elaborate workarounds that, as a noob, I haven't been able to penetrate. The forums have been talking about a solution coming soon ... for years now. In the meantime I'm stuck with a house full of home automation that I can't automate.

I may be too dumb for this, but I do manage to survive as a full time developer, in linux, using yaml daily. Yet the learning curve on Home Assistant has been brutal.

Can Home Assistant improve on this? Can we someday buy best selling devices and expect them to work with it? I realize that Home Assistant is not intended to be and will never be as noob friendly as the proprietary consumer hub software. But can it at least get friendly enough for a professional dev to figure out how to turn on a light without several weeks worth of head banging?

Re:Home Assistant: Open-source home automation platform runn... by balloob on Thursday August 23, 2018 @11:22AM (#17827997)
On the YAML front: we've added support for configuring integrations via the UI, no YAML involved[1]. However each integration will need to be adopted individually for this. YAML will still be around for power users and people who like to use version control.

For Z-Wave: the current integration is based on openzwave, a reverse engineered implementation of the Z-Wave protocol with an irregular release interval. As we depend on their releases, it's out of our control.

However, there is hope :) Sillicon Labs (owner Z-Wave) has recently published an official SDK for Z-Wave[2]. Once Home Assistant Cloud is generating money, the plan is to pay a developer to integrate it into Home Assistant. Once we're on an official stack, I expect our Z-Wave story to improve significantly.

[1]: https://www.youtube.com/watch?v=_qpKe-FW9Yk [2]: http://zwavepublic.com/developer

Re:Home Assistant: Open-source home automation platform runn... by gbrayut on Thursday August 23, 2018 @11:32AM (#17828067)
Glad to hear there are plans to improve it. I'd be willing to do a patreon or monthly donation just for better zwave!

Keep up the great work!

Re:Home Assistant: Open-source home automation platform runn... by gerdesj on Thursday August 23, 2018 @06:00PM (#17831016)
My experience has been a bit different to yours but has included a fair bit of headbanging 8)

Zwave support seems to be really good to me. This: https://www.amazon.co.uk/gp/product/B00YETCNOE/ref=oh_aui_de... works passed through to a VM after a vMotion to another host! All Zwave devices I've tried seem to simply work but to be fair I have not done anything like an exhaustive set of tests.

The support on the forums is awesome - one of the best communities about. I'm not quite there yet to really give decent advice but I'm close.

Home Assistant is being developed at a breakneck pace. That means that you must be careful and treat your project with respect. Backups and backout plans and testing must be taken seriously. You have to read everything you can get your eyes on - the forums and docs are very, very, very good. If you do all that then you will be richly rewarded.

Re:Home Assistant: Open-source home automation platform runn... by Nervetattoo on Friday August 24, 2018 @02:13AM (#17833110)
I would be happy to contribute $ towards an improved Z-Wave implementation in HA if its based on an official SDK. I'm pretty sure I know a few others who would do the same if you set up a funding campaign somewhere.
Re:Home Assistant: Open-source home automation platform runn... by raman325 on Thursday August 23, 2018 @05:51PM (#17830971)
Have you looked at AppDaemon [0] [1] or Node-Red [2] [3] as alternatives to using YAML to write automations? AppDaemon allows you to write automations in Python, and Node-Red allows you to do it in a visual workflow editor. I haven't made the switch from SmartThings to Home Assistant yet because I haven't been limited by SmartThings yet and it was simple to set up, but when I do switch, I will probably start with those tools since the paradigm is more familiar to me. You can't get away from YAML completely since you would still need to build your sensor and device definitions in YAML, but I think the YAML structure works better for that use case anyway.

[0] https://appdaemon.readthedocs.io/en/latest/ [1] https://github.com/home-assistant/appdaemon [2] https://diyfuturism.com/index.php/2017/11/26/the-open-source... [3] https://nodered.org/

Re:Home Assistant: Open-source home automation platform runn... by sandos on Friday August 24, 2018 @03:48AM (#17833469)
I only tried Node-Red, it was good enough that I felt no need for AppDaemon, even though as a programmer it probably is even easier than Node Red.

One huge problem with YAML compared with Node Red is the turnaround, node-red restarts blazingly fast. HA, not so much....

Re:Home Assistant: Open-source home automation platform runn... by mediocrejoker on Thursday August 23, 2018 @04:54PM (#17830627)
I've struggled with this as well. I actually find the YAML harder to write than a full programming language would be. For example, conditional logic such as "Turn on this light when the sun goes down only if this person is home" get complicated quickly. The breadth of options and plugins available is impressive but the documentation presents a lot of small snippets and not many explanations of how to design a coherent system.

I have a feeling that my next step will be reading the source code to get a better sense of how the YAML is translated into the internal state machine, but an official "beginners guide" would go a long way to making this not necessary.

Re:Home Assistant: Open-source home automation platform runn... by raman325 on Thursday August 23, 2018 @05:52PM (#17830973)
See my reply to the parent
Re:Home Assistant: Open-source home automation platform runn... by mediocrejoker on Thursday August 23, 2018 @06:49PM (#17831247)
Thanks, I hadn't heard of AppDaemon. It looks a lot like what I found lacking the last time I tried to set up Home Assistant.
Re:Home Assistant: Open-source home automation platform runn... by gerdesj on Thursday August 23, 2018 @06:02PM (#17831019)
... and find the alert module.
Re:Home Assistant: Open-source home automation platform runn... by jvolkman on Thursday August 23, 2018 @11:54AM (#17828289)
Home Assistant should offer basic support (on/off/dim) for your switches out of the box - I've also got a house full of them. The work around should only be required if you want to use multi-tap gestures that the switches support. What's not working for you?

The multi-tap workaround is not terribly involved. If I recall correctly, it consisted of pasting a couple of lines of XML in the "zwcfg" file for each switch.

Re:Home Assistant: Open-source home automation platform runn... by hirundo on Thursday August 23, 2018 @12:20PM (#17828516)
I can't get specific because my house was struck by lightning a month ago and fried my pi and a half dozen switches (among lots else), and I don't remember the details. Replacements are on the way. Important tip for home automators: don't get struck by lightning. The affected switches didn't just turn off, they started to strobe the lights in the connected fixtures. I had to turn off the circuit and pull them out of the wall to stop the disco dance party.

I did get a few other zwave devices connected, and these do pair with the zwave hub, but otherwise Home Assistant can't see them at all. I messed with zwcfg with no difference.

Re:Home Assistant: Open-source home automation platform runn... by t0mbstone on Thursday August 23, 2018 @06:01PM (#17831018)
I had a similar experience with home assistant. The yaml configuration was so obtuse.

I basically just ended up writing my own python scripts and/or batch files and then I would have Home Assistant simply execute them.

That's how I managed to do some of my more complex, un-supported integrations with Home Assistant, anyways.

Re:Home Assistant: Open-source home automation platform runn... by Sjenk on Thursday August 23, 2018 @10:03AM (#17827301)
Is it possible to combine this with snips.ai? So you have voice control on the device it self or run snips on another device and let it send commands to the home assistant device?
Re:Home Assistant: Open-source home automation platform runn... by balloob on Thursday August 23, 2018 @10:24AM (#17827484)
You can flash our operating system Hass.io[1] to a Raspberry Pi, install an MQTT broker and Snips via the Hass.io UI, connect a microphone and speaker to the Pi, upload your Snips assistant and you should be good to go. See the instructions [2]

[1]: https://www.home-assistant.io/hassio/ [2]: https://www.home-assistant.io/addons/snips/

Re:Home Assistant: Open-source home automation platform runn... by Sjenk on Thursday August 23, 2018 @11:40AM (#17828146)
Awesome, thanks for the reply!
Re:Home Assistant: Open-source home automation platform runn... by gypsysoul on Thursday August 23, 2018 @10:10AM (#17827373)
Yeah curious to know too if Home Assistant is compatible with snips.ai? They're also heavy on privacy and essentially developed from the ground up with privacy being built into it BY design
Re:Home Assistant: Open-source home automation platform runn... by balloob on Thursday August 23, 2018 @10:24AM (#17827487)
Re:Home Assistant: Open-source home automation platform runn... by gypsysoul on Thursday August 23, 2018 @10:32AM (#17827571)
Thank you! Snips is the bomb, been tinkering around with it past week or so and really enjoying it.

What are your thoughts / experiences towards snips? Anything cool I should try out

Re:Home Assistant: Open-source home automation platform runn... by bear_in_mind on Thursday August 23, 2018 @10:37AM (#17827606)
Depends on how experienced you are with raspberry Pi. Good to start with their more basic tutorials? Found this https://snips.gitbook.io/getting-started/
Re:Home Assistant: Open-source home automation platform runn... by oulipo on Thursday August 23, 2018 @12:53PM (#17828743)
Thank you so much! We work hard to give the best open-source VoiceAI platform for hackers and makers like you guys!
Re:Home Assistant: Open-source home automation platform runn... by gallokot on Thursday August 23, 2018 @10:41AM (#17827647)
I am using it for basic stuff mostly and the experience was very positive. Also have a dev friend that introduced me to snips, who ordered a maker kit and can’t wait to code some stuff for the platform
Re:Home Assistant: Open-source home automation platform runn... by borisian on Thursday August 23, 2018 @12:17PM (#17828490)
If only there were giveaways or competitions to win one. It's not too pricy but my wallet disagrees atm
Re:Home Assistant: Open-source home automation platform runn... by rileyt on Thursday August 23, 2018 @01:26PM (#17829024)
I can't thank you enough for what you have started. I have been using HA for over a year now and enjoy it more every month.

Have you guys thought about, or talked with anyone else who has thought about trying to make HA, or a subset of the HA functionality, accessible to non-technical people? I often show my setup to friends and family and the first thing they ask is "how do I do this?", and I normally have to tell them they can't really do it themselves.

Re:Home Assistant: Open-source home automation platform runn... by balloob on Thursday August 23, 2018 @02:04PM (#17829360)
It's in progress. We added a framework to allow integrations to be configured via the UI and are working on adopting the integrations to work with this. We're also adding users to limit permissions for certain accounts. These things take time, but we'll get there. I hope 2019 :-)
Re:Home Assistant: Open-source home automation platform runn... by CedarMadness on Thursday August 23, 2018 @10:40AM (#17827635)
Are there plans for an Android app similar to the iPhone app? It's the one thing I miss about Smart Things
Re:Home Assistant: Open-source home automation platform runn... by balloob on Thursday August 23, 2018 @10:51AM (#17827722)
I don't expect an official app. There are some 3rd party ones.

Our frontend is a PWA which integrates very well into Android.

Actionable push notifications can be achieved with the notify.HTML5 platform[1]. Nice writeup what you can achieve here[2].

The only thing that cannot be achieved with the PWA is sending location updates for presence detection. But that can easily be achieved with OwnTracks [3] sending updates over HTTP.

[1]: https://www.home-assistant.io/components/notify.html5/ [2]: https://blog.usejournal.com/how-i-use-home-automation-for-wo... [3]: https://owntracks.org/ [4]: https://www.home-assistant.io/components/device_tracker.ownt...

Re:Home Assistant: Open-source home automation platform runn... by clutchdude on Thursday August 23, 2018 @03:23PM (#17829891)
Not much to add other than thanks!

Home Assistant was a key piece of not having to fiddle with lights while moving to a living room to do an early morning feeding for a baby.

Re:Home Assistant: Open-source home automation platform runn... by kop316 on Thursday August 23, 2018 @10:10AM (#17827372)
First, I wanted to say I really enjoy Home Assistant!

I was wondering, how has development been since you have been with Ubiquiti?

Re:Home Assistant: Open-source home automation platform runn... by balloob on Thursday August 23, 2018 @10:19AM (#17827437)
Being paid by Ubiquiti to work full time on Home Assistant is awesome. I no longer work early mornings, late evenings and weekends. It has allowed me to start larger projects (user system, Lovelace) and able to break them down in smaller pieces that can then be picked up by both me and contributors.

Still struggling a bit with finding the right work/life balance now that my hobby has become my job but it's going in the right direction.

Re:Home Assistant: Open-source home automation platform runn... by gerdesj on Thursday August 23, 2018 @06:11PM (#17831075)
It shows. I pointed my new HA at our Unifi controller and suddenly a huge number of attributes were available on each wifi connected device.

I don't care who pays for it but Ubiquiti are not daft: Amazon, Apple, Google etc have all got their feet under the table with their hardware "assistants". UBNT can't compete directly with that but they sponsor Home Assistant. Your salary plus a few other bits and pieces is not much cash in the grand scheme of things but the value gained is close to priceless (I would suggest).

Oh and did I say thanks for your work? Absolutely bloody awesome.

Re:Home Assistant: Open-source home automation platform runn... by my_usernam3 on Thursday August 23, 2018 @03:17PM (#17829853)
Try going the left direction. Way more fun.