flopp999 / NIBEmyUplink-Domoticz

0 stars 0 forks source link

Support me with a coffee https://www.buymeacoffee.com/flopp999

Create a folder with name "NIBEmyUplink" in "domoticz/plugins"
Put plugin.py, requirements.txt and NIBEmyUplink.zip in that folder

or

Run in domoticz/plugins "sudo git clone https://github.com/flopp999/NIBEmyUplink-Domoticz NIBEmyUplink"

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:
Identifier
Secret
Callback URL
Auth code

Identifier, Secret and Callback URL

Login to NIBE myUplink API
Create an application under My Applications
For Callback URL use "https://api.nibeuplink.com/"
Copy Identifier, Secret and Callback URL, paste to NIBEUplink hardware in Domoticz

Auth code

You need to create an Auth code before first use
Copy the link below and open it in your browser
"https://api.myuplink.com/oauth/authorize?response_type=code&client_id=yyyyyy&scope=READSYSTEM WRITESYSTEM offline_access&redirect_uri=http://validurl.local:1234&state=x"
Before open the link change yyyyyy to your Identifier, NOT YOUR SYSTEM ID!!!
Also change redirect_uri to your own Callback URL
Then it will ask you to login and accept.
When this is done the address bar will look something like below
"https://api.myuplink.com/?code=ndfhj3u38ufhswhnerjqa5zEyN-RmBgkTCc&state=x"
Copy everything after "...code=" and before "&state...", the code above is just an example, normally the code is ~380 characters
Above example have access code "ndfhj3u38ufhswhnerjqa5zEyN-RmBgkTCc"

Support me with a coffee https://www.buymeacoffee.com/flopp999