🌐 Zone Presence of People & Devices

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

GitHub Link Click Here

Smart tracking for smarter living! :dart:

Like this blueprint? Consider hitting the :heart: button below :+1:

Version: 1.1 :fire:

Need help? :eyes: See our FAQ: Click Here

:newspaper: The Automation:

  • Presence Detection:

    • The blueprint monitors selected people or devices within the chosen zone.
    • It checks whether the required minimum count is met for being inside or outside the zone.
  • Toggle Helper Control:

    Useful if you want a presence helper that can be updated in one location but used in many automations.

    • When conditions are met:
      • Turns the Toggle Helper ON after the configured delay.
    • When conditions are no longer met:
      • Turns the Toggle Helper OFF after the configured delay.
  • Bypass:

    • Allows you to enable or disable the automation.
  • Custom Actions (Optional):

    • Run additional actions when the automation turns ON or OFF.

:rocket: CHANGELOG

:shield: MY OTHER BLUEPRINTS

:bulb: Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time
:high_brightness: Smart Light - Entity - Sun Elevation - Ambient & Time Triggers
:infinity: Sensor Light Add On - Media & Movie Lights - House Alarm Lights - Smoke Alarm Lights & Exhaust Fans + More
:airplane: Holiday & Away Lighting
:shower: Bathroom Humidity Exhaust Fan
:low_battery: Low Battery Notifications & Actions
:vibration_mode: Appliance Notifications & Actions - Washing Machine - Clothes Dryer - Dish Washer - ETC
:loudspeaker: Notifications & Announcements
:calendar: Calendar Notifications & Actions
:round_pushpin: State Notifications & Actions
:battery: Battery Charger Notifications & Actions
:blue_book: Blueprint Update Notifications
:stop_button: Manual Control Status Tracker
:honeybee: Bee In The Hive Sensor
:robot: Android Notification Channel Manager
:toilet: Toilet Exhaust Fan with time delay
:hourglass_flowing_sand: Entity - Run ON Timer
:stopwatch: Trigger - Run ON Timer
:magic_wand: Manual light control with auto OFF
:door: Closet, Pantry, and Cupboard Lighting
:timer_clock: Timer
:thermometer: Temperature Control Fan
:snowflake: Temperature Control Exhaust Fan - Inverted
:eight_spoked_asterisk: Toggle Switch - Turn ON & OFF Entities
:nazar_amulet: Press Button - Turn ON & OFF Entities
:on: Switch - Turn ON & OFF Entities

Like this blueprint? Consider hitting the :heart: button below :+1:

9 Likes

:construction_worker_man: :construction: Reserved for FAQ :construction::construction_worker_woman:

FAQ

Blacky :grinning:

Initial release 1.0

New blueprint :partying_face: Hope you like it :wink:


If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

Thanks for the blueprint! I’m trying it out with my home and away automations.

Just thinking out loud, I’ve thought about asking if everyone is away on the home assistant voice before turning off lights or setting the AC in away mode. I have two children who don’t always bring their phone with them when we head out of the house. I could probably do something similar with mmWave but I don’t have any of those sensors yet.

Anyways, Thanks again!

@Blacky, quick question, for the people and device state triggers, should they trigger on attribute change as well as state change. I noticed the automation was triggering a lot even though everyone was home all day due to minor changes in gps coordinates.

Current Triggers:

- trigger: state
  id: t0
  entity_id: !input people
- trigger: state
  id: t1
  entity_id: !input devices

What I would expect to prevent triggering on attribute change:

- trigger: state
  id: t0
  entity_id: !input people
  to: null
- trigger: state
  id: t1
  entity_id: !input devices
  to: null

@MakingNate

Zone / Presence is tricky… it can work for some but not for all. You may be finding out it is not for you.

No, People and devices have a state for zone.

Some people like using persons but id if you just use a devices it better to understand as persons are always linked to a device.

Presence Helper Option

This is what you should use for all your automations.

Depending if your using Inside Zone or Outside Zone look at the delays. So say your using it to track Inside Zone This could trigger a light to come on when you arrive home but when you leave you will be outside the zone or you may have minor changes in gps coordinates. So your Delay Before Turning OFF is the buffer.

You may be using it in the sensor light bypass option 2. This will be Outside Zone. So when your outside the zone it will turn ON but you then use the Delay Before Turning ON so the lights stay ON untill your gone or you have minor changes in gps coordinates. Again the buffer. Dogs and cats wont trigger the motion sensor when your not home.

You could always increase your zone area but I recommend using the Presence Helper Option for your automation.

Blacky :grinning:

So, my home zone is working as expected. When people are home their device tracker and person are stable. But that does not stop updates to the GPS coordinates attribute associated with device tracker or person. My question is simply, if I’m Home, and my device tracker or person updates its attributes but the state still reads “home” and has not changed, should this automation trigger? If so, why? Happy to add more details and screenshots if I’m not explaining things well.

EDIT: I reread the above reply, sorry, I’m a bit under the weather today. It seems it should not trigger on attribute change. But it does. In my testing this seems to be due to the missing ‘to: null’ on the trigger, limiting the trigger to only state changes and not triggering on attribute changes.

1 Like

@MakingNate

Ah I thought it wasn’t working but your talking about the additional triggers. Yes we can add this to stop these from happening… nice one… thanks for doing the testing!

I update it now.

Blacky :grinning:

1 Like

New Update 1.1

Smart tracking for smarter living! :dart:

Maintenance :toolbox:

  • Updated the trigger to stop additional attribute change triggers. Thanks to @MakingNate for doing the testing!

If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

1 Like