From e62b8f3bc7d81e811127d2321e8a083f8567ea23 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Fri, 9 Mar 2018 12:25:13 -0500 Subject: [PATCH] Adding some new sensores, removing unused scripts --- .gitignore | 1 + customize.yaml | 8 ++------ scripts/jeff_is_moving.yaml | 7 ------- scripts/jeff_is_stationary.yaml | 7 ------- sensors/users.yaml | 21 --------------------- 5 files changed, 3 insertions(+), 41 deletions(-) delete mode 100644 scripts/jeff_is_moving.yaml delete mode 100644 scripts/jeff_is_stationary.yaml diff --git a/.gitignore b/.gitignore index d3581a1..302e57d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ secrets.yaml entity_registry.yaml .HA_VERSION zones.yaml +sensors/location.yaml *ios.conf *.log *.db diff --git a/customize.yaml b/customize.yaml index 2dd40bb..e7c20a6 100644 --- a/customize.yaml +++ b/customize.yaml @@ -88,22 +88,20 @@ sensor.pws_alerts: # Jeff # device_tracker.owntracks_jeffreystonesiphone: - #icon: mdi:human-male entity_picture: !secret JEFF_ICON friendly_name: Jeff sensor.jeffrey_location: - #icon: mdi:human-male entity_picture: !secret JEFF_ICON friendly_name: Jeff +sensor.jeff_location: + entity_picture: !secret JEFF_ICON sensor.jeff_destination: icon: mdi:google-maps name: "Jeffs Destination" device_tracker.jeffreystonesiphone: - #icon: mdi:human-male entity_picture: !secret JEFF_ICON friendly_name: Jeff device_tracker.jeffrey_377fadfe9d7e410fb71bd84c06547c00: - #icon: mdi:human-male entity_picture: !secret JEFF_ICON friendly_name: Jeff sensor.jeff_iphone_batt: @@ -129,11 +127,9 @@ sensor.jeff_ipad: # Kat ## device_tracker.katherinestonesiphone: - #icon: mdi:human-female entity_picture: !secret KAT_ICON friendly_name: Kat device_tracker.kat_2f1c672110dd491ea7dca9833d1c6cf5: - #icon: mdi:human-female entity_picture: !secret KAT_ICON friendly_name: Kat sensor.kat_iphone_batt: diff --git a/scripts/jeff_is_moving.yaml b/scripts/jeff_is_moving.yaml deleted file mode 100644 index 0017dee..0000000 --- a/scripts/jeff_is_moving.yaml +++ /dev/null @@ -1,7 +0,0 @@ -jeff_is_moving: - sequence: - - service: mqtt.publish - data: - topic: "jeff/location/status" - payload: "moving" - retain: true diff --git a/scripts/jeff_is_stationary.yaml b/scripts/jeff_is_stationary.yaml deleted file mode 100644 index 07cbc30..0000000 --- a/scripts/jeff_is_stationary.yaml +++ /dev/null @@ -1,7 +0,0 @@ -jeff_is_stationary: - sequence: - - service: mqtt.publish - data: - topic: "jeff/location/status" - payload: "stationary" - retain: true diff --git a/sensors/users.yaml b/sensors/users.yaml index f365f5b..569df77 100644 --- a/sensors/users.yaml +++ b/sensors/users.yaml @@ -1,26 +1,6 @@ - platform: mqtt name: "Jeff Destination" state_topic: "jeff/driving/destination" -- platform: mqtt - name: "Jeff Status" - state_topic: "jeff/location/status" -- platform: template - sensors: - jeff_lstatus: - friendly_name: Jeff is - unit_of_measurement: '' - value_template: >- - {%- if is_state("sensor.jeff_status", "moving") %} - moving - {% else %} - stationary - {%- endif %} - icon_template: >- - {%- if is_state("sensor.jeff_status", "moving") %} - mdi:bike - {% else %} - mdi:map-marker - {%- endif %} - platform: template sensors: family_presence: @@ -42,4 +22,3 @@ {% else %} mdi:sync-alert {%- endif %} -