TRV - How to set the Target Temperature via Cloud APIs?

  • Hi,

    I would like to control my TRV thermostat via the Cloud APIs.

    The idea is to enable / disable the TRV and to set the target temperature.

    My use case is, that whenever I go to the office, the thermostat shall be enabled and the target temperature shall be set to 20 degree. And, whenever I leave the office, the TRV shall be disabled.

    With the following http request, I am able to set the position of the valve (here: to 40%). That works fine!

    https://<shelly-cloud-ip>/device/thermostat/control/?pos=40&id=<my_TRV_ID>&auth_key=<my_auth_key>

    I have tried to set the target value to 20 degree with the following http request, but that request does not work.

    https://<shelly-cloud-ip>/device/thermostat/control/?target_t=20&id=<my_TRV_ID>&auth_key=<my_auth_key>

    The response to the request is

    {"isok":false,"errors":{"err_temp":"Control values missing"}}

    The same error appears when using the following http request with target_t_enabled=1

    https://<shelly-cloud-ip>/device/thermostat/control/?target_t_enabled=1&id=<my_TRV_ID>&auth_key=<my_auth_key>

    Any idea how the http request should look like?

    Einmal editiert, zuletzt von Steini007 (16. September 2022 um 18:07)

  • Hi Steini,

    same result for my requests. Did you solve this problem or does it still persist?

    If its not solved: does anybody know how to set target_t to enabled and set target_t value (temperature)

    Thanks,

    Daniel

  • Hi,

    I think it's not "target_t" it's simply "temp".

    For me the following ist working for direct temperature change (here set to 22 Degrees):

    https://xxx.shelly.cloud/device/thermos…xx&auth_key=xxx

    My problem is that i cannot switch Scheduled Profiles.

    I tried:

    https://xxx.shelly.cloud/device/thermos…xx&auth_key=xxx

    https://xxx.shelly.cloud/device/thermos…xx&auth_key=xxx

    Both are not working

    In my WLAN/LAN

    http://192.168.178.179/settings/therm…edule_profile=4 is working.

  • Zitat

    I think it's not "target_t" it's simply "temp".

    For me the following ist working for direct temperature change (here set to 22 Degrees):

    https://xxx.shelly.cloud/device/thermos…xx&auth_key=xxx

    Hi firebowl,

    thank you very much!

    Using "temp" instead of "target_t" works for me as well!

    I have already given up, because the Shelly Support told me, that changing the temp via cloud APIs is not possible (as of 29th Sep. 2022).

    Maybe they have added it to the API functions in the meantime ...

    Unfortunately, changing the scheduled profiles doesn't work for me neither. Sorry!