Add UUID to all remaining sensors, remove bad units_of_measure #70
This commit is contained in:
@ -20,6 +20,7 @@ weather:
|
||||
template:
|
||||
- binary_sensor:
|
||||
- name: Heat Threshold
|
||||
unique_id: 849a08bb-d4e6-40e9-ae42-50f7fb71b727
|
||||
state: >
|
||||
{% set temp = states('sensor.pirateweather_temperature') | int %}
|
||||
{% set threshold = states('input_number.hot_day_threshold') | int %}
|
||||
@ -33,6 +34,7 @@ template:
|
||||
current_temp: "{{ states('sensor.pirateweather_temperature') | int }}"
|
||||
threshold: "{{ states('input_number.hot_day_threshold') | int }}"
|
||||
- name: Heat Index Threshold
|
||||
unique_id: aae2cd89-dde2-4557-923c-b476d1b49b88
|
||||
state: >
|
||||
{% set feelslike = states('sensor.pirateweather_apparent_temperature') | int %}
|
||||
{% set threshold = states('input_number.heat_index_threshold') | int %}
|
||||
@ -46,6 +48,7 @@ template:
|
||||
current_temp: "{{ states('sensor.pirateweather_apparent_temperature') | int }}"
|
||||
threshold: "{{ states('input_number.heat_index_threshold') | int }}"
|
||||
- name: Cold Threshold
|
||||
unique_id: a7c97b91-6d42-433a-a96b-94e39c58d63f
|
||||
state: >
|
||||
{% set temp = states('sensor.pirateweather_temperature') | int %}
|
||||
{% set threshold = states('input_number.cold_day_threshold') | int %}
|
||||
@ -59,6 +62,7 @@ template:
|
||||
current_temp: "{{ states('sensor.pirateweather_temperature') | int }}"
|
||||
threshold: "{{ states('input_number.cold_day_threshold') | int }}"
|
||||
- name: Overnight Low Threshold
|
||||
unique_id: 6869e6eb-c8a6-43c8-aa4d-4d50659811b8
|
||||
state: >
|
||||
{% set temp = states('sensor.pirateweather_temperature') | int %}
|
||||
{% set threshold = states('input_number.overnight_low_threshold') | int%}
|
||||
@ -72,6 +76,7 @@ template:
|
||||
current_temp: "{{ states('sensor.pirateweather_temperature') | int }}"
|
||||
threshold: "{{ states('input_number.overnight_low_threshold') | int }}"
|
||||
- name: Wind Chill Threshold
|
||||
unique_id: c734b642-b85d-465c-b3c3-aadbe4a00dc1
|
||||
state: >
|
||||
{% set feelslike = states('sensor.pirateweather_apparent_temperature') | int %}
|
||||
{% set threshold = states('input_number.wind_chill_threshold') | int %}
|
||||
@ -132,7 +137,6 @@ sensor:
|
||||
current_forecast:
|
||||
friendly_name: Current Forecast
|
||||
unique_id: c0faea33-2ac3-40f1-8558-584c3f5d6b16
|
||||
unit_of_measurement: ''
|
||||
icon_template: mdi:weather-sunny
|
||||
value_template: >-
|
||||
{% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[0] %}
|
||||
@ -156,7 +160,6 @@ sensor:
|
||||
current_forecast_detail:
|
||||
friendly_name: Current Forecast Detail
|
||||
unique_id: e5ae9864-70b5-402c-9d2f-c4d6a10085df
|
||||
unit_of_measurement: ''
|
||||
icon_template: mdi:weather-sunny
|
||||
value_template: >-
|
||||
{%- macro getReport() -%}
|
||||
@ -277,7 +280,6 @@ sensor:
|
||||
tomorrow_forecast:
|
||||
friendly_name: Tomorrows Forecast
|
||||
unique_id: a8ae26b0-ed26-4568-bb2b-f7c72707b009
|
||||
unit_of_measurement: ''
|
||||
icon_template: mdi:weather-sunny
|
||||
value_template: >-
|
||||
{% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[1] %}
|
||||
@ -301,7 +303,6 @@ sensor:
|
||||
tomorrow_forecast_detail:
|
||||
friendly_name: Tomorrow Forecast Detail
|
||||
unique_id: 21374ed0-80d1-49ba-817d-3e93eb3865e4
|
||||
unit_of_measurement: ''
|
||||
icon_template: mdi:weather-sunny
|
||||
value_template: >-
|
||||
{%- macro getReport() -%}
|
||||
@ -411,7 +412,6 @@ sensor:
|
||||
current_conditions:
|
||||
friendly_name: Current Conditions
|
||||
unique_id: 70db7e57-08db-48b2-919b-03b5face37b9
|
||||
unit_of_measurement: ''
|
||||
icon_template: mdi:weather-sunny
|
||||
value_template: >-
|
||||
{%- macro getReport() -%}
|
||||
@ -468,7 +468,6 @@ sensor:
|
||||
current_conditions_detail:
|
||||
friendly_name: Current Conditions Detail
|
||||
unique_id: 2b3687d1-bdd5-4551-8c0a-05b1ff617543
|
||||
unit_of_measurement: ''
|
||||
icon_template: mdi:weather-sunny
|
||||
value_template: >-
|
||||
{%- macro getReport() -%}
|
||||
@ -636,7 +635,7 @@ sensor:
|
||||
todays_high_temp:
|
||||
friendly_name: "Today's High Temp"
|
||||
unique_id: 532904af-940b-45cd-af8e-c69d1a9c4531
|
||||
unit_of_measurement: ''
|
||||
unit_of_measurement: '°F'
|
||||
device_class: temperature
|
||||
value_template: >-
|
||||
{% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[0] %}
|
||||
@ -644,7 +643,7 @@ sensor:
|
||||
tonights_low_temp:
|
||||
friendly_name: "Tonight's Low Temp"
|
||||
unique_id: 8ddc55b6-4728-4897-a32f-90be970f744b
|
||||
unit_of_measurement: ''
|
||||
unit_of_measurement: '°F'
|
||||
device_class: temperature
|
||||
value_template: >-
|
||||
{% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[0] %}
|
||||
@ -652,7 +651,6 @@ sensor:
|
||||
clothing_forecast:
|
||||
friendly_name: "Clothing Forecast"
|
||||
unique_id: 8ed2684b-d0ad-402c-bc3c-340cb9b2437a
|
||||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{% if is_state('binary_sensor.overnight', 'off') %}
|
||||
{% set temp = states('sensor.todays_high_temp')|int %}
|
||||
@ -681,7 +679,6 @@ sensor:
|
||||
clothing_forecast_detail:
|
||||
friendly_name: "Clothing Forecast Detail"
|
||||
unique_id: 13065f50-5eef-4afd-830e-2a2c87f47496
|
||||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{%- macro getReport() -%}
|
||||
{% if is_state('binary_sensor.morning','on') %}
|
||||
|
Reference in New Issue
Block a user