Adding new stat sensors and stat tweets

This commit is contained in:
Jeffrey Stone 2019-11-25 21:25:57 -05:00
parent bc344d2b91
commit fed3ea4324
2 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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() -%}