Update everything to use Persons rather than the old device tracker #495

This commit is contained in:
ccostan
2020-08-08 19:10:36 -04:00
parent d283ca3382
commit a723c6baaf
11 changed files with 18 additions and 18 deletions

View File

@@ -11,8 +11,8 @@
trigger:
- platform: state
entity_id:
- device_tracker.carlo
- device_tracker.stacey
- person.carlo
- person.stacey
from: 'not_home'
to: 'home'

View File

@@ -28,7 +28,7 @@
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
state: 'on'
- condition: state
entity_id: device_tracker.carlo
entity_id: person.carlo
state: 'not_home'
- condition: or
conditions:
@@ -36,7 +36,7 @@
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'on'
- condition: state
entity_id: device_tracker.stacey
entity_id: person.stacey
state: 'not_home'
action:

View File

@@ -47,7 +47,7 @@
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
state: 'off'
- condition: state
entity_id: device_tracker.carlo
entity_id: person.carlo
state: 'not_home'
- condition: or
conditions:
@@ -55,7 +55,7 @@
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'off'
- condition: state
entity_id: device_tracker.stacey
entity_id: person.stacey
state: 'not_home'
- condition: or
conditions:

View File

@@ -35,8 +35,8 @@
- service: switch.turn_on
entity_id: switch.master_bathroom_accent_1
- wait_template: >-
{{ not is_state('binary_sensor.sleepnumber_carlo_stacey_is_in_bed', 'off') or is_state('device_tracker.stacey', 'not_home')}}
{{ not is_state('binary_sensor.sleepnumber_carlo_stacey_is_in_bed', 'off') or is_state('person.stacey', 'not_home')}}
- wait_template: >-
{{ not is_state('binary_sensor.sleepnumber_carlo_carlo_is_in_bed', 'off') or is_state('device_tracker.carlo', 'not_home') }}
{{ not is_state('binary_sensor.sleepnumber_carlo_carlo_is_in_bed', 'off') or is_state('person.carlo', 'not_home') }}
- service: switch.turn_off
entity_id: group.master_bathroom_accents