Hello everyone, I wanted to share my experience with setting up the GPIO switches on my Shelly 4PRO. I’ve been trying to use these switches in a detached mode, where their status isn’t tied to the relays. While controlling the relays via MQTT was straightforward, getting the switch status updates was a bit of a puzzle at first.
I started by setting up a tentative sensor configuration in Home Assistant, but the status sensor kept showing as ‘unavailable’. After some research and trial and error, I realized that the issue might be with how the MQTT topics were configured. I adjusted the availability topic to ensure it was correctly reflecting the device’s online status, and that made a huge difference!
Here’s a quick tip for anyone else working on this: make sure your MQTT topics are correctly set up and that the device’s availability is being properly monitored. If you’re still having trouble, checking the MQTT logs in Home Assistant can provide some clues.
It’s been a great learning experience, and I’m happy to have this functionality working now. I can’t wait to integrate this further into my home automation setup! ![]()