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?

  1. Aggregated state

Person presence

PreviousHomey AutomationsNextGeofency and webhooks

Last updated 5 years ago

Was this helpful?

For each person, I've created a logic boolean variable, such as i.e. presence-andreas

Strictly it is not needed to create an aggregate variable for presence, since I'm currently only using the Homey mobile app as input for this state. But the reason I've done this, is that I expect that I might want to add multiple input sources for this value at a later stage to improve reliability.

If you are happy with the iOS app, you may stick that that for presence tracking, but to increase reliability you may add multiple input sources. I can reccomend using Geofency for iOS users. . If you do not use iOS, most likely there is a similar app for Android. Life360 is another option.

For each person, I need two flows for each input source. If I need to expand this with multiple input sources later, the logic will be like:

  • If Andreas came home [mobile app], then set presence-andreas to true.

  • If Andreas left home [mobile app], then set presence-andreas to false.

  • If Andreas came home [geofency], then set presence-andreas to true.

  • If Andreas left home [geofency], then set presence-andreas to false.

I've documented how to setup Geofency