I recently embarked on a project to integrate my Shelly scenes with Home Assistant, and I wanted to share my experience and findings with the community. My goal was to trigger Shelly i4 device events—such as short, double short, and long presses—remotely through a button in my Lovelace dashboard. This would allow me to reuse the scenes I’ve already created in the Shelly app without duplicating efforts in Home Assistant.
After some research, I discovered that Shelly supports Webhooks and DDD (Direct Device to Device) communication. However, the documentation for the Shelly i4 wasn’t as clear as I hoped. I reached out to the community for help and found some fantastic resources that guided me toward the solution.
One key takeaway was understanding how to construct the correct URL string for Webhooks. For example, to simulate a double short press on the first button of my Shelly i4, I needed to use a URL like http://192.168.0.50/channel/0?event=SS. This allowed me to trigger the exact same actions as if I were pressing the physical button on the wall.
I also explored alternative methods, such as using virtual switches and momentary tiles, which provided a workaround for time-based automation. However, the Webhooks approach proved to be the most straightforward and efficient for my use case.
This project taught me the importance of leveraging existing integrations and the value of community support. I’m now able to maintain a seamless experience across both Shelly and Home Assistant, which has significantly enhanced my smart home setup.
If anyone has questions or needs assistance with similar integrations, feel free to reach out! I’d be happy to share more details or troubleshoot together.