From fed3ea432463a774f7a16f6ef30ab84f2534854f Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Mon, 25 Nov 2019 21:25:57 -0500 Subject: [PATCH] Adding new stat sensors and stat tweets --- config/sensors/house.yaml | 11 +++++++---- config/templates/twitter_stats.yaml | 3 ++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config/sensors/house.yaml b/config/sensors/house.yaml index 5c973b6..c6ff0ad 100755 --- a/config/sensors/house.yaml +++ b/config/sensors/house.yaml @@ -57,11 +57,11 @@ end: '{{ now() }}' duration: days: 7 -- platform: min_max +- platform: statistics name: Outside Temp Stats entity_ids: - sensor.accurite_back_porch_temperature -- platform: min_max +- platform: statistics name: Garage Temp Stats entity_ids: - sensor.accurite_garage_temperature @@ -112,9 +112,12 @@ end: '{{ now() }}' duration: hours: 24 -- platform: min_max +- platform: statistics name: Cloud Coverage Stats - entity_ids: sensor.dark_sky_cloud_coverage + entity_id: sensor.dark_sky_cloud_coverage +- platform: statistics + name: Visibility Stats + entity_id: sensor.dark_sky_visibility - platform: history_stats name: Cooling Last Month entity_id: sensor.hvac_action diff --git a/config/templates/twitter_stats.yaml b/config/templates/twitter_stats.yaml index 1b898dd..80240bd 100755 --- a/config/templates/twitter_stats.yaml +++ b/config/templates/twitter_stats.yaml @@ -16,7 +16,8 @@ "The average temperature in the garage is {{states.sensor.garage_temp_stats.attributes.mean | round}} degrees fahrenheit.", "The HVAC has cooled the house for {{states.sensor.cooling_last_month.attributes.value}} and heated for {{states.sensor.heating_last_month.attributes.value}} in the last month", "The HVAC has cooled the house for {{states.sensor.cooling_last_day.attributes.value}} and heated for {{states.sensor.heating_last_day.attributes.value}} in the last 24 hours", - "Clouds cover {{states.sensor.garage_temp_stats.attributes.mean | round}} of the sky above Anchorage House on average." + "Clouds cover {{states.sensor.cloud_coverage_stats.attributes.mean | round}} of the sky above Anchorage House on average.", + "Look at that! Disney is currently {{ states.sensor.disney.state | round(2) }} a share. (https://github.com/thejeffreystone/alpha_vantage_to_mqtt)" ] | random -}} {%- endmacro -%} {%- macro getTags() -%}