I recently ran into a frustrating issue with unexpected relay activations in my Arduino IoT Cloud dashboard. The relays were behaving oddly, interacting with other cloud variables in ways that didn’t make sense—especially when using a physical pushbutton to trigger them.
Problem Overview:
I had 2 independent relays with widget pushbuttons.
- When activating Relay1, it would also sync with the two flip-flop state variables.
- This caused unexpected behavior, affecting not just Relay1, but Relay2 as well.
- Despite checking my code logic, the issue wasn’t in the sketch—it was buried in the Arduino IoT Cloud settings.
How I Found the Issue:
I carefully compared my two Tank THINGS in the IoT Cloud setup and discovered an incorrect linkage.
- Go to the Arduino IoT Cloud page and select your THING.
- Look under the "Setup" tab at your cloud variables.
- Select "Relay1" and click "Edit Variable."
- The field "Sync with Other Things" should have been default—but instead, it was linked to both flip-flop states. (My code to handle push button toggling)
- This meant activating Relay1 wasn’t just affecting Relay1—it was syncing with other variables, causing cascading effects.
The Fix:
- I manually removed the unwanted sync linkages, leaving Relay1 independent.
- After that, the relays started behaving exactly as expected—the pushbutton worked, and there were no unwanted activations.
Key Takeaways:
Hidden sync settings in Arduino IoT Cloud can override your sketch logic.
Even if your code is correct, cloud-level links might interfere.
Always double-check "Sync with Other Things" for unexpected variable pairings.
Fixing this in the cloud setup—not the code—solved my issue instantly.
I’m posting this because I haven’t seen many discussions about this exact issue, and it could be affecting others without them realizing it. If you've run into something similar, now you know where to check.