Faecon
(Jo)
1
data:
topic: awtrix/custom/cpp
retain: false
payload: |
{
"text": "{{ states('sensor.p1_meter_5c2faf04a1f2_actueel_vermogen') }} W",
"color": "{% if states('sensor.p1_meter_5c2faf04a1f2_actueel_vermogen') | float > 1500 %}#00ff00{% else %}#ff0000{% endif %}",
"duration": 2
}
action: mqtt.publish
I want to push the data of my solar panel but it gives me nothing. what is wrong here ?
dirkhaun
(Dirk Haun)
2
Can you successfully display a static text? That’s the first thing I’d try.
Also, shouldn’t the “topic: awtrix/…” include the proper prefix of your clock? Something like awtrix_1234f5
Faecon
(Jo)
3
this is the code that works for me…
action: awtrix.awtrix_push_app_data
metadata: {}
data:
name: test
data:
text: "{{ states('sensor.p1_meter_5c2faf04a1f2_actueel_vermogen') }} W"