Raspberry Pi Led turns on on every deployment


i started to work with node-red on a raspberry and for tests i just conneted an LED. My goal is to send a value through a switch button with a broker to the node red on the raspberry. It works perfectly but every time i add something on the flow of my raspberry the led turns on automaticly even if the switch is still turned off.

Hi and weclome to the forum

Can you paste your flow here for us to look at?

its basically just this on my flow on my pc with default setting switch on true value switch off false value. On the raspbarry its just an mqtt out connected to a pin

Which deploy mode are you using? If using "Full" deploy, every node will get restarted, even if they are unchanged.


1 Like

yes that was it thanks

You're welcome!

The "Modified Nodes" mode should be sufficient most of the time.

You might want to consider setting your MQTT out node to retain the message. That way - your receiving MQTT node on your Pi, should always track the last state of your switch

1 Like

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