Blueforcer / awtrix3

Custom firmware for the Ulanzi Smart Pixel clock or self made awtrix. Getting started is easy as 1-2-3
https://blueforcer.github.io/awtrix3/
Other
1.24k stars 108 forks source link

[BUG] mqtt topic published under: /notify does not display #592

Closed sjetzer closed 6 hours ago

sjetzer commented 4 weeks ago

Bug report (?)

Describe the bug

Hello, The topic published under: awtrix_06cf08/notify does not display on the TC001 but if published under: awtrix_06cf08/custom/test it's works well!

Additional information

To Reproduce

HASS automation Not OK: action: mqtt.publish metadata: {} data: topic: awtrix_06cf08/notify payload: >- {"icon": "23634","text": "{{states('sensor.sensor_soil_moisture_2')}} % , "duration": 20 } alias: Soil 02

HASS automation OK: action: mqtt.publish metadata: {} data: topic: awtrix_06cf08/custom/soil payload: >- {"icon": "23634","text": "{{states('sensor.sensor_soil_moisture_2')}} % , "duration": 20 } alias: Soil 02

Screenshots

The messages are transmitted well (check with mqtt explorer) image

A clue ? ;-) Thx

Blueforcer commented 3 weeks ago

Can you post the full json from MQTT explorer please?

sjetzer commented 3 weeks ago

Thanks to your question I was able to solve my problem. The "alias" is causing problems with /notify

json with alias : {"icon": "23634","text": "80.0 %", "duration": 20 } alias: humidite_terre_ext

json without alias : { "icon": "23634", "text": "80.0 %", "duration": 20 }

image

thanks a lot.