Update Media Package

This commit is contained in:
2022-07-10 17:13:26 -07:00
parent 4065c97139
commit a1e6033fcd
2 changed files with 12 additions and 6 deletions

View File

@@ -13,6 +13,12 @@ input_select:
- Manual - Manual
- Paused - Paused
template:
binary_sensor:
- name: HVAC Fan Running
state: >
{{ 'Running' in state_attr('climate.thermostat', 'fan_state') }}
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Climate Automations # Climate Automations
automation: automation:

View File

@@ -122,9 +122,9 @@ automation:
- alias: Turn Up Volume when HVAC Fan Starts - alias: Turn Up Volume when HVAC Fan Starts
trigger: trigger:
- platform: template - platform: state
value_template: > entity_id: binary_sensor.hvac_fan_running
{{ iif('Running' in state_attr('climate.thermostat', 'fan_state'), 'true', 'false') }} to: "on"
condition: condition:
- "{{ is_state('input_boolean.ht_adjust_volume_hvac', 'on') }}" - "{{ is_state('input_boolean.ht_adjust_volume_hvac', 'on') }}"
- "{{ is_state('media_player.living_room_receiver', 'on') }}" - "{{ is_state('media_player.living_room_receiver', 'on') }}"
@@ -138,9 +138,9 @@ automation:
- alias: Turn Down Volume when HVAC Fan Stops - alias: Turn Down Volume when HVAC Fan Stops
trigger: trigger:
- platform: template - platform: state
value_template: > entity_id: binary_sensor.hvac_fan_running
{{ iif('Running' in state_attr('climate.thermostat', 'fan_state'), 'false', 'true') }} from: "on"
condition: condition:
- "{{ is_state('input_boolean.ht_adjust_volume_hvac', 'on') }}" - "{{ is_state('input_boolean.ht_adjust_volume_hvac', 'on') }}"
- "{{ is_state('media_player.living_room_receiver', 'on') }}" - "{{ is_state('media_player.living_room_receiver', 'on') }}"