Closed a3vd closed 4 years ago
That is because a while ago the API authentication has been changed: https://github.com/JohnvandeVrugt/toonapilib4domoticz/issues/25
So my guess would be you need to create an access token via "https://api.toon.eu/toonapi-accesstoken?tenant_id=eneco&client_id=
Great that did the Job, a bit confusing the change it once a year :-(
Tnxs for the quick reply
After an update to buster because of some other issues on Domoticz i got problems with the api
When i test it with testtoonapilib i get :
Starting toonapilib test On success the room temperature will be presented Trying to create a toon object An error occurred creating the Toon object
Also in Domoticz i get errors after enabling the api
2020-02-11 15:40:10.355 Error: (Toon) 'onStart' failed 'AttributeError':''NoneType' object has no attribute 'smartplugs''. 2020-02-11 15:40:10.355 Error: (Toon) ----> Line 104 in '/home/pi/domoticz/plugins/toonapilib4domoticz/plugin.py', function onStart 2020-02-11 15:40:10.355 Error: (Toon) ----> Line 62 in '/home/pi/domoticz/plugins/toonapilib4domoticz/plugin.py', function on_start 2020-02-11 15:40:10.355 Error: (Toon) ----> Line 41 in '/home/pi/domoticz/plugins/toonapilib4domoticz/devices/device_factory.py', function create_devices
I am on the latest Beta Version: 4.11674 OS = Buster
I updated sudo pip3 install toonapilib -U and reinstalled all with git clone https://github.com/JohnvandeVrugt/toonapilib4domoticz
The strange thing i got is that at Hardware device i only see the Acces Token credentials and not the user key and login name and password any more ?