how to add Honeywell Lyric T6 to Domoticz

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
pa3vos
Posts: 3
Joined: Sunday 09 December 2018 20:33
Target OS: Windows
Domoticz version:
Contact:

how to add Honeywell Lyric T6 to Domoticz

Post by pa3vos »

Hi,

My goal is to have Domoticz communicate with my Honeywell Lyric T6 and have my two IR-heaters switched on based on the temperature that has been communicated to Domoticz. So a kind of IF THAT, THEN THAT :lol: ...
I am running Domoticz as server on a hobby-PC with Windows 10. And that will stay that way, at least for now!
I managed to get through all the steps discribed here: https://www.domoticz.com/wiki/HoneywellDeveloperApiKey but could not finalize step 8. so I could complete the setting in Domoticz because I can not get the required Tokens! And if I want to make the last webrequest to the Honeywell API to retrieve the Access Token and Refresh Token, is it required to do this on the PC where Domoticz server is running? Can anyone help please?
Schermafbeelding 2022-09-18 132135.jpg
Schermafbeelding 2022-09-18 132135.jpg (98.85 KiB) Viewed 2502 times
Schermafbeelding 2022-09-18 131239.jpg
Schermafbeelding 2022-09-18 131239.jpg (234.63 KiB) Viewed 2502 times
Domoticz Honeywell thermostaat.jpg
Domoticz Honeywell thermostaat.jpg (90.75 KiB) Viewed 2502 times
hvoorend
Posts: 32
Joined: Sunday 01 March 2020 13:18
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.2
Location: Netherlands
Contact:

Re: how to add Honeywell Lyric T6 to Domoticz

Post by hvoorend »

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 :lol: ). 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 !
Raspberry Pi 2
Raspbian Bookworm
Aeon zStick Gen5 fw 1.0
RFXCOM USB
Domoticz 2024.2
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest