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 entity_id: scene.livingroom_night
- service: notify.notify - service: notify.notify
data: 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 platform: zone
event: enter event: enter
zone: zone.home zone: zone.home
entity_id: device_tracker.owntracks_jeffreysphone entity_id: device_tracker.jeffreysiphone
action: action:
- service: notify.notify - service: notify.notify
data: data:

View File

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

View File

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

View File

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

View File

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

View File

@ -4,6 +4,10 @@
friendly_name: 'Amazon Dot LR' friendly_name: 'Amazon Dot LR'
value_template: "{{ 'Online' if is_state('device_tracker.kindlecdf98981f', 'home') else 'Offline' }}" 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: circle:
friendly_name: 'Disney Circle' friendly_name: 'Disney Circle'
value_template: "{{ 'Online' if is_state('device_tracker.circle', 'home') else 'Offline' }}" value_template: "{{ 'Online' if is_state('device_tracker.circle', 'home') else 'Offline' }}"
@ -48,6 +52,22 @@
friendly_name: "Kat's Mini" friendly_name: "Kat's Mini"
value_template: "{{ 'Online' if is_state('device_tracker.katherinesmini', 'home') else 'Offline' }}" 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: jeff_iphone_batt:
unit_of_measurement: '%' unit_of_measurement: '%'
value_template: >- value_template: >-
@ -60,8 +80,8 @@
kat_iphone_batt: kat_iphone_batt:
unit_of_measurement: '%' unit_of_measurement: '%'
value_template: >- value_template: >-
{%- if states.device_tracker.katheriesiphone_2.attributes.battery %} {%- if states.device_tracker.katherinesiphone.attributes.battery %}
{{ states.device_tracker.katheriesiphone_2.attributes.battery | round(1) }} {{ states.device_tracker.katherinesiphone.attributes.battery | round(1) }}
{% else %} {% else %}
{{ states.sensor.kat_iphone_batt.state }} {{ states.sensor.kat_iphone_batt.state }}
{%- endif %} {%- endif %}