Thank you for the tip on using service: climate.set_temperature. I copied relevant lines into a separate script, but the visual editor indicated that I was trying to perform an action on an unknown device. I realized that you can create it graphically just as easily! You just need to select a service as an action. From there, you can navigate seamlessly. Find the “climate” service for your Shelly TRV and proceed logically and easily. All of this without having to modify any code. You define the target, and that’s the key point many overlook. Instead of addressing a device, you address a service and then set the target within the service. Everything is visually achievable. At the same time, you can set and specify the HVAC mode for temperature. Finally, I checked the YAML result and noticed the reason an unknown device was initially detected was because the device_id was a long hex sequence, not the name assigned with climate.entity, as would be logically expected. In any case, that’s how it works with a script. If it works with that, it will work with the rest too. Visual and straightforward, no need to be afraid!
And as an action in an automation, it looks like this