From 2e19b38ac2ce193de52915a5255ca5a5bb8bbb83 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 8 Jan 2023 20:34:26 -0500 Subject: [PATCH] Adhere to new update for Thermal Comfort --- configuration.yaml | 2 +- packages/custom_weather.yaml | 14 +++++++------- packages/integrations.yaml | 13 +++++++------ 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/configuration.yaml b/configuration.yaml index de71412..d9e3d7f 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -182,7 +182,7 @@ influxdb: - sensor.blitzortung_lightning_counter - sensor.lines_of_code - sensor.mariadb_database_size - - sensor.outside_absolutehumidity + - sensor.thermal_comfort_absolutehumidity - sensor.outside_lights - sensor.temperature_change_per_hour - sensor.tina_home diff --git a/packages/custom_weather.yaml b/packages/custom_weather.yaml index f9d59d6..97eb634 100644 --- a/packages/custom_weather.yaml +++ b/packages/custom_weather.yaml @@ -728,21 +728,21 @@ sensor: Warning, the heat index is {{ heatindex }} degrees right now, which is very high. So please make sure to stay hydrated! {% endif %} {% endif %} - {% if states('sensor.outside_simmerindex') in ['extremely_warm','danger_of_heatstroke','extreme_danger_of_heatstroke','circulatory_collapse_imminent'] %} + {% if states('sensor.thermal_comfort_simmerindex') in ['extremely_warm','danger_of_heatstroke','extreme_danger_of_heatstroke','circulatory_collapse_imminent'] %} "To reiterate, it is dangerously hot outside! " {% endif %} - {% if is_state('sensor.outside_perception','somewhat_uncomfortable') %} + {% if is_state('sensor.thermal_comfort_perception','somewhat_uncomfortable') %} "The humidity is somewhat uncomfortable outside." - {% elif is_state('sensor.outside_perception','quite_uncomfortable') %} + {% elif is_state('sensor.thermal_comfort_perception','quite_uncomfortable') %} "The humidity is very uncomfortable outside. " - {% elif is_state('sensor.outside_perception','extremely_uncomfortable') %} + {% elif is_state('sensor.thermal_comfort_perception','extremely_uncomfortable') %} "The humidity outside is extremely uncomfortable and oppresive. " - {% elif is_state('sensor.outside_perception','severely_high') %} + {% elif is_state('sensor.thermal_comfort_perception','severely_high') %} "The humidity outside is severely high, and could even be deadly for asthma related illnesses. " {% endif %} - {% if is_state('sensor.outside_frostrisk','high') %} + {% if is_state('sensor.thermal_comfort_frostrisk','high') %} "There is currently a high chance of frost outside. Plan accordingly! " - {% elif is_state('sensor.outside_frostrisk','probable') %} + {% elif is_state('sensor.thermal_comfort_frostrisk','probable') %} "The possibility of frost exists currently. Be prepared. " {% endif %} {%- endmacro -%} diff --git a/packages/integrations.yaml b/packages/integrations.yaml index 12d3bbb..8b4dc5e 100644 --- a/packages/integrations.yaml +++ b/packages/integrations.yaml @@ -41,12 +41,13 @@ tts: conversation: -thermal_comfort: - - custom_icons: true - sensor: - - name: Outside - temperature_sensor: sensor.pirateweather_temperature - humidity_sensor: sensor.pirateweather_humidity +# Moving this to frontend, keeping here for reference +# thermal_comfort: +# - custom_icons: true +# sensor: +# - name: Outside +# temperature_sensor: sensor.pirateweather_temperature +# humidity_sensor: sensor.pirateweather_humidity alexa: