Double switch with mqtt -> endless loop

I want to build a very simple switch for both RPi.
So I have to send the status (false/true) by mqtt.

But I always get a endless loop :woozy_face:

Any idea how to get this work ? (tried switch and slider)
I want to switch the switches from both RPi, and the state should be displayed on both RPi correctly in the switch/slider. :grimacing:

Without passing trough to output, the state isn´t correct.


I think there is more here than you are saying. No problems.

I have just made something like what you have on two machines and it works.

What is catching me up is the actual node you are using (the blue one)
It isn't a slider or button.
More something like a schedule node.

If you are using the slider node I would suggest you set the option to only send on release.
But I digress.... I don't think that is part of THIS problem.

What do you mean by Endless loop though?

Don't allow pass through on the UI nodes. & Change the inject to connect to the MQTT out instead of the UI node.

Or. Try an RBE before the blue UI nodes.

In truth, the better solution is to use a separate topics. 1 to command and another for status.

1 Like

thats it, as my charging station (openWB) it does with all mqtt:

openWB/config/get/pv/lp/1/maxSoc <--> openWB/config/set/pv/lp/1/maxSoc

But I don´t get it with 2 topics, can you give me an example @Steve-Mcl

i think i got it:

1.: pass through output
2.: do not pass through output

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