Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Mqtt Publish Payload Problem

$
0
0

@nachiarg wrote:

Hi, Im needing some help with a Automation im building. I’ve build an AWTRIX clock to monitor many of my home sensors via the MQTT built in AWTRIX

In order to be seen in Awtrix the payload of the MQTT message has to be in this format

{
“name”:“TestNotification”,
“force”:true,
“icon”:6,
“moveIcon”:true,
“repeat”:2,
“soundfile”:1,
“text”:“Totally Awesome”,
“color”:[
0,
255,
0
]
}

Ive a problem sending this payload via the Automation GUI or using the “Configurator” Add-on

If test-drive the message through the MQTT in configurations everything works but if I paste it in the automation payload it does not work. Ive narrow it down to " {{ states.sensor.dolar_ccl_venta.state }} "

Example: working message (Tested using the MQTT publisher in settings):

{“name”:“DolarCCL”,“force”:true,“icon”:520,“moveIcon”:true,“repeat”:2,“text”:“Dolar : {{ states.sensor.dolar_ccl_venta.state }}”,“color”:[0,255,0]}

How I am supposed to write down this in a payload or payload_template

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>