Home Automation Setups?

Ok, this is a rabbit hole, you’ve been warned!

Alexa, Siri, Google Home… The popular ones, basic, easy to use, grandma can install

Home Assistant… One of the more DIY / hardcore enthusiast ones, beginners can get it working, more advanced geeks dive into custom components and integrations giving it even more power / control.

With all the smart devices out there today, a basic Home Assistant setup can tie in all of them (with few exceptions, and they get fewer by the day). Everything from lights to your fridge / washer / dryer can somehow be incorporated. Are we all gonna go out and drop $20k to update every device to a smart one? Hell no. But moving forward, I WILL be thinking about smart abilities when I need to replace one.

So. What do I have integrated into my Home Assistant installation here? Its actually kind of muddy now because Google Home integrates with it, bridgeing the gap for some things that Home Assistant can’t control on its own yet (no custom integration written for some things… yet… ). For example. on Prime day I got a sweet deal on a 4 pack of Wifi lights. At that moment, I didnt have google home, and home assistant couldn’t connect (not all smart devices are made to play with others, and this was a Linkind light set, only controllable thru their app at the time). Evidently, there IS an integration for Linkind within Google Home. By linking Google Home to my Home Assistant installation, all of a sudden I can control those lights in both GH and HA. Oh… And also by voice. or script / routine. or whatever I want such as a proximity sensor which will tell HA to turn on the porch lights when I get to the end of my street (geofence w/ GPS).

Other integrations are TP Link switches, ESP32 devices (CO2 monitor, VPD calculator with ambient AND leaf surface temps, RH and Temp monitors), Govee (temp / RH sensors), Wyze cams via RTSP, Google calendar, my Canon inkjet printer, the 2 Roombas, 12 instances of Octoprint (control the 12 x 3D printers, providing status, pause, resume, stop commands, and a cam on each printer bed), the PLEX media server in my NAS, my Netgear Nighthawk router, Raspberry Pi utilities for like 14 or 15 pi’s I use for all sorts of things, Google Home Minis (5), Chromecast, Samsung 7 Series 55" TV, Spotify, iHeartRadio, Sirius XM Radio, and I am sure I am forgetting or missing something.

Routines and scripts make this amazing tool 100x better. Being able to say “ok google, its bedtime” and have GH / HA turn off the porch lights, turn off the living room lights, turn on the bedroom lights for 15 mins, check to make sure the doors are closed (if I had smart locks could check if they are locked too), check AND tell me my battery level on my phone and remind me to plug it in, and read off a list of tomorrows events if need be. Can also have it play music / white background noise for a set time before bed as part of that script. That’s just 1 small idea really.

My gf is resistant to using voice commands, and its annoying to be asked “can you set the timer” when really, all she has to do is say “ok google, set timer for 15 mins” or “cancel timer, reset timer, how much time is remaining” etc. I use voice commands so far for the timer function, adding shit to my shopping list (which I also setup a proximity trigger to open my shopping list on my phone / send me a reminder when I am AT the grocery store automatically, never forget shit again as long as I added it to the list at home). And you can say multiple things “Ok google, add milk, eggs and bacon to the shopping list, turn off the living room lights and play alt nation on all speakers”. gets it ALL done.

I enjoy tech. And the ensuing frustrations. Worst things for a newbie is the whole “create an api” for some integrations to work (google home and spotify come to mind). But there are great tutorials to walk newbies thru it, and even guide old hands thru it (because, TBH, some of those steps arent intuitive even for a geek, GLAD they have how-to’s). But honestly, so far, it just works.

If you’re wondering how deep this rabbit hole goes… Just know this. I started playing with Home Assistant to be able to control my grow conditions. schedule lights, adjust fans, humidifier, dehumidifier based on conditions, and monitor those conditions to make adjustments. Use temp / RH to control some switches really. And its gone just plain crazy. The home lighting will be fun to create scenes. adding functionality to voice commands is gonna make it better as you go deeper into the whole ecosystem.

Oh, and I can measure, and estimate electrical consumption with certain devices, giving me a pretty accurate cost of what things are costing me to run (i.e. an entire tent, or a row of printers). THAT was an eye opener (my pond waterfall pump is a HOG).

My current dashboard:

Several of those “panels” are swipe-able. for example you can swip the center panel to go thru each printer. Or swipe the right printer to go from veg > flower > cure. Will be adding a basic home camera swipe showing each home cam on its own, with a swipe left / right to change cams (bottom center is where that will reside).

So how deep down this rabbit hole will you go?? LOL

(I apologize now for any unforseen purchases due to reading this)

