mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-16 11:14:44 +00:00
Swaping out Darksky for NWS....
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
# Sensor to get Flu near you: https://www.home-assistant.io/integrations/flunearyou/
|
||||
- platform: flunearyou
|
||||
|
||||
# MQTT Sensor for Washing Machine Status.
|
||||
- platform: mqtt
|
||||
name: "Washer Status"
|
||||
state_topic: "house/washer/status"
|
||||
|
||||
# MQTT Sensor for getting Various COVID-19 Stats. Data is sourced from pythonn scripts scaping
|
||||
# various COVID data sites running on a secondary machine.
|
||||
- platform: mqtt
|
||||
name: "COVID19 Confirmed"
|
||||
state_topic: "covid/sensor/confirmed"
|
||||
@@ -173,12 +180,24 @@
|
||||
duration:
|
||||
hours: 24
|
||||
- platform: statistics
|
||||
name: Cloud Coverage Stats
|
||||
entity_id: sensor.dark_sky_cloud_coverage
|
||||
name: Wind Speed Stats
|
||||
entity_id: sensor.nws_current_windspeed
|
||||
sampling_size: 500
|
||||
- platform: statistics
|
||||
name: Visibility Stats
|
||||
entity_id: sensor.dark_sky_visibility
|
||||
entity_id: sensor.nws_current_visibility
|
||||
sampling_size: 500
|
||||
- platform: statistics
|
||||
name: Temperature Stats
|
||||
entity_id: sensor.nws_current_temperature
|
||||
sampling_size: 500
|
||||
- platform: statistics
|
||||
name: Humidity Stats
|
||||
entity_id: sensor.nws_current_humidity
|
||||
sampling_size: 500
|
||||
- platform: statistics
|
||||
name: Washer Power Stats
|
||||
entity_id: sensor.washer_power
|
||||
sampling_size: 500
|
||||
- platform: history_stats
|
||||
name: Cooling Last Month
|
||||
@@ -272,4 +291,3 @@
|
||||
value_template: "{{states.climate.home.attributes.hvac_action}}"
|
||||
|
||||
|
||||
|
||||
|
@@ -1,38 +1,39 @@
|
||||
- platform: darksky
|
||||
api_key: !secret FORCAST_API_KEY
|
||||
forecast:
|
||||
- 0
|
||||
monitored_conditions:
|
||||
- summary
|
||||
- icon
|
||||
- nearest_storm_distance
|
||||
- nearest_storm_bearing
|
||||
- precip_type
|
||||
- precip_intensity
|
||||
- precip_probability
|
||||
- temperature
|
||||
- temperature_high
|
||||
- temperature_low
|
||||
- apparent_temperature
|
||||
- dew_point
|
||||
- wind_speed
|
||||
- wind_bearing
|
||||
- cloud_cover
|
||||
- humidity
|
||||
- pressure
|
||||
- visibility
|
||||
- ozone
|
||||
- minutely_summary
|
||||
- hourly_summary
|
||||
- daily_summary
|
||||
- precip_intensity_max
|
||||
scan_interval:
|
||||
# At least one of these must be specified:
|
||||
days: 0
|
||||
hours: 0
|
||||
minutes: 5
|
||||
seconds: 0
|
||||
milliseconds: 0
|
||||
# REMOVING Darksky - Commented out to disable.
|
||||
# - platform: darksky
|
||||
# api_key: !secret FORCAST_API_KEY
|
||||
# forecast:
|
||||
# - 0
|
||||
# monitored_conditions:
|
||||
# - summary
|
||||
# - icon
|
||||
# - nearest_storm_distance
|
||||
# - nearest_storm_bearing
|
||||
# - precip_type
|
||||
# - precip_intensity
|
||||
# - precip_probability
|
||||
# - temperature
|
||||
# - temperature_high
|
||||
# - temperature_low
|
||||
# - apparent_temperature
|
||||
# - dew_point
|
||||
# - wind_speed
|
||||
# - wind_bearing
|
||||
# - cloud_cover
|
||||
# - humidity
|
||||
# - pressure
|
||||
# - visibility
|
||||
# - ozone
|
||||
# - minutely_summary
|
||||
# - hourly_summary
|
||||
# - daily_summary
|
||||
# - precip_intensity_max
|
||||
# scan_interval:
|
||||
# # At least one of these must be specified:
|
||||
# days: 0
|
||||
# hours: 0
|
||||
# minutes: 5
|
||||
# seconds: 0
|
||||
# milliseconds: 0
|
||||
## Accurite 158 - Back Porch
|
||||
- platform: mqtt
|
||||
name: "Accurite Back Porch Temperature"
|
||||
@@ -71,18 +72,18 @@
|
||||
friendly_name: "Clothing Forecast"
|
||||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{%- if states('sensor.dark_sky_daytime_high_temperature_0d')|float > 63 %}
|
||||
{%- if states('sensor.dark_sky_daytime_high_temperature_0d')|float < 80 %}
|
||||
{%- if states('sensor.nws_daytime_temperature')|float > 63 %}
|
||||
{%- if states('sensor.nws_daytime_temperature')|float < 80 %}
|
||||
Nice
|
||||
{% elif states('sensor.dark_sky_daytime_high_temperature_0d')|float > 95 %}
|
||||
{% elif states('sensor.nws_daytime_temperature')|float > 95 %}
|
||||
Hot
|
||||
{% else %}
|
||||
Toasty
|
||||
{%- endif %}
|
||||
{% elif states('sensor.dark_sky_daytime_high_temperature_0d')|float < 64 %}
|
||||
{%- if states('sensor.dark_sky_daytime_high_temperature_0d')|float < 32 %}
|
||||
{% elif states('sensor.nws_daytime_temperature')|float < 64 %}
|
||||
{%- if states('sensor.nws_daytime_temperature')|float < 32 %}
|
||||
Freezing
|
||||
{% elif states('sensor.dark_sky_daytime_high_temperature_0d')|float > 50 %}
|
||||
{% elif states('sensor.nws_daytime_temperature')|float > 50 %}
|
||||
Chilly
|
||||
{% else %}
|
||||
Cold
|
||||
@@ -90,3 +91,60 @@
|
||||
{% else %}
|
||||
Unknown
|
||||
{%- endif %}
|
||||
nws_current_forecast:
|
||||
friendly_name: 'Current Forecast'
|
||||
value_template: "{{ states.weather.klzu.attributes.forecast[0].detailed_description }}"
|
||||
nws_current_temperature:
|
||||
friendly_name: 'Current Temperature'
|
||||
value_template: "{{ states.weather.klzu.attributes.temperature }}"
|
||||
nws_daytime_temperature:
|
||||
friendly_name: 'Daytime Temperature'
|
||||
value_template: >-
|
||||
{% if states.weather.klzu.attributes.forecast[0].daytime == True %}
|
||||
{{ states.weather.klzu.attributes.forecast[0].temperature }}
|
||||
{% elif states.weather.klzu.attributes.forecast[1].daytime == True %}
|
||||
{{ states.weather.klzu.attributes.forecast[1].temperature }}
|
||||
{% endif %}
|
||||
nws_current_condition:
|
||||
friendly_name: 'Current Condition'
|
||||
value_template: "{{ states.weather.klzu.state }}"
|
||||
nws_current_humidity:
|
||||
friendly_name: 'Current Humidity'
|
||||
value_template: "{{ states.weather.klzu.attributes.humidity }}"
|
||||
nws_current_visibility:
|
||||
friendly_name: "Current Visability"
|
||||
value_template: "{{ states.weather.klzu.attributes.visibility }}"
|
||||
nws_current_windspeed:
|
||||
friendly_name: "Current Windspeed"
|
||||
value_template: "{{ states.weather.klzu.attributes.wind_speed }}"
|
||||
nws_overnight_low:
|
||||
friendly_name: "Overnight Low"
|
||||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{% if states.weather.klzu.attributes.forecast[0].daytime == False %}
|
||||
{{ states.weather.klzu.attributes.forecast[0].temperature }}
|
||||
{% elif states.weather.klzu.attributes.forecast[1].daytime == False %}
|
||||
{{ states.weather.klzu.attributes.forecast[1].temperature }}
|
||||
{% endif %}
|
||||
nws_overnight_forecast:
|
||||
friendly_name: "Overnight Forecast"
|
||||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{% if states.weather.klzu.attributes.forecast[0].daytime == False %}
|
||||
{{ states.weather.klzu.attributes.forecast[0].detailed_description }}
|
||||
{% elif states.weather.klzu.attributes.forecast[1].daytime == False %}
|
||||
{{ states.weather.klzu.attributes.forecast[1].detailed_description }}
|
||||
{% elif states.weather.klzu.attributes.forecast[2].daytime == False %}
|
||||
{{ states.weather.klzu.attributes.forecast[2].detailed_description }}
|
||||
{% endif %}
|
||||
nws_future_forecast:
|
||||
friendly_name: "Future Forecast"
|
||||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{%- if states.weather.klzu.attributes.forecast[1].daytime == True %}
|
||||
{{ states.weather.klzu.attributes.forecast[1].detailed_description }}
|
||||
before becoming {{ states.weather.klzu.attributes.forecast[2].detailed_description }} tomorrow night
|
||||
{% elif states.weather.klzu.attributes.forecast[2].daytime == True %}
|
||||
{{ states.weather.klzu.attributes.forecast[2].detailed_description }}
|
||||
before becoming {{ states.weather.klzu.attributes.forecast[3].detailed_description }} tomorrow night
|
||||
{%- endif %}
|
Reference in New Issue
Block a user