Hackernoon logoHow to Take an Advantage Of Home Automation by@eyecreality

How to Take an Advantage Of Home Automation

Andrew Crider Hacker Noon profile picture

@eyecrealityAndrew Crider

https://recursiveautomation.com/about/

A couple of weeks ago I created an automation to change the light in my living room for when I played video games.

Lights in my apartment dimmed, ambient lights came up around the television, with only a push of a button!

When I was finished playing, I pushed the button again, and depending on the time of day, my lights returned to their normal status. Alexa also thanked me for playing.

But there were some small nagging issues:

  • My partner was accidentally hitting the button and changing the lights in the middle of the day.
  • I was losing track of time in my gameplay sessions, playing longer than I had intended.

In a previous article, I talked about how to approach our home automation: Genesis of our Automated Life

By applying a recursive approach, we follow this cycle:

Recursive Automation Cycle

Plan

When I first started playing my video game, I turned on the ambient lights around my TV. However, the lights were washed out by the other lights in the apartment. So I came up with a plan to reduce that issue:

Original Plan for Ambient Lighting

By planning out what I wanted to do, I was able to identify everything that I wanted to build out. This allowed me to make sure I had all the components that I needed and had identified all the tasks.

Build

With all my tasks laid out, I set to work with Home Assistant:

  1. Home Assistant registers the initial button push and sets a helper variable
  2. Home Assistant dims the lights that are not in the current Hue Entertainment Area
  3. When the button is pressed again, Home Assistant changes the lights based on the time.
  4. Alexa gives me a little voice notification.

Activating The Light Scene, Changing Lights Based on Day, and Alexa Notification

Review

I was enjoying my immersive gaming experience, but it wasn’t quite complete.

I noticed the following issues:

  1. All lights in the apartment would change at odd times — this was being caused by inadvertent button pushes
  2. I was losing track of time within the immersive experience
  3. Changing the lights based on the time of day needed to be duplicated across many different automations

After my review, I now have a new plan:

Post Review Plan

Iterate

So now I have a new list of tasks (showcased in Dark Blue in the above plan)

  • Prevent inadvertent button pushes — I moved the Button from under our coffee table to under a shelf in our bookcase.
Not everything needs to be automated!
  • I was losing track of time during my game sessions — I created and implemented a timer that had an audio and visual component

Timers & Alexa Notification

  • Duplicating time-based light automations — I broke the automation into multiple parts so that I can call the light reset from other automations.

I’ve already enhanced my Pomodoro Timer with the time-based light adjustment so at the end of my work sessions my lights change.

Automate your Pomodoro Process Today

Automating your environment based on stimuli is the easiest and most enjoyable part of home automation. Approaching your home automation recursively helps to change your mindset.

You are not turning on lights automatically, you are evolving your home.

Building cycles into your process will allow you to grow your automations so that they get better and more cohesive.

Also published at https://medium.com/recursive-automation-by-eyecreality/a-story-of-ambient-lights-automation-and-a-happy-partner-b97936cf45d4

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.