Lots of updates:

- Updated .gitignore to explicitly allow files and folders but block
everything else.
- Added automations for Kat's Phone
- Updated Kat's Phone used in Tracking
- Added Google Time to Home for Kat
- Reducing the messages being sent to pushbullet.
This commit is contained in:
Jeffrey Stone 2017-01-28 09:30:56 -05:00
parent 83047d0fa8
commit 5defb5cff4
20 changed files with 173 additions and 17 deletions

8
.gitignore vendored
View File

@ -1 +1,9 @@
/*
!/alexa
!/automations
!/lights
!/scripts
!/sensors
!/switches
!*.yaml
!README.md

View File

@ -19,5 +19,8 @@
#- !include automations/jeff_driving.yaml
#- !include automations/jeff_walking.yaml
#- !include automations/jeff_driving.yaml
# Zone
# Kat
- !include automations/kat_work_enter.yaml
- !include automations/kat_work_leave.yaml
- !include automations/kat_home_enter.yaml
- !include automations/kat_home_leave.yaml

View File

@ -0,0 +1,10 @@
alias: "Kat Arrives Home"
trigger:
platform: zone
event: enter
zone: zone.home
entity_id: device_tracker.katheriesiphone_2
action:
- service: notify.notify
data:
message: "Kat arrived home"

View File

@ -0,0 +1,10 @@
alias: "Kat Leaves Home"
trigger:
platform: zone
event: leave
zone: zone.home
entity_id: device_tracker.katheriesiphone_2
action:
- service: notify.notify
data:
message: "Kat left home"

View File

@ -0,0 +1,10 @@
alias: "Kat Arrives Home"
trigger:
platform: zone
event: enter
zone: zone.zoo_atlanta
entity_id: device_tracker.katheriesiphone_2
action:
- service: notify.notify
data:
message: "Kat arrived at Zoo Atlanta"

View File

@ -0,0 +1,10 @@
alias: "Kat Leaves Home"
trigger:
platform: zone
event: leave
zone: zone.home
entity_id: device_tracker.katheriesiphone_2
action:
- service: notify.notify
data:
message: "Kat left Zoo Atlanta"

View File

@ -86,7 +86,7 @@ sensor.jeff_ett_home:
friendly_name: "Jeffs ETA Home"
icon: mdi:car
device_tracker.katherinestonesiphone:
device_tracker.katheriesiphone_2:
#icon: mdi:human-female
entity_picture: !secret KAT_ICON
friendly_name: Kat

67
devices.yaml Normal file
View File

@ -0,0 +1,67 @@
- platform: template
sensors:
amazon_dot_lr:
friendly_name: 'Amazon Dot LR'
value_template: "{{ 'Online' if is_state('device_tracker.kindlecdf98981f', 'home') else 'Offline' }}"
circle:
friendly_name: 'Disney Circle'
value_template: "{{ 'Online' if is_state('device_tracker.circle', 'home') else 'Offline' }}"
tycho:
friendly_name: 'tycho'
value_template: "{{ 'Online' if is_state('device_tracker.jarvis', 'home') else 'Offline' }}"
tightbeam:
friendly_name: 'tightbeam'
value_template: "{{ 'Online' if is_state('device_tracker.tightbeam', 'home') else 'Offline' }}"
appletv:
friendly_name: 'Apple Tv'
value_template: "{{ 'Online' if is_state('device_tracker.appletv', 'home') else 'Offline' }}"
xboxone:
friendly_name: 'xboxone'
value_template: "{{ 'Online' if is_state('device_tracker.xboxone', 'home') else 'Offline' }}"
chromecast:
friendly_name: 'Chromecast'
value_template: "{{ 'Online' if is_state('device_tracker.chromecast', 'home') else 'Offline' }}"
smartthings:
friendly_name: 'SmartThings'
value_template: "{{ 'Online' if is_state('device_tracker.d052a8170fef', 'home') else 'Offline' }}"
samsungtv:
friendly_name: 'Samsung Tv'
value_template: "{{ 'Online' if is_state('device_tracker.c4731ecec013', 'home') else 'Offline' }}"
honeywell:
friendly_name: 'Honeywell'
value_template: "{{ 'Online' if is_state('device_tracker.gateway2f3bca', 'home') else 'Offline' }}"
router:
friendly_name: 'Asus Router'
value_template: "{{ 'Online' if is_state('device_tracker.routerasuscom', 'home') else 'Offline' }}"
kat_mini:
friendly_name: "Kat's Mini"
value_template: "{{ 'Online' if is_state('device_tracker.katherinesmini', 'home') else 'Offline' }}"
jeff_iphone_batt:
unit_of_measurement: '%'
value_template: >-
{%- if states.device_tracker.jeffreysiphone.attributes.battery %}
{{ states.device_tracker.jeffreysiphone.attributes.battery | round(1) }}
{% else %}
{{ states.sensor.jeff_iphone_batt.state }}
{%- endif %}
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) }}
{% else %}
{{ states.sensor.kat_iphone_batt.state }}
{%- endif %}

View File

@ -50,7 +50,7 @@ Jeff Trackers:
- device_tracker.jeffreysiphone
Katherine:
- device_tracker.katherinestonesiphone
- device_tracker.katheriesiphone_2
- sensor.kat_iphone_batt
Thermostat:

9
input_select.yaml Normal file
View File

@ -0,0 +1,9 @@
jeff_status:
name: Jeff Status
options:
- driving
- stationary
- sleeping
- walking
- moving
initial: stationary

16
scenes.yaml Normal file
View File

@ -0,0 +1,16 @@
- name: livingroom normal
entities:
light.tower_lamp:
state: on
brightness: 100
- name: livingroom dim
entities:
light.tower_lamp:
state: on
brightness: 40
- name: livingroom night
entities:
light.tower_lamp:
state: on
brightness: 10

5
scripts.yaml Normal file
View File

@ -0,0 +1,5 @@
refresh_devices: !include scripts/refresh_devices.yaml
inside_all_on: !include scripts/inside_all_on.yaml
outside_all_on: !include scripts/outside_all_on.yaml
inside_all_off: !include scripts/inside_all_off.yaml
outside_all_off: !include scripts/outside_all_off.yaml

View File

@ -8,5 +8,4 @@ sequence:
entity_id: switch.tower_lamp
- service: notify.notify
data:
title: 'Turning inside lights off'
message: "Inside lights are off!"
message: "Inside lights are off"

View File

@ -11,5 +11,4 @@ sequence:
entity_id: scene.livingroom_normal
- service: notify.notify
data:
title: 'Inside lights are on'
message: "Inside lights are on!"
message: "Inside lights are on"

View File

@ -17,5 +17,4 @@ sequence:
entity_id: switch.front_porch_right
- service: notify.notify
data:
title: 'Outside lights are off'
message: "Outside lights are off!"
message: "Outside lights are off"

View File

@ -14,8 +14,7 @@ sequence:
entity_id: switch.front_porch_left
- service: switch.turn_on
data:
entity_id: switch.front_porch_right
entity_id: switch.front_porch_right
- service: notify.notify
data:
title: 'Outside lights are on'
message: "Outside lights are on!"
message: "Outside lights are on"

View File

@ -2,4 +2,4 @@ sequence:
- service: mqtt.publish
data:
topic: "owntracks/owntracks/jeffreysphone/cmd"
payload_template: '{"_type":"cmd","action":"reportLocation"}'
payload_template: '{"_type":"cmd","action":"reportLocation"}'

View File

@ -60,8 +60,8 @@
kat_iphone_batt:
unit_of_measurement: '%'
value_template: >-
{%- if states.device_tracker.katherinestonesiphone.attributes.battery %}
{{ states.device_tracker.katherinestonesiphone.attributes.battery | round(1) }}
{%- if states.device_tracker.katheriesiphone_2.attributes.battery %}
{{ states.device_tracker.katheriesiphone_2.attributes.battery | round(1) }}
{% else %}
{{ states.sensor.kat_iphone_batt.state }}
{%- endif %}

View File

@ -2,4 +2,9 @@
name: "Jeff ETT Home"
api_key: !secret google_api
origin: device_tracker.owntracks_jeffreysphone
destination: zone.home
destination: zone.home
- platform: google_travel_time
name: "Kat ETT Home"
api_key: !secret google_api
origin: device_tracker.katheriesiphone_2
destination: zone.home

7
switches/garage.yaml Normal file
View File

@ -0,0 +1,7 @@
- platform: mqtt
name: "Garage Door"
state_topic: "smartthings/Garage Door/door"
command_topic: "smartthings/Garage Door/door"
payload_on: "open"
payload_off: "closed"
retain: true