13 ms·
Home Assistant: Open-source home automation platform running on Python 3
- eddyg 8y agoLast discussion was ~10 months ago[0], but lots of progress has been made since then, including the new Lovelace UI[1] and HassIO[2] for the Raspberry Pi, based on the new HassOS[3] (a very small and efficient OS to run Docker like a hypervisor). [0] https://news.ycombinator.com/item?id=15521743 https://news.ycombinator.com/item?id=15521743 [1] https://www.home-assistant.io/lovelace https://www.home-assistant.io/lovelace [2] https://www.home-assistant.io/hassio/ https://www.home-assistant.io/hassio/ [3] https://github.com/home-assistant/hassos https://github.com/home-assistant/hassos
- adamfeldman 8y agoMulti-user auth is another exciting development, and it just hit RC status https://developers.home-assistant.io/blog/2018/07/02/trying-new-auth.html https://developers.home-assistant.io/blog/2018/07/02/trying-...
- kingosticks 8y agoCould someone explain or point me to where I can find the reasons behind the move from ResinOS to HassOS? I've been thinking of moving my pi project to use ResinOS but I'd rather use (and contribute to) OSS.
- davidu 8y agoThis project is far and away becoming the standard for Home Automation. Incredible to watch over the last couple years.
- Klathmon 8y agoNot only that, but Home Assistant is by far my favorite example of a well run "crowd run" open source project. There's no big company bankrolling it (well there kinda is since ubiquiti hired the creator, but not to the same extent something like Chromium is just google), there are a HUGE number of committers, and the structure encourages people to maintain and improve their own contributions via 3rd party packages. There's no fighting, there's not much gatekeeping, it's not overly complicated, and they are EXTREMELY welcoming to new contributions, no matter how "unique" the use case is (look at some of the integrations! There's integrations for local bus schedule systems!). And on top of that, there's world-class documentation! That's rare enough in paid products, but to see it from a project like this, and the fact that it's almost always up to date is simply amazing. They held my hand through creating 2 new integrations, and I haven't developed in python for almost 10 years, and they were extremely helpful, responsive, and at the end of the day the product got better for everyone. I really don't have enough good things to say about Home Assistant.
- balloob 8y agoThank you, really appreciate this kind of feedback :) I store these kind comments in my notes and whenever people are asses online, I always go through the stored notes to know why we do what we do.
- deleted 8y ago[deleted]
- davidu 8y agoAgreed 100%. I think a lot of the credit goes to @balloob (Paulus Schoutsen).
- Klathmon 8y agoand @fabaff (Fabian Affolter) I'm like 80% sure that guy never sleeps...
- dberg 8y agoI really wanted to love this project, but it had all sorts of odd problems with finding devices reliably. Had another weird issue where the "delay" had to be hacked in the config to recognize dimming properly. I tried out HomeSeer and it has worked flawlessly. The downside is it is written in VB Script, yes you read that right so its nearly impossible to extend with your own plugins. I really wish this project worked as reliably as HomeSeer so I can actually contribute and extend it. Maybe thats changed in the last year ?
- Djvacto 8y agoI have a raspberry pi where I installed Home Assistant a few months ago when I moved into my new home. I did a little bit of messing with it, but stopped while waiting to have more devices that could communicate with it. What are some of the more useful things people have found they are able to accomplish with this, and what was the best way to go about them? Ideas I currently am toying with: presence sensors to turn lights on/off, somehow measuring the voltage used by appliances (washer/dryer, dishwasher, etc) to notify me when they finish running, a camera in my backyard that uses basic image processing to tell when my dog squats and I have to go pick it up.
- ohitsdom 8y agoI'm using it with z-wave door sensors to play a simple chime sound (helps keep track of curious toddlers). Also have a few IP cameras connected to it, may be adding presence sensors too. Planning on adding an "armed" mode where I can get alerts if motion is detected when we're not home.
- kop316 8y agoMy favorite things for it is a lot of the "scripting" you can do for it: - I have my outdoor lights turn on when the sun goes down and turn off 4 hours after sunset - If it is after sunset, if it detects mine or my significant other connecting to the wifi, it automatically turns my Nest from away mode and turns on lights inside. - It will automatically turn off all my lights and my nest to away mode if it detects that no one is home. There is a lot more flexibility to it (i.e. it can send you an email if someone gets home and you are not home, things like that). You can do a lot of those, I do not know how much work you have to do in it, but you can make your own "sensors" and it will integrate into home assistant.
- toomuchtodo 8y agoFor those who don't want to go all in on home automation, you can buy solar timers for your lights that have an on off button, but also accept your lat long as a parameter and contain a solar calendar internally; they will turn your lights on and off automatically around dawn and dusk (and variations of).
- balloob 8y agoFounder of Home Assistant here. Happy to answer any questions.
- Sjenk 8y agoIs 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?
- balloob 8y agoYou 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/ https://www.home-assistant.io/hassio/ [2]: https://www.home-assistant.io/addons/snips/ https://www.home-assistant.io/addons/snips/
- sashManiac 8y agoThis is really cool! Using a few snips integrations so will definitely check this out. And if you want to connect a light for example, snips makes it quite easy for you via their documentation: https://snips.gitbook.io/documentation/home-automation-platforms/home-assistant https://snips.gitbook.io/documentation/home-automation-platf...
- Sjenk 8y agoAwesome, thanks for the reply!
- kop316 8y agoFirst, I wanted to say I really enjoy Home Assistant! I was wondering, how has development been since you have been with Ubiquiti?
- balloob 8y ago
- ohitsdom 8y agoIncredible project. Such a well-run open source system- monthly updates with great release notes and documentation.
- HarveyJJ 8y agoYep fully agreed - eager to see where they go - mass adoption is huge but I think because their platform targets newb and prosumer audiences it'll be easier. Also, the website does a good job at showing features - some competitors out there are NOT doing this enough. Privacy aspect + edge vs cloud is what triggered me to get it :P
- syntaxing 8y agoIs there an on-device voice assistant for home assistant? I looked at snips.ai but debating if this fits my use case. I just need something to turn on/off my lights (and adjust color) and maybe play music through my TV.
- HarveyJJ 8y agoI use snips regularly, set it up for music and lighting control just like you haha. I really enjoy how easy it was to setup - have a ton of Pis sitting and gadgets sitting around. Are you looking to get their maker kit? Or use your own setup?
- syntaxing 8y agoI plan on using my own setup, I'm might get there eventually when I actually buy a Philips Hue set...Do you have any good tutorial? I saw the two on Snips' medium blog but I am not sure if there is anything else out there?
- balloob 8y agoIt depends on how much DIY you want to do. Snips.ai is the easiest to set up and can be installed from the Hass.io dashboard. There is also Rhasspy[1], a voice assistant toolkit for Home Assitsant. It has instructions and custom components on how to integrate a full voice assistant (wake up, speech to text, intent recognition, text to speech) into Home Assistant using solely open source tools with different choices per category. It's very cool. [1]: https://github.com/synesthesiam/rhasspy-assistant https://github.com/synesthesiam/rhasspy-assistant
- gallokot 8y agoSnips is very good imo, especially if you need only these features
- frontier87 8y agoI've been interested for a long time in an AI assistant but bringing one of big tech's spying devices into my home has always been a total non starter. So for me personally, Snips is an extremely promising project. The team is very responsive in their Telegram as well (https://t.me/snipsair https://t.me/snipsair).
- mendelk 8y agoSince there are eyes on this thread: Has anyone successfully linked their HA Cloud account with Alexa? I keep on getting "We were unable to link Home Assistant at this time."
- rtclauss 8y agoI found the troubleshooting section really helpful, especially the part about exposing a single entry when linking with Alexa. Once I did that I successfully linked the two.
- mendelk 8y agoThat didn't work for me :/
- balloob 8y agoWe're working with Amazon support in trying to pin down why this is happening but the support response time is slow. Our end looks all fine and the majority of people are able to link their account. You can try some of these troubleshooting steps[1]. If you are on Twitter or Discord, PM me (@balloob) your username and an exact timestamp that linking failed so I can forward it as another example to Amazon. [1]: https://twitter.com/clstokes/status/1019039457339535360 https://twitter.com/clstokes/status/1019039457339535360
- mendelk 8y agoThanks balloob. Tried all the solutions in the thread. None worked for me.
- bear_in_mind 8y agoYikes Alexa - I'd navigate toward more secure solutions if I were you :P If you want a PA better solutions out there.
- selvakn 8y agoHave been using https://www.home-assistant.io/components/emulated_hue/ https://www.home-assistant.io/components/emulated_hue/ for sometime. It does not use HA Cloud though (not required actually). With this, all the components registered in HA are emulated as hue devices for Alexa. Note: I use Echo Plus, which has the abilities to discover devices. Not sure if this works with Echo or Dot.
- ocdtrekkie 8y agoAt the time I started rolling my own home automation software, Home Assistant didn't do what I needed, but if I was starting today with where it's at now, I would almost certainly also be using Home Assistant. It now supports what it was missing before. Truly unreal number of integrations built for it now.
- visarga 8y agoI see the home assistant works with a family of devices. But how many of them are streaming personal data to the cloud?
- ocdtrekkie 8y agoMany of them literally can't. My general recommendation is to avoid home automation devices with a network connection. If you're using things like Z-Wave and Insteon, they can't talk to the Internet, they're not network devices, and they rely on an RF adapter or the like to talk to your PC. If you control the computer/software they talk to, you control what information can get out.
- jasonjayr 8y agoI couldn't find this easily before, but are there docs for how to build a new device that would be Home Assistant-ready right away to facilitate easy integration? Most of the docs appear to be how to get existing devices managed by Home Assistant..
- selvakn 8y agoYou can always leverage existing MQTT based components https://www.home-assistant.io/components/mqtt/ https://www.home-assistant.io/components/mqtt/, by making your component MQTT compatible. Adding new component is also relatively straight forward. For ex, have a look at https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/switch/zigbee.py https://github.com/home-assistant/home-assistant/blob/dev/ho... and other components. You implement couple of methods of existing traits, in this case, SwitchDevice.
- nijave 8y agoYou should be able to look through the supported Home Assistant components. MQTT, as mentioned, is a good example. You could also do a RESTful interface and use the REST component https://www.home-assistant.io/components/#all https://www.home-assistant.io/components/#all
- Lightbody 8y agoSince this comment thread involved a lot of people talking about their smart devices, I’ll just put out a PSA: don’t bother with cheaper zwave light switches and dimmers :) if you’re looking for a high quality decent price option, just get Lutron Caseta. Or if you want higher end / better style, get Lutron’s RA 2 Select hub (basically Caseta++) for $100 more and then you can use Caseta dimmers or higher end Maestro dimmers that have a nicer interface (but cost 2x). I’m speaking from experience: I put in a bunch of $35 zwave switches but they are physically worse (ex: thicker metal margins that make fitting wall plates more awkward) and they are more painful to work with the software (ex: setting high/low dimmer trims is awkward compared to Lutron’s in-app approach). I wish I had just gone with the $60 Casetas switches (plus remote if white is your color). The price difference is well worth it.
- kilo_bravo_3 8y agoCaseta is the way to go. I HAD a mix of Elgato, iDevices, Belkin, and Insignia switches and outlets, added ad-hoc based on promotional pricing and free time. It was an unreliable mish-mash with varying levels of compatibility with iOS, Android, and Alexa. Seeing or hearing "The device is not responding" was common. I scrapped it all and went Caseta for everything, giving every device a "one last chance" and swapping it out with a Caseta device if it failed to do what I told it to do. My home is now 100% Caseta. I haven't had an unscheduled outage since the the hub was installed. This stuff is going to be in your walls for years. Pay the extra $25 per device. Also, throw your wire nuts in the trash and use Wago lever connectors every time you unscrew a wall plate to replace something.
- hottopic4 8y agoAlso agreed with the zwave sentiment on a hardware side lightbody. I'm building out a multi car garage at the moment for the wifey and looking for something that adopts to multi-room voice commands and automation. So far tried a few open source pi configurations but felt at a loss for additional benefits. Home Auto was nice and did good stuff! Moved to Snips recently (someone mentioned them in the thread i think?) and have really enjoyed it. Tried out their live console which is quite nice. Privacy is an added bonus in my opinion but the multi language support (french) is fantastic. A ton of cool projects going around though. UI for end user is also stinging point so many do wrong. What else are you looking for? Purposes, end goal?
- adamfeldman 8y agoI use an Intel NUC* with Hass.io and am absolutely thrilled with it (switched due to slower reboot times on the Raspberry Pi — HA requires reloads when changing device config) *Model NUC6CAYH Am actually running Hass.io within Proxmox, so I can easily run other stuff on the machine as well. Haven’t yet tested USB pass-through for my Z-Wave and Zigbee USB sticks.
- jvolkman 8y ago+1 for the NUC. I replaced my Raspberry Pi with one because I was building custom versions of OpenZWave, and I found cross-compiling painful and compiling on the Pi even more so. I run Hass.io, but just installed it manually within a Debian installation. It's worked fine (including plugins/updates) for ~6 months.
- tssva 8y agoI last took a crack at setting up a home automation system about 10 months ago. At the time I found Home Assistant to be the easiest open source solution to setup and configure. Unfortunately this was a very low bar. Although the basic documentation regarding installation and configuration of the core Home Assistant was ok the documentation for the individual components used to integrate and automate were either extremely incomplete or outdated. Successful configuration of the system required searching forums to dig out the required configuration items that weren't documented anywhere else. Creation of a usable interface was another struggle. Again proper documentation was an issue and even once that was found configuring anything useful was just a tedious process. Unfortunately I had to give up on an open source solution and reluctantly moved to a commercial home automation system which turned out to be worlds above any of the open source solutions when it came to ease of configuration and UI/UX. Hopefully the open source solutions mature quickly and using them nolonger approximates the experience of maintaining my linux desktop in the 90s.
- rufugee 8y agoI worked with Home Assistant for some time, but ended up falling back to OpenHab2. While I don't like the "enterprisey" java-ish feel of OpenHab2, the documentation is much better that Home Assistant, and the support for components is much broader. It's been nearly flawless in production for me for over a year. ymmv
- SEJeff 8y agoTry Hass.io which bundles the install and update process quite nicely. Also the components have had a lot of work.
- alias_neo 8y agoI've been using Home Assistant for a couple of years now. I won't go too much into what I use it for, there's a bunch of info about that, and the guys on the Discord have entire public repos full of all their cool automations (on Github). What I would share is that in the couple of years I've been running it, I've been through a dozen Sandisk and Samsung MicroSDs on my Pis _even though_ I was running my time-series database, and my MQTT server on a separate server. Running on Raspberry Pi it's a nice toy, but when you get serious, install it on a proper box with an SSD/spinning rust. I bought a NUC-like device which is what most people will recommend to run it on, installed Arch (you can use whatever you like, Debian is probably best supported) and get going. Briefly though, I log all of the temperatures and light levels in each room of my home using Z-Wave sensors, store them in Influx and graph them in Grafana. I have my desk lamp turn on when motion is detect at or around my desk, I have my cameras start recording when nobody is home (based on location reporting from our mobiles using Owntracks back to my self-hosted MQTT server). I have hue lights in every light socket in the home so I can switch them to various moods based on motion, time of day, lux, whether the TV is on, the weather, the temperature, etc etc. The Home Assistant dashboard shows my server load in my rack , temperature in my rack (via a temperature sensor connected to an ESP8266 talking MQTT back to the server), all info on my UPS, load on various power meter wall plugs (Z-Wave) which can also be controlled on/off via HA, it shows the current temperature and light level and motion in each room via Z-Wave motion sensors. Most importantly, the community that sit on Discord are a friendly and helpful bunch so it's nice and easy to get started.
- icebraining 8y agoWere you logging to the card? I'm using a flash drive rather than an SD card, but I've mounted /var/log and /var/run on a tmpfs, then re-mounted / as readonly, and it's been running like this for years.
- monocasa 8y agoI've had cards fail even in RO mode. Consumer cards are shit, get "industrial" cards.
- 8y ago
- orthecreedence 8y agoI have a question for the home automation crowd. Are there any wifi switches (wall-wart style that don't need to be embedded in the wall) with an open spec or open source that I don't need a custom app with a weird protocol to talk to? I'd really like to wire up some automated switches but after days of research, found that just about every wifi-enabled switch requires some bullshit android app that requires phoning home to a third party. I'd like to keep everything LAN-only.
- emeidi 8y agoMyStrom has a simple web interface which I talk to with a bash script — but they come with Swiss plugs only AFAIK
- orthecreedence 8y agoYes, this is exactly what I'm looking for...a wifi switch with a documented REST API. I am in the US, but maybe I can get an adapter ;).
- cheeko1234 8y agoThis doesn't answer your question but I've been reliably using 433Mhz rf outlets[0] with homebridge and now with homeassistant with millisecond response times using Siri or browser at almost 100% success rate for years. I'm using twelve of them, and adding another is just adding one line to my config file. [0]https://www.amazon.com/Etekcity-Household-Appliances-Unlimited-Connections/dp/B00DQELHBS https://www.amazon.com/Etekcity-Household-Appliances-Unlimit...
- orthecreedence 8y agoThanks! I actually have these already, I didn't even think they could be automated though. What do you use as the transmitter (I'm assuming you don't have a robot arm pressing the button on the remote ;))?
- cheeko1234 8y ago
- bbarn 8y agoThis might be what I'm looking for, but the components page is broken. I need small, affordable temp+humidity sensors that multiple people can monitor via a web page or app. I did something similar years ago with a solution from a company called "One wire" and a lightweight PC interface, but it's pretty dated now and new components are tough to find. Any suggestions?
- turshija 8y agoXiaomi Gateway + Xiaomi temperature sensor (it records temp and humidity). They have a bunch of other stuff like lights, switches, window/door sensors etc. Easiest way is to use Mi Home app, but you can also use Homebridge to have data in Apple Home (if you are a fan of that), or Home Assistant.
- SEJeff 8y agoI believe you want the esp8266 or esp32 microcontrollers with esphomelib: https://www.home-assistant.io/blog/2018/06/05/esphomelib/ https://www.home-assistant.io/blog/2018/06/05/esphomelib/ You can get esp8266 devices as cheap as about $1.30 on Ali express or you can get the super tricked out ones (mainly just for prototyping) from adafruit for about $9.99. They call theirs the Huzzah and it comes with stuff that you don’t have to solder on to most esps anyways. But a small cheap wireless sensor (3.3V) that can attach to any small sensor makes for some interesting automations.
- bcohen5055 8y agoI've been running Home Assistant for a while in Docker on my home NAS server. It runs great, is reliable, very scriptable, and so easy my wife can use it! I run it on my LAN without needing any additional online services and I VPN when away from home if I want to check anything out.
- platz 8y agoI wish automation platforms were language agnostic. That way you can mix scripting/programming langauges and take advantage of the libraries that exist in each platform. some vendors only release integration APIs in certain languages; they are hard to predict and also may not be the language you want to use for your backend logic, as opposed to your job logic.
- another-cuppa 8y agoDoes anyone use something like this to help them wake up in the morning? During the winter in the UK I find it very hard to wake up. I think it would help if I simulated the sun. Is there a bulb that supports a soft, warm light in the evening and bright sunlight in the morning?
- joshumax 8y agoI do this with home-assistant, Phillips hue bulbs, and f.lux. f.lux controls the color temperature of the bulbs while home-assistant controls the brightness and emulates the sunrise at dawn.
- gh02t 8y agoI've done that using Home Assistant, it's pretty easy. Adjusting temperature isn't that important, but I'm really light sensitive and having a light slowly fade on in the morning is enough to wake me up gently. Many smart bulbs support color temperature adjustment, e.g. Phillips Hue, IKEA Tradfri, and LIFX all sell bulbs that have that.
- jnewland 8y agoHome Assistant is super dope. https://github.com/jnewland/ha-config https://github.com/jnewland/ha-config is my config if anyone's interested!
- webXL 8y agoFor me it still has the same frustrations as Smartthings or some other cloud based solution, but having more integrations and deeper insight as to what's happening, when, where and how is the big selling point for me. That and the speed... Push a button, lights come on instantly!