Automation and Sensor Updates

Cleaned up Devices
Added Sensors for Computers
Cleaned up device based automations
This commit is contained in:
Jeffrey Stone 2017-02-03 15:00:25 -05:00
parent 492acfcb54
commit d4075b3a4b
7 changed files with 36 additions and 16 deletions

View File

@ -9,4 +9,4 @@ action:
entity_id: scene.livingroom_night
- service: notify.notify
data:
title: "Shutting down for the night, Good Night"
title: "HA: Shutting down for the night, Good Night"

View File

@ -3,7 +3,7 @@ trigger:
platform: zone
event: enter
zone: zone.home
entity_id: device_tracker.owntracks_jeffreysphone
entity_id: device_tracker.jeffreysiphone
action:
- service: notify.notify
data:

View File

@ -3,7 +3,7 @@ trigger:
platform: zone
event: leave
zone: zone.home
entity_id: device_tracker.owntracks_jeffreysphone
entity_id: device_tracker.jeffreysiphone
action:
- service: notify.notify
data:

View File

@ -3,7 +3,7 @@ trigger:
platform: zone
event: enter
zone: zone.home
entity_id: device_tracker.katheriesiphone_2
entity_id: device_tracker.katherinesiphone
action:
- service: notify.notify
data:

View File

@ -3,7 +3,7 @@ trigger:
platform: zone
event: leave
zone: zone.home
entity_id: device_tracker.katheriesiphone_2
entity_id: device_tracker.katherinesiphone
action:
- service: notify.notify
data:

View File

@ -37,17 +37,17 @@ environment:
### Grops ###
Family:
- device_tracker.owntracks_jeffreysphone
- device_tracker.katheriesiphone_2
- device_tracker.jeffreysiphone
- device_tracker.katherinesiphone
Jeffrey:
- device_tracker.owntracks_jeffreysphone
- device_tracker.jeffreysiphone
- sensor.jeff_iphone_batt
- input_select.jeff_status
- sensor.jeff_ett_home
Katherine:
- device_tracker.katheriesiphone_2
- device_tracker.katherinesiphone
- sensor.kat_iphone_batt
- sensor.kat_ett_home
@ -104,10 +104,10 @@ Home Automation:
# - device_tracker.ipcam_00626e46eb09_1
Computers:
- device_tracker.jeffreyonesipad
- device_tracker.jeffreysmbp
- device_tracker.jstonemac
- device_tracker.katherinesipad
- sesnor.jeff_ipad
- sensor.jeff_mbp
- sensor.jeff_work_mbp
- sensor.kat_ipad
- sensor.kat_mini
Servers:

View File

@ -4,6 +4,10 @@
friendly_name: 'Amazon Dot LR'
value_template: "{{ 'Online' if is_state('device_tracker.kindlecdf98981f', 'home') else 'Offline' }}"
amazon_dot_kn:
friendly_name: 'Amazon Dot KN'
value_template: "{{ 'Online' if is_state('device_tracker.kindle23d7b37a0', 'home') else 'Offline' }}"
circle:
friendly_name: 'Disney Circle'
value_template: "{{ 'Online' if is_state('device_tracker.circle', 'home') else 'Offline' }}"
@ -48,6 +52,22 @@
friendly_name: "Kat's Mini"
value_template: "{{ 'Online' if is_state('device_tracker.katherinesmini', 'home') else 'Offline' }}"
jeff_mbp:
friendly_name: "Jeff's MBP"
value_template: "{{ 'Online' if is_state('device_tracker.jeffreysmbp', 'home') else 'Offline' }}"
jeff_work_mbp:
friendly_name: "Jeff's Work MBP"
value_template: "{{ 'Online' if is_state('device_tracker.jstonemac', 'home') else 'Offline' }}"
jeff_ipad:
friendly_name: "Jeff's iPad"
value_template: "{{ 'Online' if is_state('device_tracker.jeffreysipad', 'home') else 'Offline' }}"
kat_ipad:
friendly_name: "Kat's iPad"
value_template: "{{ 'Online' if is_state('device_tracker.katherinesipad', 'home') else 'Offline' }}"
jeff_iphone_batt:
unit_of_measurement: '%'
value_template: >-
@ -60,8 +80,8 @@
kat_iphone_batt:
unit_of_measurement: '%'
value_template: >-
{%- if states.device_tracker.katheriesiphone_2.attributes.battery %}
{{ states.device_tracker.katheriesiphone_2.attributes.battery | round(1) }}
{%- if states.device_tracker.katherinesiphone.attributes.battery %}
{{ states.device_tracker.katherinesiphone.attributes.battery | round(1) }}
{% else %}
{{ states.sensor.kat_iphone_batt.state }}
{%- endif %}
{%- endif %}