diff --git a/packages/climate/climate.yaml b/packages/climate/climate.yaml index 9ebcc03..0fcfe98 100644 --- a/packages/climate/climate.yaml +++ b/packages/climate/climate.yaml @@ -11,13 +11,14 @@ input_select: - Away - 'Off' - Manual + - Paused # ----------------------------------------------------------------------------- # Climate Automations automation: # Automations for Open Windows/Doors - - alias: Turn off HVAC when Doors/Windows Open + - alias: Pause HVAC when Doors/Windows Open mode: queued trigger: - platform: state @@ -30,17 +31,24 @@ automation: to: 'on' for: minutes: 5 + condition: "{{ not is_state('input_select.climate_control_mode', 'Paused') }}" action: - service: scene.create data: scene_id: hvac_restore_state snapshot_entities: climate.thermostat + input_select.climate_control_mode - service: climate.set_hvac_mode target: entity_id: climate.thermostat data: hvac_mode: "off" + - service: input_select.select_option + target: + entity_id: input_select.climate_control_mode + data: + option: Paused - alias: Restore HVAC when Doors/Windows Closed mode: queued @@ -57,6 +65,7 @@ automation: to: 'off' for: minutes: 5 + condition: "{{ is_state('input_select.climate_control_mode', 'Paused') }}" action: - service: scene.turn_on target: