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

Use mqtt_publish to send value of sensor

$
0
0

@DAVIZINHO wrote:

Hello,
I want to send the value of the sensor by mqtt_publish to my domoticz server. This will very usefull for me.

Now i create a automation with mqtt_publish service and works if I send a number value like this:

payload: '{ "command": "udevice", "idx": 174, "nvalue": 0, "svalue": "59"}'
topic: domoticz/in

If i launch this automation it works great and push the “59” value in my device throught mqtt.

But i want to use the value of a sensor: “sensor.weight”.

How can i do this?? its important respect the quotes or it will not works :frowning:

thanks a lot for the support!

Posts: 2

Participants: 2

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>