From 129b7c37cd7f7943ed1aee6c98bb9502cf1968af Mon Sep 17 00:00:00 2001 From: Joseph Chiocchi Date: Sun, 28 Apr 2024 18:54:57 -0500 Subject: [PATCH] Update awtrix_hvac.yaml use input variable, `climate` over named entity string --- blueprints/automation/awtrix_hvac.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blueprints/automation/awtrix_hvac.yaml b/blueprints/automation/awtrix_hvac.yaml index 429b3b4..fc91139 100644 --- a/blueprints/automation/awtrix_hvac.yaml +++ b/blueprints/automation/awtrix_hvac.yaml @@ -68,12 +68,12 @@ variables: climate: !input hvac mode: "{{states(climate)}}" - target_temp: "{{ iif(state_attr('climate.downstairs', 'temperature'),state_attr('climate.downstairs', 'temperature'),0,state_attr('climate.downstairs', 'current_temperature')) | round(0)}}" + target_temp: "{{ iif(state_attr(climate, 'temperature'),state_attr(climate, 'temperature'),0,state_attr(climate, 'current_temperature')) | round(0)}}" temp_current: "{{state_attr(climate, 'current_temperature')}}" temp_current_ceil: "{{ temp_current | round(0,'ceil') }}" temp_current_floor: "{{ temp_current | round(0,'floor') }}" - is_running: "{{ not state_attr('climate.downstairs', 'temperature') is none }}" + is_running: "{{ not state_attr(climate, 'temperature') is none }}" payload: >- {%- if not is_running %}