flopp999 / NIBEUplink-Domoticz

Script for collecting data from NIBE. Support me with a coffee or use my Tibber link https://tibber.com/se/invite/8af85f51
https://www.buymeacoffee.com/flopp999
MIT License
5 stars 1 forks source link

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

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

or

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

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
Access code

Identifier, Secret and Callback URL

Login to NIBE Uplink 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

Access code

You need to create an Access code before first use
Click on the link below, you will get an error, that is OK
https://api.nibeuplink.com/oauth/authorize?client_id=yyyyyy&scope=READSYSTEM&state=x&redirect_uri=https://api.nibeuplink.com/&response_type=code
Once you clicked it, in the address bar change yyyyyy to your Identifier, NOT YOUR SYSTEM ID!!!
Then it will ask you to login and accept.
When this is done the address bar will look something like below
"https://api.nibeuplink.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