Update everything to use Persons rather than the old device tracker #495
|
@ -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
|
||||
|
|
|
@ -75,7 +75,7 @@ automation:
|
|||
who: 'carlo'
|
||||
apns_id: 'Medicine'
|
||||
- wait_template: >-
|
||||
{{ states.device_tracker.carlo.state == 'home' }}
|
||||
{{ states.person.carlo.state == 'home' }}
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
title: 'Medicine Reminder'
|
||||
|
@ -92,14 +92,14 @@ automation:
|
|||
- platform: time
|
||||
at: '21:30:00'
|
||||
- platform: state
|
||||
entity_id: device_tracker.carlo
|
||||
entity_id: person.carlo
|
||||
to: 'home'
|
||||
|
||||
condition:
|
||||
- condition: time
|
||||
after: '21:30:00'
|
||||
- condition: state
|
||||
entity_id: device_tracker.carlo
|
||||
entity_id: person.carlo
|
||||
state: 'home'
|
||||
- condition: state
|
||||
entity_id: input_boolean.medicine
|
||||
|
|
|
@ -34,7 +34,7 @@ automation:
|
|||
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:
|
||||
|
@ -42,7 +42,7 @@ automation:
|
|||
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:
|
||||
|
|
|
@ -758,9 +758,9 @@
|
|||
<text id="text960" transform="matrix(1 0 0 1 55.1017 427.5831)" style="font-family:'ArialMT'; font-size:12px;">XX</text>
|
||||
</g>
|
||||
|
||||
<text id="device_tracker.carlo" inkscape:label="#text4437" transform="matrix(1 0 0 1 36.2953 243.6862)" style="fill:#E7376B;enable-background:new ; font-family:'Helvetica'; font-size:26px;">away</text>
|
||||
<text id="person.carlo" inkscape:label="#text4437" transform="matrix(1 0 0 1 36.2953 243.6862)" style="fill:#E7376B;enable-background:new ; font-family:'Helvetica'; font-size:26px;">away</text>
|
||||
|
||||
<text id="device_tracker.stacey" inkscape:label="#text965" transform="matrix(1 0 0 1 161.0093 243.6862)" style="fill:#BDF271;enable-background:new ; font-family:'Helvetica'; font-size:26px;">home</text>
|
||||
<text id="person.stacey" inkscape:label="#text965" transform="matrix(1 0 0 1 161.0093 243.6862)" style="fill:#BDF271;enable-background:new ; font-family:'Helvetica'; font-size:26px;">home</text>
|
||||
<path id="light.led_outdoor_den" inkscape:connector-curvature="0" d="M389.5,54h-67.1c-1.3,0-2.3-0.7-2.3-1.6v-0.8
|
||||
c0-0.9,1-1.6,2.3-1.6h67.1c1.3,0,2.3,0.7,2.3,1.6v0.8C391.8,53.3,390.8,54,389.5,54z"/>
|
||||
<g id="g378" transform="matrix(1.1743602,0,0,1,-84.987569,-32.010868)">
|
||||
|
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
|
@ -68,8 +68,8 @@ rules:
|
|||
|
||||
- name: Family
|
||||
entities:
|
||||
- device_tracker.carlo
|
||||
- device_tracker.stacey
|
||||
- person.carlo
|
||||
- person.stacey
|
||||
- device_tracker.juicebox
|
||||
text_template: '${entity.state ? entity.state.replace("not_home", "away") : "undefined"}'
|
||||
|
||||
|
|
|
@ -6706,7 +6706,7 @@
|
|||
style="font-style:normal;font-weight:normal;font-size:18.67578125px;line-height:1.25;font-family:sans-serif;text-align:end;letter-spacing:0px;word-spacing:0px;text-anchor:end;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.40068376"
|
||||
x="-168.23798"
|
||||
y="-50.657494"
|
||||
id="device_tracker.carlo"
|
||||
id="person.carlo"
|
||||
inkscape:label="#text1979"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan1977-2"
|
||||
|
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 190 KiB |