HOWTO Solution: Shelly BLU TRV with Gen 3 Gateway

I’ve been working on integrating Shelly BLU TRV devices into my smart home system, and I wanted to share my journey and solution for anyone else tackling a similar project.

Initially, I was a bit overwhelmed by the setup process, but after some research and experimentation, I found a reliable method to control the TRV valve positions using HTTP calls. Here’s how I did it:

  1. Understanding the TRV Commands: I discovered that the Shelly BLU TRV supports specific RPC commands for setting target temperatures and valve positions. For example, to set the target temperature to 22°C, I use the following command:
    http://192.168.33.1/rpc/BluTrv.Call?id=200&method=“TRV.SetTarget”&params={“id”:0,“target_C”:22}
    Similarly, to adjust the valve position to 50%, the command is:
    http://192.168.33.1/rpc/BluTrv.Call?id=200&method=“TRV.SetPosition”&params={“id”:0,“pos”:50}

  2. Integration with Home Automation System: To make this work seamlessly within my Homey ecosystem, I set up Actions that trigger these HTTP calls. This allows me to control the TRV devices directly from my smart home app without needing constant manual intervention.

  3. Temperature Offset Handling: One thing to note is that Shelly devices allow you to set a temperature offset, but this only affects the displayed temperature. For accurate readings, I recommend using an external temperature sensor that reports directly to your automation system.

  4. Webhooks for Real-Time Updates: I also configured the Shelly devices to send webhooks to Homey whenever there’s a change in temperature or valve position. This ensures that my system always has up-to-date information without relying on polling.

  5. Optimizing Resource Usage: Since Homey can become overwhelmed with too many direct connections, I’ve been selective about which devices I integrate directly. Using HTTP calls and webhooks has helped keep the system responsive and efficient.

This setup has been a game-changer for managing my home’s heating system. It’s not only more efficient but also gives me precise control over each radiator. I hope this guide helps others who are looking to integrate Shelly BLU TRV devices into their smart homes!

If anyone has questions or needs further clarification, feel free to reach out. Happy automating! :rocket: