From a3afbf1bc8fa0aba4ab7dc68cc233d5c3b7e07d1 Mon Sep 17 00:00:00 2001 From: Sean Vig Date: Wed, 27 Dec 2023 23:24:41 -0500 Subject: [PATCH] Update automations --- home_assistant/automations/lighting.yaml | 6 +++--- home_assistant/automations/thermostat.yaml | 10 +++++----- home_assistant/automations/tv_lights.yaml | 21 --------------------- 3 files changed, 8 insertions(+), 29 deletions(-) delete mode 100644 home_assistant/automations/tv_lights.yaml diff --git a/home_assistant/automations/lighting.yaml b/home_assistant/automations/lighting.yaml index 9dbbfe6..4c6e25e 100644 --- a/home_assistant/automations/lighting.yaml +++ b/home_assistant/automations/lighting.yaml @@ -145,7 +145,7 @@ - platform: numeric_state entity_id: sun.sun attribute: elevation - below: 2 + below: -1 - platform: time at: "22:30:00" - platform: time @@ -170,7 +170,7 @@ then: - service: light.turn_on target: - entity_id: light.living_room_switch + entity_id: light.living_room_light data: brightness_pct: 60 - if: @@ -179,7 +179,7 @@ then: - service: light.turn_off target: - entity_id: light.living_room_switch + entity_id: light.living_room_light - if: - condition: trigger id: 3 diff --git a/home_assistant/automations/thermostat.yaml b/home_assistant/automations/thermostat.yaml index dab69ce..6113378 100644 --- a/home_assistant/automations/thermostat.yaml +++ b/home_assistant/automations/thermostat.yaml @@ -25,7 +25,7 @@ sequence: - service: climate.set_temperature target: - entity_id: climate.venstar_52c21a828fce0e3e7b05d14c446fdbc9 + entity_id: climate.thermostat data: target_temp_high: 76 target_temp_low: 65 @@ -36,7 +36,7 @@ sequence: - service: climate.set_temperature target: - entity_id: climate.venstar_52c21a828fce0e3e7b05d14c446fdbc9 + entity_id: climate.thermostat data: target_temp_high: 75 target_temp_low: 65 @@ -47,7 +47,7 @@ sequence: - service: climate.set_temperature target: - entity_id: climate.venstar_52c21a828fce0e3e7b05d14c446fdbc9 + entity_id: climate.thermostat data: target_temp_high: 74 target_temp_low: 65 @@ -58,7 +58,7 @@ sequence: - service: climate.set_temperature target: - entity_id: climate.venstar_52c21a828fce0e3e7b05d14c446fdbc9 + entity_id: climate.thermostat data: target_temp_high: 73 target_temp_low: 65 @@ -72,7 +72,7 @@ action: - service: climate.set_temperature target: - entity_id: climate.venstar_52c21a828fce0e3e7b05d14c446fdbc9 + entity_id: climate.thermostat data: target_temp_high: 80 target_temp_low: 60 diff --git a/home_assistant/automations/tv_lights.yaml b/home_assistant/automations/tv_lights.yaml deleted file mode 100644 index 27f9bf5..0000000 --- a/home_assistant/automations/tv_lights.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- alias: "[TV] Set bias lights on TV power toggle" - id: tv_bias_lighting - trigger: - platform: state - entity_id: remote.sony_xbr_49x900e - to: - - "on" - - "off" - mode: queued - condition: - - or: - - and: - - "{{ is_state('switch.tv_backlight_plug', 'off') }}" - - "{{ trigger.to_state.state == 'on' }}" - - and: - - "{{ is_state('switch.tv_backlight_plug', 'on') }}" - - "{{ trigger.to_state.state == 'off' }}" - action: - - service: switch.toggle - target: - entity_id: switch.tv_backlight_plug