Closed rene2716 closed 5 years ago
Are you using a current update of the toonapilib? I'm using version 3.2.3 (https://github.com/costastf/toonapilib) Look for a line in Domoticz logging like: "XXXXX (Toon) Using toonapilib version 3.2.3 by Costas Tyfoxylos costas.tyf@gmail.com"
Hi,
This is the log
2019-07-02 12:37:36.340 (toon) Using toonapilib version 3.2.4 by Costas Tyfoxylos costas.tyf@gmail.com 2019-07-02 12:37:36.340 (toon) Debug logging is off 2019-07-02 12:37:36.337 Status: (toon) Initialized version 1.2.0, author 'John van de Vrugt' 2019-07-02 12:37:36.337 Status: (toon) Entering work loop. 2019-07-02 12:37:38.843 (toon) Could not create a toonapilib object 2019-07-02 12:37:38.844 (toon) Possible solution: 2019-07-02 12:37:38.844 (toon) Check your credentials 2019-07-02 12:37:38.844 (toon) Restart Domoticz 2019-07-02 12:37:38.844 (toon) Check and create Toon devices 2019-07-02 12:37:38.844 (toon) Creating power usage device Power usage 2019-07-02 12:37:38.847 (toon) Creating gas usage device Gas usage 2019-07-02 12:37:38.849 (toon) Creating temperature device Room temperature 2019-07-02 12:37:38.851 (toon) Creating set point device Set point 2019-07-02 12:37:38.853 (toon) Creating heating active device Heating active 2019-07-02 12:37:38.855 (toon) Creating hot water active device Hot water active 2019-07-02 12:37:38.857 (toon) Creating pre heat active device Preheat active 2019-07-02 12:37:38.859 (toon) Creating thermostat state device Scene 2019-07-02 12:37:38.862 (toon) Creating program state device Program state 2019-07-02 12:37:38.864 (toon) Creating modulation level device Modulation level 2019-07-02 12:37:38.867 Error: (toon) 'onStart' failed 'AttributeError':''NoneType' object has no attribute 'smartplugs''. 2019-07-02 12:37:38.867 Error: (toon) ----> Line 110 in '/home/pi/domoticz/plugins/toonapilib4domoticz/plugin.py', function onStart 2019-07-02 12:37:38.867 Error: (toon) ----> Line 65 in '/home/pi/domoticz/plugins/toonapilib4domoticz/plugin.py', function on_start 2019-07-02 12:37:38.867 Error: (toon) ----> Line 40 in '/home/pi/domoticz/plugins/toonapilib4domoticz/devices/device_factory.py', function create_devices
Op di 2 jul. 2019 om 11:53 schreef Peter Laanstra <notifications@github.com
:
Are you using a current update of the toonapilib? I'm using version 3.2.3 (https://github.com/costastf/toonapilib) Look for a line in Domoticz logging like: "XXXXX (Toon) Using toonapilib version 3.2.3 by Costas Tyfoxylos costas.tyf@gmail.com"
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JohnvandeVrugt/toonapilib4domoticz/issues/18?email_source=notifications&email_token=AJWNAS4MN34TQ3KIZ2ESA6DP5MQRBA5CNFSM4H4Z4STKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZAXK5A#issuecomment-507606388, or mute the thread https://github.com/notifications/unsubscribe-auth/AJWNAS3AZ3H5UHFICCH5PZTP5MQRBANCNFSM4H4Z4STA .
Are your credentials (Eneco user, Eneco pass, Consumer key, Consumer secret, etc) for Toon correct in the ToonApiLib page? I'm seeing the error lines:
2019-07-02 12:37:38.843 (toon) Could not create a toonapilib object 2019-07-02 12:37:38.844 (toon) Possible solution: 2019-07-02 12:37:38.844 (toon) Check your credentials 2019-07-02 12:37:38.844 (toon) Restart Domoticz
Did the Toon hardware work before?
This has indeed worked before, im using my developper login consumerkey and consumer secret. Had to reinstall domoticz, now its not working anymore. If i enable debug where does the log go ?
Op di 2 jul. 2019 om 14:21 schreef Peter Laanstra <notifications@github.com
:
Are your credentials (Eneco user, Eneco pass, Consumer key, Consumer secret, etc) for Toon correct in the ToonApiLib page? I'm seeing the error lines:
2019-07-02 12:37:38.843 (toon) Could not create a toonapilib object 2019-07-02 12:37:38.844 (toon) Possible solution: 2019-07-02 12:37:38.844 (toon) Check your credentials 2019-07-02 12:37:38.844 (toon) Restart Domoticz
Did the Toon hardware work before?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JohnvandeVrugt/toonapilib4domoticz/issues/18?email_source=notifications&email_token=AJWNAS55LELRXAVWJFGLUY3P5NB3JA5CNFSM4H4Z4STKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZBCTXA#issuecomment-507652572, or mute the thread https://github.com/notifications/unsubscribe-auth/AJWNAS33V6TYUXXWZ35VAITP5NB3JANCNFSM4H4Z4STA .
probably made a typing error with the credentials but it still doesnt work, no i dont get the credential error but still 2019-07-02 14:31:02.087 Status: dzVents: Error (2.4.19): /home/pi/domoticz/scripts/dzVents/scripts/wusErrors.lua:6: attempt to index global 'TRIGGERERROR' (a nil value) 2019-07-02 14:31:02.093 Status: dzVents: Error (2.4.19): /home/pi/domoticz/scripts/dzVents/scripts/wusSettings.lua:61: attempt to index global 'dzW' (a nil value) 2019-07-02 14:31:02.521 Status: (toon) Entering work loop. 2019-07-02 14:31:02.521 Status: (toon) Initialized version 1.2.0, author 'John van de Vrugt' 2019-07-02 14:31:02.850 Error: (toon) 'onStart' failed 'AttributeError':''NoneType' object has no attribute 'smartplugs''. 2019-07-02 14:31:02.850 Error: (toon) ----> Line 110 in '/home/pi/domoticz/plugins/toonapilib4domoticz/plugin.py', function onStart 2019-07-02 14:31:02.850 Error: (toon) ----> Line 65 in '/home/pi/domoticz/plugins/toonapilib4domoticz/plugin.py', function on_start 2019-07-02 14:31:02.851 Error: (toon) ----> Line 40 in '/home/pi/domoticz/plugins/toonapilib4domoticz/devices/device_factory.py', function create_devices
Op di 2 jul. 2019 om 14:21 schreef Peter Laanstra <notifications@github.com
:
Are your credentials (Eneco user, Eneco pass, Consumer key, Consumer secret, etc) for Toon correct in the ToonApiLib page? I'm seeing the error lines:
2019-07-02 12:37:38.843 (toon) Could not create a toonapilib object 2019-07-02 12:37:38.844 (toon) Possible solution: 2019-07-02 12:37:38.844 (toon) Check your credentials 2019-07-02 12:37:38.844 (toon) Restart Domoticz
Did the Toon hardware work before?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JohnvandeVrugt/toonapilib4domoticz/issues/18?email_source=notifications&email_token=AJWNAS55LELRXAVWJFGLUY3P5NB3JA5CNFSM4H4Z4STKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZBCTXA#issuecomment-507652572, or mute the thread https://github.com/notifications/unsubscribe-auth/AJWNAS33V6TYUXXWZ35VAITP5NB3JANCNFSM4H4Z4STA .
dont mind the dzvent errors they are from a lua script, had them earlier so thats not of any concern
Op di 2 jul. 2019 om 14:21 schreef Peter Laanstra <notifications@github.com
:
Are your credentials (Eneco user, Eneco pass, Consumer key, Consumer secret, etc) for Toon correct in the ToonApiLib page? I'm seeing the error lines:
2019-07-02 12:37:38.843 (toon) Could not create a toonapilib object 2019-07-02 12:37:38.844 (toon) Possible solution: 2019-07-02 12:37:38.844 (toon) Check your credentials 2019-07-02 12:37:38.844 (toon) Restart Domoticz
Did the Toon hardware work before?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JohnvandeVrugt/toonapilib4domoticz/issues/18?email_source=notifications&email_token=AJWNAS55LELRXAVWJFGLUY3P5NB3JA5CNFSM4H4Z4STKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZBCTXA#issuecomment-507652572, or mute the thread https://github.com/notifications/unsubscribe-auth/AJWNAS33V6TYUXXWZ35VAITP5NB3JANCNFSM4H4Z4STA .
Stange. I did just test starting with incorrect api credentials myself and did get the same results as you did before:
2019-07-02 14:43:56.150 Status: (Toon) Started. 2019-07-02 14:43:59.328 (Toon) Using toonapilib version 3.2.4 by Costas Tyfoxylos costas.tyf@gmail.com 2019-07-02 14:43:59.329 (Toon) Debug logging is off 2019-07-02 14:43:59.327 Status: (Toon) Initialized version 1.2.0, author 'John van de Vrugt' 2019-07-02 14:43:59.327 Status: (Toon) Entering work loop. 2019-07-02 14:44:00.120 (Toon) Could not create a toonapilib object 2019-07-02 14:44:00.120 (Toon) Possible solution: 2019-07-02 14:44:00.121 (Toon) Check your credentials 2019-07-02 14:44:00.121 (Toon) Restart Domoticz 2019-07-02 14:44:00.121 (Toon) Check and create Toon devices 2019-07-02 14:44:00.121 (Toon) Creating power usage device Power usage 2019-07-02 14:44:00.142 (Toon) Creating gas usage device Gas usage 2019-07-02 14:44:00.155 (Toon) Creating temperature device Room temperature 2019-07-02 14:44:00.169 (Toon) Creating set point device Set point 2019-07-02 14:44:00.184 (Toon) Creating heating active device Heating active 2019-07-02 14:44:00.197 (Toon) Creating hot water active device Hot water active 2019-07-02 14:44:00.211 (Toon) Creating pre heat active device Preheat active 2019-07-02 14:44:00.225 (Toon) Creating thermostat state device Scene 2019-07-02 14:44:00.258 (Toon) Creating program state device Program state 2019-07-02 14:44:00.273 (Toon) Creating modulation level device Modulation level 2019-07-02 14:44:00.288 Error: (Toon) 'onStart' failed 'AttributeError':''NoneType' object has no attribute 'smartplugs''. 2019-07-02 14:44:00.288 Error: (Toon) ----> Line 110 in 'C:\Program Files (x86)\Domoticz\plugins\toonapilib4domoticz\plugin.py' 2019-07-02 14:44:00.289 Error: (Toon) ----> Line 65 in 'C:\Program Files (x86)\Domoticz\plugins\toonapilib4domoticz\plugin.py' 2019-07-02 14:44:00.289 Error: (Toon) ----> Line 40 in 'C:\Program Files (x86)\Domoticz\plugins\toonapilib4domoticz\devices\device_factory.py'
So it seems to have something to do with that the Toon object is not Ok. The error you are getting "'AttributeError':''NoneType' object has no attribute 'smartplugs''." says that the object, in this case the Toon object, is empty. So the Toon object does not exsist. Looks still something is going wrong at creating it. Hope someone can help here...
The debug log should be in the Log screen.
In addition: you can also do some testing with the python file testtoonapilib.py located in the toonapilib4domoticz directory. Edit the file and fill in your credentials and api key and secret.
run it on terminal prompt on your raspberry pi: python3 testtoonapilib.py
And if all is right the you get some info like this:
Starting toonapilib test On success the room temperature will be presented Trying to create a toon object Room temperature: 25.5
wel did the test,
gave this Starting toonapilib test On success the room temperature will be presented Trying to create a toon object An error occurred creating the Toon object
cant see what the problem is
Op di 2 jul. 2019 om 15:12 schreef Peter Laanstra <notifications@github.com
:
In addition: you can also do some testing with the python file testtoonapilib.py located in the toonapilib4domoticz directory. Edit the file and fill in your credentials and api key and secret.
run it on terminal prompt on your raspberry pi: python3 testtoonapilib.py
And if all is right the you get some info like this:
Starting toonapilib test On success the room temperature will be presented Trying to create a toon object Room temperature: 25.5
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JohnvandeVrugt/toonapilib4domoticz/issues/18?email_source=notifications&email_token=AJWNAS4ELZ5V3DWGAUS5T3TP5NH4TA5CNFSM4H4Z4STKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZBHBQA#issuecomment-507670720, or mute the thread https://github.com/notifications/unsubscribe-auth/AJWNAS2TNCCDF3FO4PH2VLTP5NH4TANCNFSM4H4Z4STA .
In that case the error is for sure the credentials or the api key and secret. Please make sure you use the credentials for "Mijn Eneco" and not the credentials for the developer.toon.eu pages.
Huh,
If i want to use an consumer key and secret i have to use my developper credentials, alwasy did it that way. Since when can you use mijn eneco credentials with a consumer key and secret? Always did use developper credentials its the only way you can create an api key with secret and key
Op di 2 jul. 2019 om 15:30 schreef Jan Donker notifications@github.com:
In that case the error is for sure the credentials or the api key and secret. Please make sure you use the credentials for "Mijn Eneco" and not the credentials for the developer.toon.eu pages.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JohnvandeVrugt/toonapilib4domoticz/issues/18?email_source=notifications&email_token=AJWNAS6MZXVH5GJDUTRRVDLP5NJ63A5CNFSM4H4Z4STKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZBIXQQ#issuecomment-507677634, or mute the thread https://github.com/notifications/unsubscribe-auth/AJWNASYMJFF3KTETSYXRVNTP5NJ63ANCNFSM4H4Z4STA .
nevermind, indeed with the mijn eneco credentials it started to work, think i messed up my mind somwhere :)
case closed
Op di 2 jul. 2019 om 15:45 schreef René Heus rene.heus@gmail.com:
Huh,
If i want to use an consumer key and secret i have to use my developper credentials, alwasy did it that way. Since when can you use mijn eneco credentials with a consumer key and secret? Always did use developper credentials its the only way you can create an api key with secret and key
Op di 2 jul. 2019 om 15:30 schreef Jan Donker notifications@github.com:
In that case the error is for sure the credentials or the api key and secret. Please make sure you use the credentials for "Mijn Eneco" and not the credentials for the developer.toon.eu pages.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JohnvandeVrugt/toonapilib4domoticz/issues/18?email_source=notifications&email_token=AJWNAS6MZXVH5GJDUTRRVDLP5NJ63A5CNFSM4H4Z4STKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZBIXQQ#issuecomment-507677634, or mute the thread https://github.com/notifications/unsubscribe-auth/AJWNASYMJFF3KTETSYXRVNTP5NJ63ANCNFSM4H4Z4STA .
wrong thinking :)
log Error: (toon) 'onStart' failed 'AttributeError':''NoneType' object has no attribute 'smartplugs''. 2019-07-02 11:29:30.499 Error: (toon) ----> Line 110 in '/home/pi/domoticz/plugins/toonapilib4domoticz/plugin.py', function onStart 2019-07-02 11:29:30.499 Error: (toon) ----> Line 65 in '/home/pi/domoticz/plugins/toonapilib4domoticz/plugin.py', function on_start 2019-07-02 11:29:30.499 Error: (toon) ----> Line 40 in '/home/pi/domoticz/plugins/toonapilib4domoticz/devices/device_factory.py', function create_devices 2019-07-02 11:30:12.100 Error: WebServer PO exception occurred : 'stoull' 2019-07-02 11:30:16.032 Error: WebServer PO exception occurred : 'stoull' 2019-07-02 11:30:20.882 Error: WebServer PO exception occurred : 'stoull'