Help to Mqtt rules

I just discover nod-red, and I would like to pick up a value from my domoticz server and send to espeasy with a new Mqtt topic. Can anybody help me ?


I would like now to send the reading of svalue5 to a new Mqtt topic "power" but I don't find how to do it.
Thanks for your help

  1. Connect a change node to the output of MQTT IN node
    1. Set msg.payload to msg.payload.svalue5
    2. Set msg.topic to power
  2. Connect an MQTT out node to the new change node

The task you are doing is very basic knowledge of node-red, I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

1 Like

Thanks, it works, but I need also add a node to change only this specific publication.
Maybe filter on name" Teleinfo kWh Total" or idx:59

I tried to add a switch between Mqtt in and the change node but I donn't know how to set it up.

Honestly, this is very basic beginners stuff. You really should spend some time learning node-red.


Thank you, works fine !

Have a nice day

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.