flopp999 / HomeConnect-Domoticz

GNU General Public License v3.0
0 stars 0 forks source link

Support me with a coffee https://www.buymeacoffee.com/flopp999 or use my Tibber link https://tibber.com/se/invite/8af85f51


Create a folder with name "HomeConnect" in "domoticz/plugins"
Copy plugin.py, requirements.txt and HomeConnect.zip into HomeConnect-folder
Run "pip3 install -r requirements.txt" to install all packages that this plugin needs

or

Run in domoticz/plugins "sudo git clone https://github.com/flopp999/HomeConnect-Domoticz HomeConnect"
Run "cd HomeConnect"
Run "pip3 install -r requirements.txt" to install all packages that this plugin needs


You need to have some information to be able to use this plugin:

Client ID
Client Secret
Redirect RUi
Authorization Code
Refresh Token
Access Token

Client ID, Client Secret and Redirect URi

Login to Home Connect
Register new application https://developer.home-connect.com/applications/add
Application ID can be anything, OAuth Flow shall be "Authorization Code Grant Flow", Home Connect User... can be empty, Redirect URi can be any address, as long as it exists
Copy Client ID, Client Secret and Redirect URi, paste to HomeConnect hardware in Domoticz

Authorization Code

Create an Authorization code by replace {client_id} and {redirect_uri}, in the link below, with details you got during registration of new application
https://api.home-connect.com/security/oauth/authorize?response_type=code&client_id={client_id}&scope=IdentifyAppliance%20Monitor&redirect_uri={redirect_uri}