Update Media Package
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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') }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user