Hi pa3vos, maybe you got it working in the meantime but I nevertheless thought to post my experience here since I got it working.
It turned out that the Domoticz wiki page for point 8. is not exactly correct.
This has put me on the right track:
https://robothuis.nl/2022/08/08/herstel ... -domoticz/.
What it comes down to for point 8. is that you should:
1) replace
[KEY] in
Code: Select all
https://api.honeywell.com/oauth2/authorize?response_type=code&client_id=[KEY]&redirect_uri=none
by your API-key (so fully replace [KEY] - no brackets).
2) copy paste the resulting URL in your browser and login to the RESIDEO Developer Website (assuming you already created your credentials). Then click the "Allow" button (to give away all your privacy

). In the next screen select your Honeywell Home device. A blue checkmark will then appear in its top right corner. Now click the "Connect" button and you will be redirected to your "none"-page. From the URL,
note down the 8-char code between "code=" and "&scope=".
3) Now where it starts to get tricky and where the Wiki goes wrong: Base64 encode your API-key and Secret by typing the following command in
exactly the following format on a linux command prompt:
Code: Select all
echo -n "your API-key without brackets:your API-secret without brackets" | base64
(mind the colon (:) between the two codes and keep the surrounding double qoutes)
The result will be something like
SEhjNjc3UW16QUJ4NTZ4REVmMWhJSktMMk1uT3BRUng6M1l6YTRiNUNEZUY0SEkzag==
(I found it usually ends on == if you did it correctly).
You can also use this page to paste your "
API-key without brackets:
your API-secret without brackets" (no double quotes this time!) and encode it:
https://www.base64encode.org/ . The resulting Base64-code should be the same as from the linux command prompt.
4) The last step is to run this command from a linux command prompt:
Code: Select all
curl -X POST -H 'Authorization: Basic your_BASE64_STRING' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: application/json' -d 'grant_type=authorization_code&code=the_code_you_noted_in_step_2&redirect_uri=none' https://api.honeywell.com/oauth2/token
It is important to specify your codes without any brackets or quotes !
From this command you will get a response like:
{"access_token":"
your new access token","refresh_token":"
your new refresh token","expires_in":"1799", "token_type":"Bearer"}
Now you can specify the access- and refresh tokens in Domoticz and off you go !