I can, but it’s exactly your code from above. Please have a look at my comment above regarding the payload.
alias: AWTRIX NG - OUTDOORS TEMPERATURE TEST
description: ''
use_blueprint:
path: 10der/awtrix-ng-simple-mqtt.yaml
input:
entity: weather.forecast_home
awtrix_device:
- awtrixng-957554
app_icon: '2355'
user_options:
durationMs: 5000
text: ''
icon: '53386'
draw: |
{%- macro draw_forecast_lines() %}
{%- set hours = 24 %}
{%- for hour in range(hours) %}
["pixel", {{8 + hour}}, 7, "{{colors[(colors.items() | map(attribute='0') |
map('int') | sort | select('>=', forcast_temp[hour]) | first) | string]}}"]
{%- if hour+1 != hours %},{%endif%}
{%- endfor %}
{%- endmacro %} [
{{draw_forecast_lines()}},
["text", {{13-2 if value_template > 9 else 15-2}}, 1, "{{'+' if value_template > 0}}{{value_template}}", "{{color}}"],
{{moon_data}}
]
additional_options:
icons:
clear-night: a12181
cloudy: a2283
exceptional: a2364
fog: 17056
hail: a2441
lightning: a630
lightning-rainy: a49299
partlycloudy: 2286
pouring: a49300
rainy: a2284
snowy: a2289
snowy-rainy: a49301
sunny: 53386
windy: a15618
windy-variant: a15618
full_moon: 2314
waning_gibbous: 2315
last_quarter: 2316
waning_crescent: 2317
new_moon: 2318
waxing_crescent: 2320
first_quarter: 2320
waxing_gibbous: 36234
home: '96'
sunrise: '485'
sunset: '486'
unavailable: '52176'
colors:
'0': '#00ff7f'
'5': '#00ff2a'
'10': '#2aff00'
'15': '#7fff00'
'20': '#d4ff00'
'25': '#ffd400'
'30': '#ff7f00'
'35': '#ff5000'
'40': '#ff2000'
'-15': '#007fff'
'-10': '#00d4ff'
'-5': '#00ffd4'
moon_phase: '{{states(''sensor.moon_phase'')}}'
moon_data: |
{%- macro draw_moon(phase, x=22, y=0) %}
{%- if phase == 'first_quarter' %}
["bitmap",{{x}},{{y}},8,8,[0,0,3355443,3355443,14079702,14079702,0,0,0,3355443,3355443,3355443,15790320,14079702,14079702,0,3355443,3355443,3355443,3355443,13355979,13355979,14079702,14079702,3355443,3355443,1644825,3355443,13355979,15790320,15790320,14079702,3355443,3355443,1644825,3355443,15790320,15790320,15790320,14079702,3355443,3355443,3355443,3355443,15790320,13355979,14079702,14079702,0,3355443,3355443,3355443,15790320,14079702,14079702,0,0,0,3355443,3355443,14079702,14079702,0,0]]
{%- elif phase == 'full_moon' %}
["bitmap",{{x}},{{y}},8,8,[0,0,14079702,14079702,14079702,14079702,0,0,0,14079702,14079702,15790320,15790320,14079702,14079702,0,14079702,14079702,15790320,15790320,11974326,11974326,14079702,14079702,14079702,15790320,11974326,15790320,11974326,15790320,15790320,14079702,14079702,15790320,11974326,15790320,15790320,15790320,15790320,14079702,14079702,14079702,15790320,15790320,15790320,11974326,14079702,14079702,0,14079702,14079702,11974326,15790320,14079702,14079702,0,0,0,14079702,14079702,14079702,14079702,0,0]]
{%- elif phase == 'last_quarter' %}
["bitmap",{{x}},{{y}},8,8,[0,0,14079702,14079702,3487029,3487029,0,0,0,14079702,14079702,15790320,3487029,3487029,3487029,0,14079702,14079702,15790320,15790320,1907997,1907997,3487029,3487029,14079702,15790320,13553358,15790320,1907997,3487029,3487029,3487029,14079702,15790320,13553358,15790320,3487029,3487029,3487029,3487029,14079702,14079702,15790320,15790320,3487029,1907997,3487029,3487029,0,14079702,14079702,13553358,3487029,3487029,3487029,0,0,0,14079702,14079702,3487029,3487029,0,0]]
{%- elif phase == 'new_moon' %}
["bitmap",{{x}},{{y}},8,8,[0,0,2763306,2763306,2763306,2763306,0,0,0,2763306,2763306,2763306,2763306,2763306,2763306,0,2763306,2763306,2763306,2763306,1842204,1842204,2763306,2763306,2763306,2763306,1842204,2763306,1842204,2763306,2763306,2763306,2763306,2763306,1842204,2763306,2763306,2763306,2763306,2763306,2763306,2763306,2763306,2763306,2763306,1842204,2763306,2763306,0,2763306,2763306,1842204,2763306,2763306,2763306,0,0,0,2763306,2763306,2763306,2763306,0,0]]
{%- elif phase == 'waning_crescent' %}
["bitmap",{{x}},{{y}},8,8,[0,0,14079702,14079702,2763306,2763306,0,0,0,14079702,14079702,2763306,2763306,2763306,2763306,0,14079702,14079702,2763306,2763306,1842204,1842204,2763306,2763306,14079702,15790320,1842204,2763306,1842204,2763306,2763306,2763306,14079702,15790320,1842204,2763306,2763306,2763306,2763306,2763306,14079702,14079702,2763306,2763306,2763306,1842204,2763306,2763306,0,14079702,14079702,1842204,2763306,2763306,2763306,0,0,0,14079702,14079702,2763306,2763306,0,0]]
{%- elif phase == 'waning_gibbous' %}
["bitmap",{{x}},{{y}},8,8,[0,0,14079702,14079702,3552822,3552822,0,0,0,14079702,14079702,15790320,15790320,3552822,3552822,0,14079702,14079702,15790320,15790320,13421772,13421772,3552822,3552822,14079702,15790320,13421772,15790320,13421772,15790320,3552822,3552822,14079702,15790320,13421772,15790320,15790320,15790320,3552822,3552822,14079702,14079702,15790320,15790320,15790320,13421772,3552822,3552822,0,14079702,14079702,13421772,15790320,3552822,3552822,0,0,0,14079702,14079702,3552822,3552822,0,0]]
{%- elif phase == 'waxing_crescent' %}
["bitmap",{{x}},{{y}},8,8,[0,0,3355443,3355443,14079702,14079702,0,0,0,3355443,3355443,3355443,3355443,14079702,14079702,0,3355443,3355443,3355443,3355443,1644825,1644825,14079702,14079702,3355443,3355443,1644825,3355443,1644825,3355443,15790320,14079702,3355443,3355443,1644825,3355443,3355443,3355443,15790320,14079702,3355443,3355443,3355443,3355443,3355443,1644825,14079702,14079702,0,3355443,3355443,3355443,3355443,14079702,14079702,0,0,0,3355443,3355443,14079702,14079702,0,0]]
{%- elif phase == 'waxing_gibbous' %}
["bitmap",{{x}},{{y}},8,8,[0,0,3355443,3355443,14079702,14079702,0,0,0,3355443,3355443,14079702,15790320,14079702,14079702,0,3355443,3355443,15790320,15790320,12763842,12763842,14079702,14079702,3355443,3355443,12763842,15790320,12763842,15790320,15790320,14079702,3355443,3355443,12763842,15790320,15790320,15790320,15790320,14079702,3355443,3355443,15790320,15790320,15790320,12763842,14079702,14079702,0,3355443,3355443,12763842,15790320,14079702,14079702,0,0,0,3355443,3355443,14079702,14079702,0,0]]
{%- endif %}
{%- endmacro %}
{{ draw_moon(moon_phase, 24, 0) }}
value_template: '{{state_attr(entity_id, ''temperature'') | round}}'
color: |-
{{colors[(colors.items() | map(attribute='0') |
map('int') | sort | select('>=', value_template) | first) | string]}}
forcast_temp: |-
{{(forecast[forecast.keys() | first]).forecast |
map(attribute="temperature") |
map('round') |
list}}
pre_actions:
- target:
entity_id: '{{entity_id}}'
data:
type: hourly
response_variable: forecast
action: weather.get_forecasts
prefix_text: '{{ ''+'' if value_template > 0 }}'
app_name: awtrix_app_forcast
extra_triggers:
- trigger: time_pattern
minutes: /5