mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-09-14 15:51:02 +00:00
Update everything to use Persons rather than the old device tracker #495
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- device_tracker.carlo
|
||||
- device_tracker.stacey
|
||||
- person.carlo
|
||||
- person.stacey
|
||||
from: 'not_home'
|
||||
to: 'home'
|
||||
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user