News for hackers. Stuff that matters.
Re:Ask HN: What do you automate in your life and work? by acidburnNSA on Monday October 28, 2019 @12:26AM (#21374262)
Lots of home automation fun with Home Assistant (https://www.home-assistant.io)

* Self-hosted security system that e-mails me when triggered. It arms when everyone disconnects from the wifi and disarms when anyone in the home reconnects to wifi. Totally passive. Also arms at night when the kitchen lights have been out for 5 minutes after a certain time and disarms when motion patterns that can only be someone waking up are sensed.

* E-mails work and personal when smoke alarm goes off or when water is detected in basement

* E-mails pic from front door camera when doorbell pressed (yeah, like Ring, but with a ESP8266 monitoring my normal doorbell)

* Voice reminder on garbage day

* Northern loon call exactly at each sunset

* Ambient jungle noises and lights on when I wake up and it sees me

* Laundry timer + reminders

* Vacation mode random lights on/off

* Plays a Ship's bell chime on the hour, but only during daytime (ambiance)

* Tones when any outside door in the house opens. Optionally: random Seinfeld bass transitions

* Alert for power outage

* Alert if my mom's house temperature goes too low in winter when she's away (I've called the plumber to fix the furnace thanks to this)

* Turn on A/C if temperature above threshold at 4:00pm in anticipation of my return from work

Stuff like that. Loads of fun. Lots of fiddling.

Re:Ask HN: What do you automate in your life and work? by Balgair on Monday October 28, 2019 @12:17PM (#21378280)
> Tones when any outside door in the house opens. Optionally: random Seinfeld bass transitions

Dear Lord yes, that is FUN! I'd love to see 'walk up music' like in MLB, but for anyone and changing randomly from time to time.

Re:Ask HN: What do you automate in your life and work? by zantana on Monday October 28, 2019 @02:54PM (#21380254)
I like the your ambient noise approach. What are you using for sounds do you have your config online?

I am looking to make my house more reactive as well. One area where HA has been a godsend was integration with TV/Music/idle off. Whereas there wasn't one solution which would shut off the TV and stereo in my set up once they were in Harmony Hub I could add idle timeouts for them in HA.

Another was theater lighting when the TV starts. In the theme of ambience I am looking at switching the lights to something more colorful when paused.

Re:Ask HN: What do you automate in your life and work? by j7ake on Monday October 28, 2019 @04:08AM (#21375100)
Sounds great. So do you need one raspberry pi per automation ? Or are you somehow linking all these diverse processes with one raspberry pi ?
Re:Ask HN: What do you automate in your life and work? by acidburnNSA on Monday October 28, 2019 @10:32AM (#21377337)
One raspberry pi for all! The devices are connected via zwave wireless with a USB stick zwave controller. Actually I moved the main server from a pi to my home server a while ago but it was all working fine on a pi 3.
Re:Ask HN: What do you automate in your life and work? by machiaweliczny on Monday October 28, 2019 @03:10AM (#21374888)
Could you recommend some resources to get skilled with such suff? Also what tech stack you are using? (both hardware and software)
Re:Ask HN: What do you automate in your life and work? by acidburnNSA on Monday October 28, 2019 @11:17AM (#21377720)
Hardware:

* Raspberry Pi (I've since moved to a Ubuntu server, but Pi was perfectly capable on this entire setup)

* Aeotech Z-wave z-stick (for controlling the wireless sensors)

* Lots of z-wave sensors (door, motion, temperature, humidity, flood, one that listens for my smoke alarms going off, a whole house power sensor in the circuit breaker box, ...)

* Lots of z-wave switches (some where I replaced light switches with smart switches, others where I just piggied a z-wave relay between the wall and the thing)

* A few Phillips HUE lights for fun color BS

* an old 433 MHz temperature sensor that the previous tenant left without the weather station (read through a $5 USB TV receiver)

* Another Raspberry pi sitting on my stereo hooked to Snapcast to pipe synchronized wifi audio throughout the house from a single source.

* Mopidy as the central music server to pipe stuff through Snapcast

* OpenWRT router running some scripts for presence detection

* Cellphones via web interface for control

* Also a fun little LED dot-matrix display for fun displays

* A few Amcrest IP cameras (with cloud crap disabled)

Software is very Home Assistant heavy, with lots of little auxiliary scripts, some home-built, many others from other enthusiasts. The central community is the Home Assistant crew. But also:

* MQTT on a remote MQTT broker ($5 VPS) for communicating with external devices (like my mom's house and my cellphone when off-site)

* Owntracks for GPS-driven automations

* Self-hosted e-mail (totally unnecessary, just a hobby)

I think that's about it.

For getting started, yeah just start small. Get a z-wave usb stick and a pi and a few little sensors. Hook it up to your stereo and wifi and start fiddling based on the examples from home-assistants forum and docs. Then it just slowly bootstraps up to something elaborate, if you're enjoying it.

Re:Ask HN: What do you automate in your life and work? by deskamess on Monday October 28, 2019 @08:42AM (#21376323)
Care to elaborate on the loon call!
Re:Ask HN: What do you automate in your life and work? by acidburnNSA on Monday October 28, 2019 @10:38AM (#21377376)
Northern Loons make this eerie call that happens a lot in my childhood hometown. I set up am automation that plays a recording of one over the stereo at sunset. It's fun, and helpse keep track of the changing time of sunset.

The "Wail" recording here, in particular: https://www.syracuse.com/indepth/2008/07/audio_hear_the_call...

Re:Ask HN: What do you automate in your life and work? by mister_hn on Monday October 28, 2019 @04:03AM (#21375078)
Interesting, although I don't have the amount of time required to do these things.
Re:Ask HN: What do you automate in your life and work? by acidburnNSA on Monday October 28, 2019 @10:39AM (#21377391)
It's definieltely a hobby thing. I have time for it because I choose to set aside other stuff for it.

Once it was all set up it just runs itself with little tweaks and additions one a month.

Re:Ask HN: What do you automate in your life and work? by buzzerbetrayed on Monday October 28, 2019 @01:37AM (#21374545)
Wow that is really impressive. Home assistant is something I’ve been meaning to get in to for a while, but the amount of time it seems like it would take to set all that up and maintain it seems daunting. Sounds fun though!
Re:Ask HN: What do you automate in your life and work? by sandos on Monday October 28, 2019 @06:13AM (#21375633)
The nice thing is, you can start small. Thats how everyone does it really, just add one thing at a time, most of which is fairly simple. Just some hue motion sensors and lights can make for some nice automations.

I used Home Assistant to graph my pool temp, and control my pump so that I made most use out of our solar heaters.

Re:Ask HN: What do you automate in your life and work? by lardissone on Monday October 28, 2019 @09:54AM (#21376985)
Can you elaborate on the doorbell? Also where do you host your Home Assistant setup?
Re:Ask HN: What do you automate in your life and work? by acidburnNSA on Monday October 28, 2019 @11:08AM (#21377623)
I hosted Home Assistant on a Pi2+ at first, and then Pi3 for a long time. Eventually I wanted to use the Pi3 for something slightly different and had a low-powered home server at that point so I migrated to that. It's basically just running on a Ubuntu box that I use for NAS and workstation stuff now.

As for Doorbell, it's pretty much like this: https://partofthething.com/thoughts/making-my-analog-doorbel...

Re:Ask HN: What do you automate in your life and work? by swah on Monday October 28, 2019 @08:08AM (#21376140)
Do you have a power adapter for the doorbell monitoring ESP?
Re:Ask HN: What do you automate in your life and work? by acidburnNSA on Monday October 28, 2019 @10:33AM (#21377343)
It is powered from the same circuit that powers the doorbell chime coils.
Re:Ask HN: What do you automate in your life and work? by teekno on Monday October 28, 2019 @04:22AM (#21375152)
> Ambient jungle noises

I like this.