edit: almost forgot. You really can’t change the “Ok Google” trigger word for something like “Computer” or “Jarvis”. But!!! there’s a secret alternate. Instead of “Hey Google”. try saying “Hey Booboo”. I say it like Yogi. “hey hey boo boo” ROFL. it works!

14 Likes

I was about to think of getting a smart plug for my tent,It would help me Turning on and off things when not at home by checking the wifi hygrometer

Friend you are well dialed in I see
@Nagel420

1 Like

Make sure that’s something the plug offers. Mine don’t do that and if there’s a power surge or outage they stay off until the app is loaded and the timers reinitialized (manually turning them on may work as well, but either way you have to be in Bluetooth range).

I have low patience for technology in general. I also have a knack for finding bugs though. Personally, it all feels like another part of the luxury trap.

1 Like

I’ve been using Home Assistant since somewhere around the 0.50 release. To give some perspective to others not familiar with it, the 0.x releases were about once every 3-4 weeks and went well beyond 0.100 before they changed to a MM.YYYY release in late 2020, I think.

I use z-wave devices on the old built-in z-wave integration because I haven’t converted everything over to the newer preferred zwavejs integration, mostly because those control a bunch of my grow room devices via automations. I keep different automations for veg vs flower and just enable/disable them as needed based on where I’m at with a grow.

I rely more on sensors and automations than on being able to use Alexa to run things, even though I do have a fair amount of lights and such that I frequently control using Alexa.

I have a primary dashboard that’s purely informational, with info like time/date, weather, weather alerts, trash/recycle day flags/reminders, and upcoming events on our family google calendar.

4 Likes

I added my switches after setting up Home Assistant. As long as they have power, and my raspberry pi running HA has power, the routines are controlled from HA, and the switch is merely connected to HA thru your LAN. (being controlled by HA). Setup once in the app, and never touched the app again. After a power outtage, the TP link switches automatically re-connect to my home network.

Using them without HA, the app has timers and such, but I couldn’t advise on how they work.

2 Likes

Wish I could find a Raspberry Pi, takes less power than an old PC.

My lights and pumps are on smartplugs controlled by Home Assistant & Node Red.

Also have in the house…

  • sensors on all the doors that send alerts if they get left open for a while
  • temp & humidity monitoring throughout
  • motion sensor in the laundry room that has no light switch
  • smart plugs & switches on lights that are annoying
  • Shelly 1 on the old garage door opener with no remote, to make it smart for $30

Mostly Aqara & Sonoff Zigbee things on a Sonoff Zbridge flashed with Tasmota, and some Kasa wifi. Lot of work to get set up, but it’s been solid. Nice to have control from a phone and I can check on the house while I’m away.

The Kasa stuff is good for people who don’t want to run a server.

If this thing ever goes on sale I’d like to get one for the grow. Each outlet has power monitoring and can be controlled individually on a different schedule.

5 Likes

Talking my language.

I have been using Homeseer since it came out 30 years ago, back when the only stuff available were X-10 devices. Now I use only Zigby and Zwave devices. LOL, the stuff from IKEA is cheap and works well with Homeseer.

Web Interface

image

Dashboards

Conditional Events

And a mobile interface.
image

I have automated 2 different homes with it.

Just moved into my current home a year ago. Have not automated it yet. However I am digging out all the stuff to automate my tent. Work in progress.

Anyway, I am pulling up a chair as I drool over what to automate next…

6 Likes

Most Kasa stuff / TP-link switches from them worked for me in HA, but the 3 outlet + USB power bar that was supposed to be 3 controllable, separate outlets only worked as such within the kasa app. in HA, only the first switch was found, the other 2 couldnt be. It was a known issue evidently and I returned it. Not the products fault, it DID work within Kasa. but I needed it in HA.

I like the 6 outlet bar with power monitoring. Thats on the newer side from them. I can get it for $54 on Amazon, save an additional $8 with some coupon on amazon, cost would be $46. Thats 6 switches (alone would cost more than that, AND those are energy monitoring!! Those 15a energy monitoring switches on their own are usually $22 EA). Truthfully even at $54 its not a bad deal!

2 Likes

Are all 6 outlets controlled? I have something that looks very similar but only 3 of the outlets are controlled, the other 3 are not.

I have a comparable power strip that’s z-wave made by Zooz. The strip completely died after about a year and a half of use for turning on led lights, 6” fans, etc. Zooz basically told me that I was using it to power/switch devices that shouldn’t be used with the power strip. They gave me a 25% discount on a new one, but wouldn’t outright replace it.

