From 6d67a088ed88e3951eb904c53c01d4153e75cc1f Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 31 Mar 2022 12:57:15 -0400 Subject: [PATCH 1/3] Attempting to fix the readout for overnight low temperatures --- packages/custom_weather.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/custom_weather.yaml b/packages/custom_weather.yaml index dee9209..f506106 100644 --- a/packages/custom_weather.yaml +++ b/packages/custom_weather.yaml @@ -98,7 +98,7 @@ sensor: {% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[0] %} {{ forecast.temperature }} overnight_low: >- - {% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[1] %} + {% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[0] %} {{ forecast.templow }} wind_bearing: >- {% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[0] %} @@ -241,7 +241,7 @@ sensor: {% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[1] %} {{ forecast.temperature }} overnight_low: >- - {% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[2] %} + {% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[1] %} {{ forecast.templow }} wind_bearing: >- {% set forecast = state_attr('weather.iron_nerd_weather_station','forecast')[1] %} From d15b5d672aba5437d8a953a8fe2f58357e39c5bc Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 31 Mar 2022 13:06:26 -0400 Subject: [PATCH 2/3] Moved file storage for automations to its own folder and gitignored --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9d2f58c..9a443c7 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ /hacs /image /node-red +/files # ignore any of these files no matter where they are using double * @@ -61,5 +62,3 @@ **production_auth.json **.log* **alexa_auth -weather_briefing_full.txt -yesterday_rain_total.txt From a80ea06caa93b1aac98100f16bb7fbe8d02fbe67 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 31 Mar 2022 19:10:36 -0400 Subject: [PATCH 3/3] Moved night and morning routines to NodeRED and removed the scripts --- automations.yaml | 5 ++- scripts.yaml | 91 ------------------------------------------------ 2 files changed, 4 insertions(+), 92 deletions(-) diff --git a/automations.yaml b/automations.yaml index e7f8106..241b7a6 100644 --- a/automations.yaml +++ b/automations.yaml @@ -190,7 +190,10 @@ context: {} condition: [] action: - - service: script.goodnight + - service: button.press + data: {} + target: + entity_id: button.goodnight mode: single - id: '1641255482975' alias: Give Me Darkness diff --git a/scripts.yaml b/scripts.yaml index 0c9eb3a..7b96938 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -140,48 +140,6 @@ stop_spotify: source: '!com.spotify.tv.android' mode: single icon: mdi:spotify -goodnight: - alias: Goodnight - sequence: - - service: switch.turn_on - data: {} - target: - entity_id: - - switch.adaptive_lighting_sleep_mode_upstairs_hallway - - switch.adaptive_lighting_sleep_mode_upstairs_bathroom - - service: light.turn_off - target: - area_id: - - basement_studio - - master_bedroom - - kallen_bedroom - - furnace_room - - mud_room - - nursery - - living_room - - dining_room - - upstairs_hallway - - downstairs_bathroom - entity_id: - - light.upstairs_bathroom_right - - light.upstairs_bathroom_wall - data: {} - - service: switch.turn_off - target: - area_id: - - basement_studio - data: {} - - service: switch.turn_on - target: - entity_id: - - switch.basement_echo_dot_do_not_disturb_switch - - switch.living_room_echo_dot_do_not_disturb_switch - - switch.master_bedroom_echo_dot_do_not_disturb_switch - data: {} - - service: script.kallen_desktop_shutdown - data: {} - mode: single - icon: mdi:weather-night alexa_tts_test: alias: Alexa TTS Test sequence: @@ -395,55 +353,6 @@ going_upstairs: - light.upstairs_bathroom_lights mode: single icon: hue:room-stairs -good_morning: - alias: Good Morning - sequence: - - service: switch.turn_off - data: {} - target: - entity_id: - - switch.kallen_fan_socket_1 - - switch.master_bedroom_fan_socket_1 - - switch.basement_echo_dot_do_not_disturb_switch - - switch.living_room_echo_dot_do_not_disturb_switch - - switch.master_bedroom_echo_dot_do_not_disturb_switch - - delay: - hours: 0 - minutes: 0 - seconds: 1 - milliseconds: 0 - - service: media_player.play_media - data: - media_content_id: Alexa.Date.Play - media_content_type: sequence - target: - entity_id: media_player.living_room_echo_dot - - service: media_player.play_media - data: - media_content_id: Alexa.Weather.Play - media_content_type: sequence - target: - entity_id: media_player.living_room_echo_dot - - service: media_player.play_media - data: - media_content_id: Alexa.Traffic.Play - media_content_type: sequence - target: - entity_id: media_player.living_room_echo_dot - - service: media_player.play_media - data: - media_content_id: Alexa.Calendar.PlayToday - media_content_type: sequence - target: - entity_id: media_player.living_room_echo_dot - - service: media_player.play_media - data: - media_content_id: Alexa.Calendar.PlayTomorrow - media_content_type: sequence - target: - entity_id: media_player.living_room_echo_dot - mode: single - icon: mdi:weather-sunset-up basement_on: alias: Basement On sequence: