From 27a8f0792725555f47e836410106222841dba5c8 Mon Sep 17 00:00:00 2001 From: Jeef Date: Thu, 10 Aug 2023 07:19:47 -0600 Subject: [PATCH] feat: Fixing my mistake --- blueprints/automation/awtrix_aqi.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blueprints/automation/awtrix_aqi.yaml b/blueprints/automation/awtrix_aqi.yaml index 5bf42d7..77687c7 100644 --- a/blueprints/automation/awtrix_aqi.yaml +++ b/blueprints/automation/awtrix_aqi.yaml @@ -134,7 +134,7 @@ variables: iqair_sensor: !input iqair_sensor airnow_sensor: !input airnow_sensor - iq_air_aqi: "{{ states('sensor.iq_air_aqi',-1) | int }}" + iq_air_aqi: "{{ states('sensor.iq_air_aqi',-1) | int | round(0)}}" iq_air_forecast_1: "{{(state_attr(iqair_sensor, 'forecast') | from_json)[0] | int}}" iq_air_forecast_2: "{{(state_attr(iqair_sensor, 'forecast') | from_json)[1] | int}}" iq_air_forecast_3: "{{(state_attr(iqair_sensor, 'forecast') | from_json)[2] | int}}" @@ -185,8 +185,8 @@ variables: {%- endif %} {%- endmacro %} - {%- set iqair = round(iq_air_aqi,0) %} - {%- set airnow = round(airnow_aqi,0) %} + {%- set iqair = iq_air_aqi %} + {%- set airnow = airnow_aqi %} {"draw": [ {{aqi_icon}},