Update weather templates to current syntax
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
weather:
|
template:
|
||||||
- platform: template
|
- weather:
|
||||||
name: "Iron Nerd Weather Station"
|
- name: "Iron Nerd Weather Station"
|
||||||
condition_template: >
|
condition_template: >
|
||||||
{% set stations = [
|
{% set stations = [
|
||||||
states.weather.home_tempest_forecast_home,
|
states.weather.home_tempest_forecast_home,
|
||||||
@@ -112,8 +112,8 @@ weather:
|
|||||||
{{ states(result) | float }}
|
{{ states(result) | float }}
|
||||||
precipitation_unit: in
|
precipitation_unit: in
|
||||||
|
|
||||||
- platform: template
|
- weather:
|
||||||
name: "Iron Nerd Weather Station - Hourly"
|
- name: "Iron Nerd Weather Station - Hourly"
|
||||||
condition_template: >
|
condition_template: >
|
||||||
{% set stations = [
|
{% set stations = [
|
||||||
states.weather.home_tempest_forecast_home,
|
states.weather.home_tempest_forecast_home,
|
||||||
@@ -218,8 +218,8 @@ weather:
|
|||||||
{{ states(result) | float }}
|
{{ states(result) | float }}
|
||||||
precipitation_unit: in
|
precipitation_unit: in
|
||||||
|
|
||||||
- platform: template
|
- weather:
|
||||||
name: "Ashland Weather Station"
|
- name: "Ashland Weather Station"
|
||||||
condition_template: >
|
condition_template: >
|
||||||
{% set stations = [
|
{% set stations = [
|
||||||
states.weather.ashland,
|
states.weather.ashland,
|
||||||
@@ -299,77 +299,6 @@ weather:
|
|||||||
{{ states(result) | float }}
|
{{ states(result) | float }}
|
||||||
precipitation_unit: in
|
precipitation_unit: in
|
||||||
|
|
||||||
# binary_sensor:
|
|
||||||
# - platform: bayesian
|
|
||||||
# unique_id: 3e9640d9-57a0-4495-8731-e64b34774065
|
|
||||||
# name: Raining Bayesian
|
|
||||||
# prior: 0.17
|
|
||||||
# probability_threshold: 0.6
|
|
||||||
# observations:
|
|
||||||
# - entity_id: "sensor.pirateweather_precip"
|
|
||||||
# prob_given_true: 0.13
|
|
||||||
# prob_given_false: 0.005
|
|
||||||
# platform: "state"
|
|
||||||
# to_state: "rain"
|
|
||||||
# - entity_id: "sensor.openweathermap_precipitation_kind"
|
|
||||||
# prob_given_true: 0.75
|
|
||||||
# prob_given_false: 0.005
|
|
||||||
# platform: "state"
|
|
||||||
# to_state: "rain"
|
|
||||||
# - entity_id: "sensor.tomorrow_io_stratton_ave_precipitation_type"
|
|
||||||
# prob_given_true: 0.99
|
|
||||||
# prob_given_false: 0.2
|
|
||||||
# platform: "state"
|
|
||||||
# to_state: "rain"
|
|
||||||
# - entity_id: "sensor.stratton_ave_precipitation"
|
|
||||||
# prob_given_true: 0.99
|
|
||||||
# prob_given_false: 0.2
|
|
||||||
# platform: "numeric_state"
|
|
||||||
# above: 0
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: weatheralerts
|
|
||||||
state: OH
|
|
||||||
zone: 4
|
|
||||||
county: 39
|
|
||||||
|
|
||||||
# - platform: statistics
|
|
||||||
# unique_id: b5996cb4-b715-4fc9-b3d8-98fc12c2b7dd
|
|
||||||
# name: Outside Temp Average
|
|
||||||
# entity_id: sensor.pirateweather_temperature
|
|
||||||
# state_characteristic: average_linear
|
|
||||||
# max_age:
|
|
||||||
# days: 7
|
|
||||||
# - platform: statistics
|
|
||||||
# unique_id: 6192c95a-8fd1-4ba0-87de-d06fdc071d6b
|
|
||||||
# name: Apparent Temp Average
|
|
||||||
# entity_id: sensor.stratton_ave_apparent_temperature
|
|
||||||
# state_characteristic: average_linear
|
|
||||||
# max_age:
|
|
||||||
# days: 7
|
|
||||||
# - platform: statistics
|
|
||||||
# unique_id: 7b9c269c-40b7-4255-a051-2d1b7a6af017
|
|
||||||
# name: Wind Speed Average
|
|
||||||
# entity_id: sensor.pirateweather_wind_speed
|
|
||||||
# state_characteristic: average_linear
|
|
||||||
# max_age:
|
|
||||||
# days: 7
|
|
||||||
# - platform: statistics
|
|
||||||
# unique_id: b43d053f-aafb-4237-a742-a2ca841498fa
|
|
||||||
# name: Visibility Stats Average
|
|
||||||
# entity_id: sensor.kdfi_visibility
|
|
||||||
# state_characteristic: average_linear
|
|
||||||
# max_age:
|
|
||||||
# days: 7
|
|
||||||
# - platform: statistics
|
|
||||||
# unique_id: b1206da2-fa00-4f7d-9af4-f2cf6794bd24
|
|
||||||
# name: Humidity Stats Average
|
|
||||||
# entity_id: sensor.pirateweather_humidity
|
|
||||||
# state_characteristic: average_linear
|
|
||||||
# max_age:
|
|
||||||
# days: 7
|
|
||||||
|
|
||||||
template:
|
|
||||||
- trigger:
|
- trigger:
|
||||||
- platform: time_pattern
|
- platform: time_pattern
|
||||||
minutes: /15
|
minutes: /15
|
||||||
@@ -1613,6 +1542,76 @@ template:
|
|||||||
hail_stroke: "{{ state_attr('sensor.spc_outlook_day_1','hail_stroke') }}"
|
hail_stroke: "{{ state_attr('sensor.spc_outlook_day_1','hail_stroke') }}"
|
||||||
icon: mdi:weather-hail
|
icon: mdi:weather-hail
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: weatheralerts
|
||||||
|
state: OH
|
||||||
|
zone: 4
|
||||||
|
county: 39
|
||||||
|
|
||||||
|
# - platform: statistics
|
||||||
|
# unique_id: b5996cb4-b715-4fc9-b3d8-98fc12c2b7dd
|
||||||
|
# name: Outside Temp Average
|
||||||
|
# entity_id: sensor.pirateweather_temperature
|
||||||
|
# state_characteristic: average_linear
|
||||||
|
# max_age:
|
||||||
|
# days: 7
|
||||||
|
# - platform: statistics
|
||||||
|
# unique_id: 6192c95a-8fd1-4ba0-87de-d06fdc071d6b
|
||||||
|
# name: Apparent Temp Average
|
||||||
|
# entity_id: sensor.stratton_ave_apparent_temperature
|
||||||
|
# state_characteristic: average_linear
|
||||||
|
# max_age:
|
||||||
|
# days: 7
|
||||||
|
# - platform: statistics
|
||||||
|
# unique_id: 7b9c269c-40b7-4255-a051-2d1b7a6af017
|
||||||
|
# name: Wind Speed Average
|
||||||
|
# entity_id: sensor.pirateweather_wind_speed
|
||||||
|
# state_characteristic: average_linear
|
||||||
|
# max_age:
|
||||||
|
# days: 7
|
||||||
|
# - platform: statistics
|
||||||
|
# unique_id: b43d053f-aafb-4237-a742-a2ca841498fa
|
||||||
|
# name: Visibility Stats Average
|
||||||
|
# entity_id: sensor.kdfi_visibility
|
||||||
|
# state_characteristic: average_linear
|
||||||
|
# max_age:
|
||||||
|
# days: 7
|
||||||
|
# - platform: statistics
|
||||||
|
# unique_id: b1206da2-fa00-4f7d-9af4-f2cf6794bd24
|
||||||
|
# name: Humidity Stats Average
|
||||||
|
# entity_id: sensor.pirateweather_humidity
|
||||||
|
# state_characteristic: average_linear
|
||||||
|
# max_age:
|
||||||
|
# days: 7
|
||||||
|
|
||||||
|
# binary_sensor:
|
||||||
|
# - platform: bayesian
|
||||||
|
# unique_id: 3e9640d9-57a0-4495-8731-e64b34774065
|
||||||
|
# name: Raining Bayesian
|
||||||
|
# prior: 0.17
|
||||||
|
# probability_threshold: 0.6
|
||||||
|
# observations:
|
||||||
|
# - entity_id: "sensor.pirateweather_precip"
|
||||||
|
# prob_given_true: 0.13
|
||||||
|
# prob_given_false: 0.005
|
||||||
|
# platform: "state"
|
||||||
|
# to_state: "rain"
|
||||||
|
# - entity_id: "sensor.openweathermap_precipitation_kind"
|
||||||
|
# prob_given_true: 0.75
|
||||||
|
# prob_given_false: 0.005
|
||||||
|
# platform: "state"
|
||||||
|
# to_state: "rain"
|
||||||
|
# - entity_id: "sensor.tomorrow_io_stratton_ave_precipitation_type"
|
||||||
|
# prob_given_true: 0.99
|
||||||
|
# prob_given_false: 0.2
|
||||||
|
# platform: "state"
|
||||||
|
# to_state: "rain"
|
||||||
|
# - entity_id: "sensor.stratton_ave_precipitation"
|
||||||
|
# prob_given_true: 0.99
|
||||||
|
# prob_given_false: 0.2
|
||||||
|
# platform: "numeric_state"
|
||||||
|
# above: 0
|
||||||
|
|
||||||
input_boolean:
|
input_boolean:
|
||||||
freeze_warning:
|
freeze_warning:
|
||||||
name: Freeze Warning
|
name: Freeze Warning
|
||||||
|
|||||||
Reference in New Issue
Block a user