From 328ecf126c61e3e5f4fdf2529254ebc83189e65e Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Fri, 12 Jul 2019 16:35:36 -0400 Subject: [PATCH] Minor Tweeks --- .gitignore | 2 ++ automations.yaml | 6 +++--- scripts.yaml | 2 +- sensors/github.yaml | 9 ++++++++- sensors/house.yaml | 44 ++++++++++++++++++++++++++++++++++++++++-- sensors/speedtest.yaml | 16 +++++++-------- 6 files changed, 64 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index d3b5ab3..f534185 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,5 @@ secrets.yaml ip_bans.yaml ._* google_calendars.yaml +known_devices* +zones.yaml diff --git a/automations.yaml b/automations.yaml index 9169f09..3b3ae69 100644 --- a/automations.yaml +++ b/automations.yaml @@ -721,8 +721,8 @@ alias: Kat Pill Reminder initial_state: true trigger: - - at: 07:35:00 - platform: time + - platform: template + value_template: "{{ states('sensor.time') == (state_attr('input_datetime.kat_pill_reminder', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}" condition: - condition: state entity_id: input_boolean.text_notify_kat @@ -751,4 +751,4 @@ action: - service: script.twitter_new_ha - service: input_boolean.turn_off - entity_id: input_boolean.new_ha_announcement \ No newline at end of file + entity_id: input_boolean.new_ha_announcement diff --git a/scripts.yaml b/scripts.yaml index 89205c8..faa596f 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -343,4 +343,4 @@ voice_reports_off: - service: input_boolean.turn_off entity_id: input_boolean.play_weather_report - service: script.turn_off - entity_id: script.weather_report \ No newline at end of file + entity_id: script.weather_report diff --git a/sensors/github.yaml b/sensors/github.yaml index 4fd14ac..5600578 100644 --- a/sensors/github.yaml +++ b/sensors/github.yaml @@ -2,5 +2,12 @@ access_token: !secret github_token repositories: - path: 'thejeffreystone/home-assistant-configuration' - +- platform: command_line + command: 'curl https://api.github.com/repos/thejeffreystone/home-assistant-configuration' + name: GitHub Stats + scan_interval: 20000 + value_template: '{{ value_json.name }}' + json_attributes: + - open_issues + - stargazers_count diff --git a/sensors/house.yaml b/sensors/house.yaml index 088a088..28f90c7 100644 --- a/sensors/house.yaml +++ b/sensors/house.yaml @@ -3,12 +3,52 @@ state_topic: "house/washer/status" - platform: history_stats name: Speech time - entity_id: media_player.hass_speker + entity_id: media_player.hass_speaker state: 'playing' type: time end: '{{ now() }}' duration: hours: 24 +- platform: history_stats + name: AppleTV time + entity_id: media_player.apple_tv + state: 'playing' + type: time + end: '{{ now() }}' + duration: + hours: 24 +- platform: history_stats + name: Roku time + entity_id: media_player.bedroom + state: 'playing' + type: time + end: '{{ now() }}' + duration: + hours: 24 +- platform: history_stats + name: Washer Time + entity_id: sensor.washer_status + state: 'running' + type: time + end: '{{ now() }}' + duration: + hours: 24 +- platform: min_max + name: Outside Temp Stats + entity_ids: + - sensor.accurite_back_porch_temperature +- platform: min_max + name: Garage Temp Stats + entity_ids: + - sensor.accurite_garage_temperature +- platform: min_max + name: Inside Temp Stats + entity_ids: + - sensor.craft_room_temperature + - sensor.kitchen_temperature + - sensor.living_room_temperature + - sensor.master_bedroom_temperature + - sensor.skylar_room_temperature - platform: template sensors: sensor_count: @@ -107,4 +147,4 @@ {{loop.length}} {% endif %} {%- endfor -%} - {%- endfor -%} \ No newline at end of file + {%- endfor -%} diff --git a/sensors/speedtest.yaml b/sensors/speedtest.yaml index 796933a..fafb695 100644 --- a/sensors/speedtest.yaml +++ b/sensors/speedtest.yaml @@ -1,13 +1,13 @@ -- platform: speedtest - scan_interval: - hours: 6 - monitored_conditions: - - ping - - download - - upload +#- platform: speedtest +# scan_interval: +# hours: 6 +# monitored_conditions: +# - ping +# - download +# - upload - platform: mqtt name: "network down" state_topic: "house/speedtest/down" - platform: mqtt name: "network up" - state_topic: "house/speedtest/up" \ No newline at end of file + state_topic: "house/speedtest/up"