Skip to content

Commit

Permalink
feat: Fixing my mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeftor committed Aug 10, 2023
1 parent f762ade commit 27a8f07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blueprints/automation/awtrix_aqi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand Down Expand Up @@ -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}},
Expand Down

0 comments on commit 27a8f07

Please sign in to comment.