Add Climate Package

This commit is contained in:
2022-06-04 14:22:22 -07:00
parent 1dd97a14c2
commit e01a037d8d
2 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
# Climate Package
# -----------------------------------------------------------------------------
# Climate State Helpers
input_select:
climate_mode:
name: Climate Control Mode
options:
- Home
- Night
- Away
- 'Off'
- Manual
# -----------------------------------------------------------------------------
# Climate Automations
automation:
# Automations for Open Windows/Doors
- alias: Turn off HVAC when Doors/Windows Open
mode: queued
trigger:
- platform: state
entity_id: binary_sensor.all_doors
to: 'on'
for:
minutes: 5
- platform: state
entity_id: binary_sensor.all_windows
to: 'on'
for:
minutes: 5
action:
- service: scene.create
data:
scene_id: hvac_restore_state
snapshot_entities:
climate.thermostat
- service: climate.set_hvac_mode
target:
entity_id: climate.thermostat
data:
hvac_mode: "off"
- alias: Restore HVAC when Doors/Windows Closed
mode: queued
trigger:
- platform: state
entity_id: binary_sensor.all_doors
from: 'on'
to: 'off'
for:
minutes: 5
- platform: state
entity_id: binary_sensor.all_windows
from: 'on'
to: 'off'
for:
minutes: 5
action:
- service: scene.turn_on
target:
entity_id: scene.hvac_restore_state