Hey everyone, I thought I’d share my journey with the Shelly 1 and MQTT in Node-RED. It’s been quite the adventure! ![]()
So, I’ve been using the Shelly 1 as an input-only device in detached mode to control a separate light. MQTT is enabled, and I’ve set it up for unicast communication with my Home Assistant setup. The flow works, but there’s this pesky issue where the Shelly 1 sends an MQTT message every 30 seconds, even when the switch isn’t being flipped. It’s a bit overwhelming, to say the least. ![]()
I tried turning off the keep-alive feature in the Shelly’s WebGUI, but it didn’t work—it says it can’t set it to 0 seconds due to firmware limitations (firmware version 2021/07). I really just want it to send messages only when the switch is toggled, similar to how the state change node works in the HA palette. But MQTT’s constant updates are a bit too much for my setup. ![]()
The reason I’m using MQTT directly in Node-RED instead of the HA integration is all about response time. MQTT is super fast, which is crucial for my setup. While using the state change node from the HA palette works, it introduces a slight delay, which isn’t ideal but manageable. ![]()
After some research, I found a workaround! By adjusting the MQTT topic and using a filter in Node-RED, I can suppress the unnecessary updates. It’s not perfect, but it significantly reduces the noise. I’m still experimenting with different configurations to find the sweet spot. ![]()
If anyone has tips or alternative solutions, I’d love to hear them! Let’s keep the conversation flowing and help each other tackle these little challenges. ![]()