Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95925

Device Tracker Timing

$
0
0

@jjudson wrote:

I’m still working with a simple automation to turn on the lights when an individual comes home. For this to function properly, I only want this to occur when no one is currently home, and a tracked person arrives. The basic .yaml file I came up with for this is:

- id: '1578666729834'
  alias: Interior lights on when front door unlocks after sunset
  description: ''
  trigger:
  - entity_id: lock.schlage_allegion_be469_touchscreen_deadbolt_locked
    platform: state
    to: unlocked
  condition:
  - condition: or
    conditions:
    - after: sunset
      after_offset: "-01:30:00"
      condition: sun
    - before: sunrise
      condition: sun
  - condition: and
    conditions:
      - condition: state
        entity_id: 'device_tracker.donnas_iphone'
        state: 'away'
      - condition: state
        entity_id: 'device_tracker.jons_iphone'
        state: 'away'
      - condition: state
        entity_id: 'device_tracker.device_name_here'
        state: 'away'
  action:
  - scene: scene.front_door_unlock_lights_on

The one thing I’ve noticed is that the iPhones are latching onto the system while coming up the walkway, which kind of defeats the automation because it then assumes someone is home prior to the door being unlocked. So my question is this:

Is there a way to set a timer to allow initiation of this automation as someone enters the fence and comes into the house after the device has registered that person as home?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>