Be very careful what devices you power with that strip if you end up getting it. If it’s anything like the Zooz a-wave strip, you’re not supposed to switch power for like anything you’d actually want to switch with those outlets.

2 Likes

Hey gang.
I’m just gonna post this here, to gauge if there’s any interest.

I’ve written this grow room/tent automation software. It runs on a cheap $15 raspberry pi zero (microcomputer). It interfaces with many inexpensive off-the shelf bluetooth devices (hygrometers, soil sensors, power outlets)

A lot of it does things similar to what you’ve already seen from other smart-apps, but there’s a few important differences.

  1. For security, none of its info goes through the cloud. It all stays in your home.
  2. Because it is not internet/cloud based (like most WiFi smart devices are), even if you lose internet the system keeps working.
  3. Smart controls over bluetooth outlets. In other words, use a measurement (like, humidity) from another device to tell the power outlet when to turn off and on. Great for controlling temperatures, humidity, or VPD.
  4. All device interfaces are based on plugins. If you are tech-savvy, you can write your own plugins for new bluetooth devices, or GPIO device interface on the raspberry pi.

The Main Dashboard
Shows the latest Temp/Humidity/VPD of the room.

View devices in the room
Power outlet devices can have On/OFF Schedules or Smart Controls, to automate fans, irrigation, etc.

Clicking on any of the values will let you see graphs and trends

Set up Smart Controls for Power Outlets
In this example, we set the controls to keep the room humidity between 55-60%. When the humidity gets too high, the fan is turned ON to pull in fresh dry air. After the humidity is at 55%, the fan turns off.


Rooms have a logbook
Keep notes about when you switch to 12/12, or when sprouts were germinated, etc.

Devices I have currently written plugins for:

Is this the sort of thing the community would be interested in?

19 Likes

This sounds like an interesting project.

3 Likes

Interesting, amazing what one can do fairly cheap nowadays. Something like this would definitely help me step up my tent game

1 Like

I absolutely love this idea. Now that I’ve moved I lost my drying room and am trying to figure out a new method that gives that quality I’ve had for 13-14 years now. Very very intrigued by this @firehead

1 Like

Oh hell yes! I love the clean and simple design, great job. Is it setup to also store historical data for each grow? The last time I worked with a rasp pi was building a fermentation chamber for beer brewing. That was a lifetime ago so I’m a bit rusty but love these types of projects.

2 Likes

It doesn’t currently store historical grow data, but it is an idea I’ve kicked around.
Mostly because storing weeks or months of data for multiple devices, every few minutes ends up being a LOT of data in the database. And that end up slowing down the system.

Currently, the data storage defaults to 7 days of history. But it can be adjusted in the settings page.

But, if I do implement tracking statistics for an entire grow period… It would just need to be hyper efficient. Like, maybe I only store daily snapshots of the min/max/avg of temperature, humidity, and vpd for the room.

I’ll see if I can come up with a real clean solution for that.

5 Likes

I gotcha and yea the snapshot data you mention makes the most sense. Looks like a really cool project you put together though, nice job!

1 Like

does it ever stop working if updates don’t come in? it says nothing is sent to the cloud and it’s all local, but smart homes have a tendency to stop working sometimes. it seems like it wouldn’t since it’s raspberry pi, but i have to ask. it looks like a really good implementation though and i’d use it. i love working with pi’s and pi zeroes, i just am not that good at writing complicated code. my hat is off to you sir.

i had a thought as well just now, if you networked it or hooked up a portable hard drive you could store historical data. would be nice for optimization if you had a historical timeline.

2 Likes

Using something like this to automate a tent into a “cannatrol” type system would be choice. Great idea :+1:

2 Likes

All,

Just an update… I haven’t worked on my Raspberry Pi automation in recent months (mostly, because it just works and I never need to check on it)

But, I’m now planning to go commercial with this as a product.

So, I’ve been busy last few weeks adding some new features, fixing some bugs, and writing some cool new plugins:

  • Email Alert (can also be used to SMS your mobile, useful to receive notifications if a fan has died and temperature is now too high… or, if the lights outlet says it is ON… but the light sensor says the room is still dark!)
  • IFTTT Alert (Send measurements to the IFTTT.com service, for integration with other smart device platforms)

I’m also currently working on a plugin that could send all the measurement data to a spreadsheet in your Google docs)

In the next coming weeks I’m going to launch a BETA test of the platform, and plan on giving away 5 complete systems (raspberry pi, software, hygrometers, soil sensors, and power outlets) for OG members, so I can get some additional feedback and suggestions before I go commercial with it.

Stay tuned!

15 Likes