Page 13 of 15
Re: Error ToonThermostat
Posted: Monday 15 April 2019 11:23
by Hiu80
Installed domoticz on an different system, and got the exact same result. I am starting to think my username of password are not correctly saved in the config or something. Is there an .ini file where the username and password are saved in plain text, so i can check if it is correct?
Re: Error ToonThermostat
Posted: Monday 15 April 2019 11:34
by Hiu80
Hiu80 wrote: ↑Monday 15 April 2019 11:23
Installed domoticz on an different system, and got the exact same result. I am starting to think my username of password are not correctly saved in the config or something. Is there an .ini file where the username and password are saved in plain text, so i can check if it is correct?
Ok, the password i had was the problem. I had an PW with special characters. I changed it in a password with just text, lower and upper case and numbers. Now it works. strange.
Thanks for your help and your work!
Re: Error ToonThermostat
Posted: Tuesday 16 April 2019 21:20
by Palermo2019
Hi all,
I`m waching with great intrest to this forum part.
I`m having the same problem with toon since feb. I`m existed that there is a solution (I believe done by Wasp).
Many credits for him. Making a lot of people happy.
During the installation i came across some error with version problems of "pip3" But with some googleling i soleved the installation (upgrading/downgrading pip). But finally everything is installed.
I`f created an account on
https://developer.toon.eu/ and i configured all the required fields.
When I start the ToonApiLib with the correct values i`m getting this error:
Code: Select all
2019-04-16 21:01:42.608 Error: Eneco_new hardware (12) thread seems to have ended unexpectedly
2019-04-16 21:01:42.795 Error: (ToonApiLib) failed to load 'plugin.py', Python Path used was '/domoticz/plugins/toonapilib4domoticz/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-x86_64-linux-gnu:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2019-04-16 21:01:42.795 Error: (Eneco_new) Module Import failed, exception: 'ImportError'
2019-04-16 21:01:42.795 Error: (Eneco_new) Module Import failed: ' Name: toonapilib'
2019-04-16 21:01:42.795 Error: (Eneco_new) Error Line details not available.
I saw that astrapowerr had the same problem, i was wondering if he solved the problem!?
May be someone had the same error and is willing to help!?
I you need more info please let me know.
Thanks in avance
Greetings
Palermo
Re: Error ToonThermostat
Posted: Tuesday 16 April 2019 21:23
by astrapowerrr
Palermo2019 wrote:Hi all,
I`m waching with great intrest to this forum part.
I`m having the same problem with toon since feb. I`m existed that there is a solution (I believe done by Wasp).
Many credits for him. Making a lot of people happy.
During the installation i came across some error with version problems of "pip3" But with some googleling i soleved the installation (upgrading/downgrading pip). But finally everything is installed.
I`f created an account on
https://developer.toon.eu/ and i configured all the required fields.
When I start the ToonApiLib with the correct values i`m getting this error:
Code: Select all
2019-04-16 21:01:42.608 Error: Eneco_new hardware (12) thread seems to have ended unexpectedly
2019-04-16 21:01:42.795 Error: (ToonApiLib) failed to load 'plugin.py', Python Path used was '/domoticz/plugins/toonapilib4domoticz/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-x86_64-linux-gnu:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2019-04-16 21:01:42.795 Error: (Eneco_new) Module Import failed, exception: 'ImportError'
2019-04-16 21:01:42.795 Error: (Eneco_new) Module Import failed: ' Name: toonapilib'
2019-04-16 21:01:42.795 Error: (Eneco_new) Error Line details not available.
I saw that astrapowerr had the same problem, i was wondering if he solved the problem!?
May be someone had the same error and is willing to help!?
I you need more info please let me know.
Thanks in avance
Greetings
Palermo
Not fixed the problem.
Have been scratching my head for a whole week. Full days.
I had a week off.
But with no solution and nobody to ask anymore.
Last evenings busy to setup a whole new os(stretch) and making clean install and then I will see if that worked...
Verzonden vanaf mijn iPhone met Tapatalk
Re: Error ToonThermostat
Posted: Wednesday 17 April 2019 8:45
by Palermo2019
Hi Astrapowerr,
Unfortunate to hear the the problem is not solved.
It looks like that pyton is failed to execute the "plugin.py" file. it could be a missmatch of the pyton version or, it is expecting a specific path to pyton home directory. But with the different version it could be installed on a different path location.
Witch Pyton version do you use?
Does anyone with a working version able to check what pyton version you use?
Thanks in advance
Greetings
Palermo
Re: Error ToonThermostat
Posted: Wednesday 17 April 2019 8:59
by astrapowerrr
Palermo2019 wrote:Hi Astrapowerr,
Unfortunate to hear the the problem is not solved.
It looks like that pyton is failed to execute the "plugin.py" file. it could be a missmatch of the pyton version or, it is expecting a specific path to pyton home directory. But with the different version it could be installed on a different path location.
Witch Pyton version do you use?
Does anyone with a working version able to check what pyton version you use?
Thanks in advance
Greetings
Palermo
When starting Domoticz is saw in the log that it was using 3.4.2.
And I was told before that that should be ok?? But he. It’s not working for me.
Verzonden vanaf mijn iPhone met Tapatalk
Re: Error ToonThermostat
Posted: Wednesday 17 April 2019 20:59
by jbr79
Palermo2019 wrote: ↑Wednesday 17 April 2019 8:45
It looks like that pyton is failed to execute the "plugin.py" file. it could be a missmatch of the pyton version or, it is expecting a specific path to pyton home directory. But with the different version it could be installed on a different path location.
Feels like a user rights issue I had with running a pyhton file before. At least worth checking out to see if that is not the problem.
I had a similar case where I made bash file to run python scripts, and I specifically had to run the command as another user, like so:
Code: Select all
#!/bin/bash
runuser -l pi -c 'python3 /home/pi/domoticz/scripts/python/pythonfile.py'
exit 0
My suggestion is to make two bash files, one with and one without the 'runuser' command and execute them from the commandline to investigate if one or both throw an error like you saw in the log.
Re: Error ToonThermostat
Posted: Thursday 18 April 2019 20:55
by Palermo2019
@jbr79
That is also a very good point. Let me see if i can look at that two.
Now you are using a Pi for Domoticz is guess, I have a clean version of Debian running.
So you commando will not work on debian. But i can still look at the rights suggestion.
I`m not an Linux expert. But may be i can find something.
I hope to have some time this weekend to look at that.
Thank for help/thinking
Greetings
Palermo
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 21:35
by astrapowerrr
waspy wrote: ↑Friday 12 April 2019 22:11
I see, but don't understand
The previous error that the toonapilib could not be found seems to be fixed, so that's good news.
My plugin first logs the apilib version. But this line seems to be missing in your log at all...
So if this line is missing, I'm sure all the rest will fail as well.
Code: Select all
Domoticz.Log("Using toonapilib version " + toonapilib.__version__ + " by " + toonapilib.__author__)
Not sure where to go from here. I'm no python or domoticz expert.
Maybe a good time to update the O/S on the pi?
I am using a pi3. Don't know what hardware you are using.
I have never tested it on a pi 1 or 2.
But maybe somebody else on the forum did...
well i did do a new install.
installed my new os "stretch".
installed in a better way my automatic backups.
installed homebridge with docker(that was new for me) but nice to have a web interface now! to manage homebridge..
re installed my old database( did go easy, had to do that a few times but then it worked)
so after getting all my systems running again time for the toon api.
installed and got it running in 10 minutes!! wow!!
so for me its up and running now..
but...
i updated the new idx from the hotwater switch to my blocky again to get my automatic ventilation working again when i am in the shower.
but then i ran into some errors.
it seems that when the hotwater is on( i can see on the toon itself and on the toon app(Iphone), domoticz is not setting hotwater on.
i started testing with my kitchen hotwater open and looked if it would go to on..
after about 5 minutes or so i closed the hotwater still not on..
then after a while i saw it was on in domoticz..
even with the update rate set to 1 minute.. it takes way longer 5 or 10 minutes(didnt count them) to refresh from domoticz side..
but when i switch something in domoticz it immediately updates the toon and the app.
what can be the problem or is this just the way it is?
greets marco
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 21:46
by waspy
Toonapilib has limited the update rate.
This was previously set to 30 seconds. Don't know the actual limiter value.
I think this is causing the delay you are experiencing.
Verstuurd vanaf mijn SM-G935F met Tapatalk
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 21:50
by astrapowerrr
waspy wrote: ↑Saturday 20 April 2019 21:46
Toonapilib has limited the update rate.
This was previously set to 30 seconds. Don't know the actual limiter value.
I think this is causing the delay you are experiencing.
Verstuurd vanaf mijn SM-G935F met Tapatalk
you know where to find this?
should this be on the github of costastf?
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 21:53
by waspy
Probably
Verstuurd vanaf mijn SM-G935F met Tapatalk
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 21:56
by astrapowerrr
waspy wrote: ↑Saturday 20 April 2019 21:53
Probably
Verstuurd vanaf mijn SM-G935F met Tapatalk
i am digging as we speak but cannot find that but i can find this regarding gas,electricity and solar:
Values are cached internally for 30 seconds so as to not overwhelm the api. After the 30 seconds any access to any of the attributes will refresh the information through a new call to the api.
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 21:57
by waspy
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 22:00
by waspy
https://github.com/home-assistant/home- ... pull/22160
Apparently, the toon api is being 'hammered' by clients.
Verstuurd vanaf mijn SM-G935F met Tapatalk
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 22:11
by astrapowerrr
did some reading and yes this is causing my problem..
so quby is again throwing dirt in the water!
more and more i am thinking to just root my toon and take my ownership back of my own system..
to bad...
but again many thanks for every help around this.. as far as this, better something then nothing..
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 22:14
by waspy
If they would allow local access to non rooted devices, they would not have to deal with the large amount of requests at all...
Verstuurd vanaf mijn SM-G935F met Tapatalk
Re: Error ToonThermostat
Posted: Saturday 20 April 2019 22:44
by astrapowerrr
waspy wrote: ↑Saturday 20 April 2019 22:14
If they would allow local access to non rooted devices, they would not have to deal with the large amount of requests at all...
Verstuurd vanaf mijn SM-G935F met Tapatalk
true..
paying monthly to them but i can only use there servers.
When i root the toon i can use the way i want and it is without restrictions(what i pay for it seems??)
local access would solve it all… i hope they will see that finally everybody will go rooting and they get no income just nothing.
we all should go to rooting and hope they will see( we should make rooting service for free hahaha)
Re: Error ToonThermostat
Posted: Monday 22 April 2019 22:12
by astrapowerrr
for all who wants to keep the old log data from your old toon device...
http://www.domoticz.com/DomoticzManual.pdf
scroll to page 20 there is a a manual how to get your old logs to your new device...
@waspy: maybe something te refer to in your install guide?
Re: Error ToonThermostat
Posted: Monday 22 April 2019 22:23
by waspy
Good idea. I left out the exact page number as this might be subject to changes.
Verstuurd vanaf mijn SM-G935F met Tapatalk