Hi, I've noticed that the
swicth node is causing feedback. Perhaps it's simplest to explain with a diagram:
When I click on the
ON inject node the following happens:
- Nodered sends a power on command over MQTT
- Sonoff switches on and sends an
ONstatus ipdate via MQTT
- Nodered receives the update and updates the UI
- The switch component sends another
Step 4 is the problem. I don't expect the status update to cause a command to be sent again!
I've noticed in cases where I have several UIs open, or I switch to a UI that has been in the background for a while that this causes many queued messages to be sent at once!
Is there a way to prevent this feedback loop?