News for hackers. Stuff that matters.
Re:Home Assistant: Open-source home automation platform runn... by Djvacto on Thursday August 23, 2018 @09:46AM (#17827178)
I 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.

Re:Home Assistant: Open-source home automation platform runn... by Klathmon on Thursday August 23, 2018 @10:01AM (#17827283)
some of the stuff i've wired up around my house:

* zwave motion sensors that can turn on the stairs lights at night when I start to walk down

* door/window sensors that will automatically turn the AC off if they are open for more than a minute.

* several methods of presence detection for anyone in the house, and ensuring the doors are locked, lights out, and garage doors down if nobody is home (after an announcement on the google homes just in case anyone somehow is still home)

* automatic notifications to my wife's phone when i'm on my way home after work so she would know when to start dinner (we don't use this one any more as I work from home, but it beat getting phone calls and me guessing how long I was from home every day!)

* notifications that show an image of who is at the front door when there is motion there

* an alert if a door in the house is left open for more than 1 minute

* a vibration sensor combined with a tiny hall sensor on the door of the washer/dryer to notify me when laundry is done (trying to measure power usage on 220v wiring was looking to be more annoyance than it was worth, so i went a different route!)

And one of my favorites that i'm working on right now:

* a system to measure rainfall amount and only turn on the reclaimed water sprinklers when it's not enough, but adjust the runtime accordingly.

Re:Home Assistant: Open-source home automation platform runn... by programbreeding on Thursday August 23, 2018 @12:02PM (#17828353)
>* a vibration sensor combined with a tiny hall sensor on the door of the washer/dryer to notify me when laundry is done (trying to measure power usage on 220v wiring was looking to be more annoyance than it was worth, so i went a different route!)

Your option was likely much less expensive, but aeotec does make a clamp-on energy sensor[0]. It's made for reading your whole-home energy but it should work for your purposes. But like I said, your solution was likely much cheaper (these are about $99).

[0] https://aeotec.com/z-wave-home-energy-measure

Re:Home Assistant: Open-source home automation platform runn... by Klathmon on Thursday August 23, 2018 @12:14PM (#17828458)
I thought about that, and like you said it was pretty expensive, plus it would require me to cut the power line for the dryer to pull one of the lines out.

And then I was back at square 1 for the washer, which turns out uses little enough energy in a lot of cases to be hard to tell when it's "done" vs when it's just pausing between cycles or swapping water out.

I also wanted to have the notifications continue until you actually empty it, and that required a door sensor anyway!

I really want to get one of those for the oven though, my wife tends to worry that she left the oven on (she never has!) and something like this connected to it might help ease that worry. And I REALLY don't want to do anything invasive to the oven, as that's one thing that i REALLY do not want accidentally turning on or shorting out.

Re:Home Assistant: Open-source home automation platform runn... by sprobertson on Thursday August 23, 2018 @11:21AM (#17827985)
What's your setup for the front door camera? That's something I'd like to add to my house, I know there are a packaged solutions but I want to build it.
Re:Home Assistant: Open-source home automation platform runn... by Klathmon on Thursday August 23, 2018 @11:33AM (#17828074)
So I bought a ring a while back, I fucking hate the thing. It's unreliable, it's closed off, and has an awful API.

But until I get around to replacing it, I also have normal IP cameras out front. So i combined the API from Ring with the IP cameras that let you access the video stream to take a snapshot on motion or a doorbell ring, and use HTML5 notifications to send it to all my devices.

Re:Home Assistant: Open-source home automation platform runn... by SEJeff on Thursday August 23, 2018 @12:47PM (#17828702)
Get a doorbird. More expensive with the same feature set as the ring but a few big benefits. Their REST api is documented and they support callback webhooks. So you can have your doorbird make a webhook http post with a blob of json telling home assistant it detected motion or someone pressed the doorbell. I’m planning on using this to have a “doorbell” automation play on our Sonos speakers, which home assistant also supports very well.
Re:Home Assistant: Open-source home automation platform runn... by Lightbody on Thursday August 23, 2018 @10:20PM (#17832293)
This is great to know. I’m doing a big home remodel and ran CAT6 to my doorbell and have an unopened DoorBird just waiting to be installed in a few months. I love this idea!
Re:Home Assistant: Open-source home automation platform runn... by SEJeff on Friday August 24, 2018 @03:54PM (#17837452)
Yup. I've got an outstanding person TODO item to see if anything in the HASS side of things needs enhancement, since I'm a python dev and have the Doorbird http api docs.
Re:Home Assistant: Open-source home automation platform runn... by VectorLock on Thursday August 23, 2018 @10:54PM (#17832443)
This is a great list of things you can do. Just reading thing went a good way from changing my mind from "useless contrivance maybe a bit fun to hack on" to "actually sounds useful."
Re:Home Assistant: Open-source home automation platform runn... by beagle3 on Thursday August 23, 2018 @10:09AM (#17827367)
Where do you buy your sensors, and which ones do you use? Sounds like they are all over the place so they need power and wireless (or a lot of cabling....)
Re:Home Assistant: Open-source home automation platform runn... by Klathmon on Thursday August 23, 2018 @10:13AM (#17827393)
the motion sensors and door/window sensors are zwave.

They are battery powered, but i've had the oldest ones for almost 2 years now and haven't had to replace the batteries yet, and when I do I can get a pack of like 10 for $15 so it's not bad.

All of the light switches are zwave as well, and they go in the wall behind the toggle switches, so from the outside you can't see any difference.

I get most of them from amazon, and i've used a bunch of vendors over the years. Aeotec, ecolink, linear, and a few no-name brands.

Re:Home Assistant: Open-source home automation platform runn... by lostapathy on Thursday August 23, 2018 @11:01AM (#17827799)
Can you share specifically which zwave sensors you're having good luck with? I have had mixed luck with sensors.
Re:Home Assistant: Open-source home automation platform runn... by Klathmon on Thursday August 23, 2018 @11:26AM (#17828021)
By far my favorite was the aeotec micro smart switch energy gen2

It's not sold any more, and it's not zwave plus, but I have like 12 of them and they are by far the best i've used. They are small, run consistently 100% of the time, have good range, and more.

I have 2 of the aeotec nano switches which are zwave plus, but they are also $60 so it's almost double the money...

I've also used fibaro but ended up removing it because there was a delay between when i flipped the toggle and when it would turn the light on, and that was not okay in my book.

I am looking to replace the light switches with zwave-plus modules simply for the extra security, but i'm not in a massive rush.

In the sensors world, i use ecolink's door window sensors. They are cheap and work well enough, although I did have 2 out of about 20 that were bad and needed to be replaced shortly after installing them.

I am also trying out zooz 4-in-1 sensors for motion right now. They work pretty damn well with a lot of control over sensitivity and range, so I'm happy.

For the garage doors I use linear/gocontrol's GD00Z-4 modules, and my door locks are kwikset with a zwave plugin board, and there are a few plugs around the house from various companies that all have worked perfectly so I don't really have anything bad about them (ge, aeotec, r-tech)

Re:Home Assistant: Open-source home automation platform runn... by driverdan on Thursday August 23, 2018 @11:11AM (#17827892)
> ...notify me when laundry is done

You could hook into the buzzer circuit for this notification.

Re:Home Assistant: Open-source home automation platform runn... by Klathmon on Thursday August 23, 2018 @11:30AM (#17828052)
I have a rule that all my "modifications" must be easily undone, and can't impact the "thing" if it stops working.

So where possible, I shy away from any modifications to the device itself that aren't extremely simple to undo.

A vibration sensor and hall sensor on an esp8266 is cheap, works consistently, and is VERY easy to take off if I don't want it any more.

I did hook into a humidifier once kind of like this, I hooked the esp8266 up to the on-off button, but I try to avoid it if I can.

Re:Home Assistant: Open-source home automation platform runn... by supercanuck on Thursday August 23, 2018 @10:10AM (#17827380)
it would be interesting to hear what hardware and sensors you ended up using.
Re:Home Assistant: Open-source home automation platform runn... by Klathmon on Thursday August 23, 2018 @10:15AM (#17827408)
pretty much mostly zwave (from various companies over the years), with some one-off stuff on a few esp8266 chips that I got for a few $ each on aliexpress.
Re:Home Assistant: Open-source home automation platform runn... by robbiet480 on Thursday August 23, 2018 @11:42AM (#17828168)
For more ideas with actual code, the "home-assistant-config" tag on GitHub [0] is very popular to find those who have put their configuration into version control. Here's mine [1].

[0]: https://github.com/topics/home-assistant-config [1]: https://github.com/robbiet480/Home-Assistant-Config

Re:Home Assistant: Open-source home automation platform runn... by cmsimike on Thursday August 23, 2018 @10:32AM (#17827579)
My current favorite ones: - My GF is a bit forgetful and sometimes leaves her purse behind when leaving somewhere. I had an automation setup with an ibeacon in her purse and owntracks on her phone to detect when the purse is far away from her, and send me and her a notification

- i built a bed occupancy sensor so hass knows if we're in bed or not, and disables automations that would otherwise be annoying (mainly the motion-detected lights in the bedroom)

- i come home and say "hey snips, i'm home" which turns on the tv and sets kodi to a plugin that i tend to use.

- i have a snips.ai command (hey snips, let's party) which turns on my lifx bulbs and makes them change colors

- also whenever Eric Prydz comes on my living room kodi, those party lights come on

- i have an announcement go out over snips.ai tts when my 3d print starts (so i can go ensure the first few layers are good) and when the 3d print is done. I also have snips commands to tell me how much time is left on my 3d print job, and if the temperature of the nozzle spikes too high.

Re:Home Assistant: Open-source home automation platform runn... by sjimmie on Thursday August 23, 2018 @01:13PM (#17828923)
"also whenever Eric Prydz comes on my living room kodi, those party lights come on"

Does it also supply instant spandex and leg warmers?

Re:Home Assistant: Open-source home automation platform runn... by roel_v on Thursday August 23, 2018 @10:37AM (#17827608)
"i built a bed occupancy sensor so hass knows if we're in bed or not,"

Do you use a pressure sensor or PIR for that?

Re:Home Assistant: Open-source home automation platform runn... by cmsimike on Thursday August 23, 2018 @10:44AM (#17827667)
2x of these https://www.adafruit.com/product/1071 between the mattress and box spring, ultimately hooked up to a raspi zero w
Re:Home Assistant: Open-source home automation platform runn... by roel_v on Thursday August 23, 2018 @10:49AM (#17827696)
Aha those are exactly what I was looking for a few years ago when I tried to do the same, I only found tiny ones with difficult to use interfaces. Thanks!
Re:Home Assistant: Open-source home automation platform runn... by borisian on Thursday August 23, 2018 @11:42AM (#17828171)
i made an account because i noticed you mentioned snips. I own a 3d printer and just began toying with it, setting tts is bloody genius. is it hard to pick it up?
Re:Home Assistant: Open-source home automation platform runn... by cmsimike on Wednesday September 05, 2018 @11:12AM (#17918687)
Sorry - TTS or snips?

Snips is straight forward as mostly it is integrated into my home assistant, but with a lot of custom voice commands to pull specific data

Re:Home Assistant: Open-source home automation platform runn... by dovemint on Thursday August 23, 2018 @01:15PM (#17828939)
You can find more information on their Doc Site https://snips.gitbook.io/documentation/

I find their telegram (https://t.me/snipsair) pretty useful to ask poke around. Looking for their Discord because Dev community is mostly there! Plus i believe you get rewarded for helping em in their token. Not so much into Crypto but it seems to have some viable utility in their ecosystem.

Arduino Hobbyist here, usually lurking on /g/

Re:Home Assistant: Open-source home automation platform runn... by roel_v on Thursday August 23, 2018 @10:26AM (#17827501)
In addition to most of the things other people have reported above, I have:

- Scripts that open/close curtains depending on sunset/sundown and whether we're on holiday (presence simulation)

- My seedling box - it's an Ikea rack with styrofoam in which I have LED grow lights, a heating element and a fan to control temperature and which simulates different lighting conditions, to start seedlings and to do first fermentation of wines

- Monitoring/reporting of solar power generated

- Automatically switch off devices that use a lot of standby power but are only used occasionally - printer/copier, that sort of thing. I made the money the switches cost back within a year.

Re:Home Assistant: Open-source home automation platform runn... by lostapathy on Thursday August 23, 2018 @11:00AM (#17827784)
I'm curious what printer you run that uses a lot of standby power. I have checked several with a kill-a-watt and none of them seem to use more than a watt in standby mode.
Re:Home Assistant: Open-source home automation platform runn... by roel_v on Thursday August 23, 2018 @11:37AM (#17828114)
It's actually 3 devices behind one plug - Xerox Phaser 6600 printer, Brother MFC 7840 multifunctional and a ScanSnap ix500 scanner. I don't quite remember, I think they used 20w in standby (combined)? I remember being shocked at the time, but I don't think I really dug any deeper.
Re:Home Assistant: Open-source home automation platform runn... by landcoctos on Thursday August 23, 2018 @10:32AM (#17827577)
Hi. Can you provide details on the hardware and interfaces for the curtain setup?
Re:Home Assistant: Open-source home automation platform runn... by roel_v on Thursday August 23, 2018 @10:47AM (#17827683)
I use Forest drapery rails (https://www.forestgroup.com/). They're awesome, they have a zwave interface build in (the ones I use - they have multiple systems) and they have been 100% rock solid for 4+ years for me. They behave like light dimmers, so you just send them a '50%' message to close them half way etc. Also, you can still open them by hand; if you give them a slight tug, they will open or close the rest by themselves depending on the current positions. Many electric curtain rails, you can't open and close by hand. So if, say, the babysitter tries to close them and she doesn't know that they're electrical, and she starts yanking them, it'll damage the motor. The ones from Forest don't have that.

Furthermore, the company had great service. I wanted these rails when they were just on the market, and I told my installer what I wanted, but he didn't know about the zwave type yet. So I called my local Forest office (in the Netherlands) and they immediately put me through to an engineer who gave me the SKU for the installer to order, and he also gave me excellent advice on how to configure things (in a technical way, not in a 'this is what the manual says' way) and on the different options. They have different types, with different motors, depending on the curtain length. He said 'try the light one first, I think they'll work fine for your length. If they don't work as you want, you can just swap out the motors, it's all compatible. Just tell your installer to return it to <address>, label it <this guys name> and have your installer call me on <guys' cell phone nr> if he has any questions.' That was such a breath of fresh air, being used to companies that jerk you around from one call center lackey to another, reading you prepared scripts with snippets of the manual that you've already read half a dozen times.

Re:Home Assistant: Open-source home automation platform runn... by hondadriver on Thursday August 23, 2018 @02:15PM (#17829451)
Fully second this, we also have Forest. They have proven to be the most reliable Home Automation part in our home. Prices start at about EUR 500, but increase with curtain length (excluding the curtains). Seems like at lot, but having to recalibrate / repair a cheaper system every now and then will be more expensive in the end when your time is valuable.
Re:Home Assistant: Open-source home automation platform runn... by mediocrejoker on Thursday August 23, 2018 @04:46PM (#17830576)
Is this the kind of thing that requires a professional installation? Any sort of guides or kits available?
Re:Home Assistant: Open-source home automation platform runn... by hondadriver on Friday August 24, 2018 @12:46PM (#17836051)
You can do it yourself, but if you buy from your local window decoration shop, they will probably install it cheap or even free of charge.
Re:Home Assistant: Open-source home automation platform runn... by roel_v on Thursday August 23, 2018 @05:49PM (#17830958)
No this can be diy'ed, especially easy, straight rails.
Re:Home Assistant: Open-source home automation platform runn... by tempay on Thursday August 23, 2018 @11:06AM (#17827839)
Do you remember roughly how much they cost?
Re:Home Assistant: Open-source home automation platform runn... by roel_v on Thursday August 23, 2018 @11:15AM (#17827933)
I don't quite remember, but e.g. this online shop https://www.hashop.nl/Shuttle has them for e460 = USD533 (includes 21% VAT). But it must depend on the length, and on whether you need special shapes (e.g., I have two bay windows), so YMMV.

Sounds like a lot of money, but out of all automated things, the curtains are the things of which I most often think 'that is very convenient, glad I spend the time and money'. Most other HA things are fun to play with, but not really all that important (in my experience).

Re:Home Assistant: Open-source home automation platform runn... by kop316 on Thursday August 23, 2018 @09:54AM (#17827232)
My 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.

Re:Home Assistant: Open-source home automation platform runn... by toomuchtodo on Thursday August 23, 2018 @10:10AM (#17827374)
For 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).
Re:Home Assistant: Open-source home automation platform runn... by adanto6840 on Thursday August 23, 2018 @10:26AM (#17827507)
There are now even LED lightbulbs (~$7-10 each) that have light sensors in them that will run dusk-to-dawn. Is a lot better than trying to remember to switch the porch lights on/off every day! :)
Re:Home Assistant: Open-source home automation platform runn... by matharmin on Thursday August 23, 2018 @10:36AM (#17827605)
The most useful one I've done is opening the garage door from my phone or Google Home (yes, anyone can stand outside my windows and open the door on voice command, but noone would know to do that), and notifying me when I left it open for 5 minutes. I used a Sonoff relay switch for this, coupled with custom firmware based on homie. A LOT of hours went into this, but it was also a lot of fun and learning.

I've also made temperature and other sensors using esp8266 boards, but that wasn't quite worth the time spent.

Re:Home Assistant: Open-source home automation platform runn... by ohitsdom on Thursday August 23, 2018 @09:54AM (#17827229)
I'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.