@viktak wrote:
Hi,
I’m using an mqtt switch entity with the following definition:- platform: mqtt name: mySwitch command_topic: "cmnd" value_template: '{{ value_json["Data"] }}' qos: 1 payload_on: '{"key": {% anotherentityofmine.state %} }'
Unfortunately, the payload that arrives to the broker is the literal string “{“key”: {% anotherentityofmine.state %} }”.
Is there a way to get the actual value of it?Thanks for any pointers!
v
Posts: 3
Participants: 2