Homey
  • Homey Automations
  • Aggregated state
    • Person presence
      • Geofency and webhooks
    • Home state
    • Room and floor presence v2
    • Room and floor presence v1
    • Time table
    • Dark or bright
    • TV
    • Ventilation
      • CO2
      • Humidity bathrooms
  • Lighting
    • Scenes
    • Scene activations
  • Rooms
    • Childrens room
    • Guest room
    • Bathrooms
  • Advanced API usage
    • Getting a bearer token
  • Battery
    • Battery tracking
  • Custom integrations
    • Influxdb and Grafana
    • Flexit ventilation
    • Water metering
    • Telia data plan
    • Trondheim folkebibliotek
    • SBanken
    • Badetemperatur
    • Is it rainy? (yr.no)
  • Music
    • Music
  • Voice
    • Setup
    • Overview
Powered by GitBook
On this page

Was this helpful?

Homey Automations

My smart home automations documented.

NextPerson presence

Last updated 3 years ago

Was this helpful?

Here is the overall architecture of my most of my automations.

In order to maintain more advanced logic for your ligthing, music, temperature etc, I reccomend to use multiple layers of state as illustrated in the figure above.

Scenes represent one state of multiple devices. I typically create scenes for each room. Examples of scenes can be "Bathroom night", "Bathroom dimmed", "Bathroom normal", "Living room dimmed", "Living room TV", "Living room dinner".

Where to store state?

Getting started

Here is my reccomended steps to getting started

Test each step independently by inspecting the logic view on your phone.

Good luck!

Aggregated states are varaibles representing a simple value for something. Most of my aggregated states are boolean, such as "is the TV on", "is the sun outside above 30 degrees above horizon", "is someone at home", "is there someone present in the living room". Often multiple sensors are involved in updating an aggregated state, such as a combination of door sensors and motion sensors to represent presence in a room, or multiple presence devices for multiple people to represent whether or not somebody is at home. I also have a few aggregated states that are strings, and not boolean, such as the , which can have one of a few predefined text values.

Currently I am using to store variables. It has the same functionality as the built-in logic, but in addition it has a card that triggers when one of a list of variables is changed. This is crucial functinoality to implement the model above. Therefore I am using better logic for now. If the buit-in logic later gets the same functionality I will switch back.

Setup logic variables for presence -

Add a guest virtual device, and home

Then

And now you are ready to sew everything together with

timeperiod
better logic
Person presence
setup an aggregated logic for
Create scene variables and scene flows for your rooms
Setup a time table
setup room and floor presence
Scene activations