Page 49 of 49 FirstFirst ... 39444546474849
Results 481 to 483 of 483

Thread: Decoded - EvoHome API access to control remotely.

  1. #481
    Automated Home Guru
    Join Date
    Dec 2016
    Posts
    202

    Default

    Quote Originally Posted by William View Post
    My application ID is b013aa26-9724-4dbd-8897-048b9aada249.

    Header:

    $Header = array('Authorization:bearer ' . $_SESSION[token] ,
    'applicationId=b013aa26-9724-4dbd-8897-048b9aada249',
    'Accept=application/json, application/xml, text/json, text/x-json, text/javascript, text/xml');

    Body to set HW:

    $url = BASEURL . 'domesticHotWater/xxHWZONEIDxx/state';
    $Result = CURL($url, $Header, 'PUT', 'State=1&Mode=2&UntilTime='.$time, true);
    That is the newer API and it might be worth while noting that that application ID is obsolete (i.e. it also works without it).

  2. #482
    Automated Home Lurker
    Join Date
    Dec 2016
    Posts
    6

    Default

    Quote Originally Posted by 03397 View Post
    Can you please pm with your code to get an idea how you r did the whole functionality?
    I tried to pm the code but it's 5 times bigger than the permitted amount (5000 chars) !

  3. #483
    Automated Home Guru
    Join Date
    Dec 2016
    Posts
    202

    Default

    Quote Originally Posted by 03397 View Post
    Thanks for your reply.
    ...

    but I am getting this
    [24.02.2021] [10:54:30] [DEBUG] [QUICKAPP195]: Full date 2021-02-24T11:24:30
    [24.02.2021] [10:54:31] [DEBUG] [QUICKAPP195]: [ { "code": "ForbiddenParameter", "message": "'CoolSetpoint' is forbidden."
    [24.02.2021] [10:54:31] [DEBUG] [QUICKAPP195]: response status: 400

    I am pretty sure the there is something wrong with the values of the body but I did not manage to find anything.
    Your help will be really appreciated.
    As far as I know those parameters should work, but it might be off because you are not sending the expected format (the API likes JSON, not a URI parameter string). A second problem may be that just over a year ago they stripped some of the rights from this particular application ID. The one that I noticed is since then session renewal no longer functions and you must login again after 15 minutes have passed, but not with every request because then you will go past the session count limit.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •