Error ToonThermostat

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
rinyheuvelman
Posts: 15
Joined: Wednesday 19 December 2018 14:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10427
Contact:

Re: Error ToonThermostat

Post by rinyheuvelman »

waspy wrote: Tuesday 26 February 2019 21:13 Please update to toonapilib v.3.0.10!

Code: Select all

sudo pip3 install toonapilib
This release fixes the set point and set state issue.
I will release a plugin version soon that support setting the states.
Noob questions, the sequel:
- To updatetoonapilib, we just need to issue the install command again?
- Is there any additional input/scripting to be done, in your "support the states" version?
(I mean the lines: http://192.168.1.1:8080/json.htm?type=c ... 28&state=4)
In the previous ones readme files concerning the script and domoticz settings were inconsistent. It took me awhile to figure out why the Dutch version didn't work out as did the English version. Combining them, based on the reported errors eventually got it running.
Stupid enough: no copy, backup or whatsoever saved at that time, leaving me in the dark again...
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

Riny,

I just updated the plugin. You can switch programs like home, away etc by clicking the state in the selector box.
You will need toonapilib v 3.0.10 that you can obtain by issuing the command sudo pip3 install toonapilib once more.
At least, here it upgraded to v3.0.10 without having to uninstall the library.
If you need to uninstall first, I think sudo uninstall toonapilib will do the trink.

I do not think you need the json stuff...
Please let me know if I'm wrong.

Good night
dressie
Posts: 156
Joined: Monday 25 May 2015 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version: V2020.2
Location: Netherlands
Contact:

Re: Error ToonThermostat

Post by dressie »

waspy wrote: Tuesday 26 February 2019 21:13 Please update to toonapilib v.3.0.10!

Code: Select all

sudo pip3 install toonapilib
This release fixes the set point and set state issue.
I will release a plugin version soon that support setting the states.
DId the update and for 90% Toon is listening to Domoticz. The preselect switch isn't always responding. But so far so good!
Keep up the good work! I'll keep on testing any update!
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

I have seen a similar effect while testing.
Toonapilib has a limit on the number of calls to toon api. That's one possible cause.
The other thing is that I don't know how commands are handled while updating the other values in the heartbeat.
I might have to make it more intelligent..

Verstuurd vanaf mijn SM-G935F met Tapatalk

dressie
Posts: 156
Joined: Monday 25 May 2015 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version: V2020.2
Location: Netherlands
Contact:

Re: Error ToonThermostat

Post by dressie »

waspy wrote: Wednesday 27 February 2019 7:16 I have seen a similar effect while testing.
Toonapilib has a limit on the number of calls to toon api. That's one possible cause.
The other thing is that I don't know how commands are handled while updating the other values in the heartbeat.
I might have to make it more intelligent..

Verstuurd vanaf mijn SM-G935F met Tapatalk
The setpoint seems to work well. I made a blockly having the selectorswitch acutally doing a setpoint matching the temperature of the Toon Scene eg "Away" , "Home", etc etc. It's an okay workaround for now.
Thanks again for your work! Still think Domoticz is the best around!
darkrain
Posts: 18
Joined: Saturday 21 February 2015 13:19
Target OS: Linux
Domoticz version: beta
Contact:

Re: Error ToonThermostat

Post by darkrain »

Updated both the library and the plugin and it works nice now.
The info from the Toon is updated nice, and setting the scene is working fine.

For me this working is the most important, I don't have Smoke detectors and Hue lights work with domoticz native.
competer
Posts: 14
Joined: Wednesday 28 December 2016 7:17
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Nederland
Contact:

Re: Error ToonThermostat

Post by competer »

Hello, some help needed

I am running Domoticz on my Synology NAS.
Is there a (small) instruction on how to install it on a NAS?

If you can help, it would be appreciated, many thnx!
there are 10 types of people in this world, those who understand binary and those who dont
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

No simple how-to, but I guess if you find out how to install python libs using pip3 I think you should be able to install toonapilib.
The plug-in.py of my repository just goes into the plugins folder of domoticz.

Verstuurd vanaf mijn SM-G935F met Tapatalk

User avatar
phoenixblue
Posts: 76
Joined: Friday 25 November 2016 11:20
Target OS: Windows
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by phoenixblue »

Hi,

I have install the plugin on an 32 bit windows with python.

But get the next error

Code: Select all

2019-02-27 16:48:23.166 Error: (ToonApiLib) failed to load 'plugin.py', Python Path used was 'C:\Program Files\Domoticz\plugins\toonapilib4domoticz\;C:\Program Files\Python36-32\python36.zip;C:\Program Files\Python36-32\Lib\;C:\Program Files\Python36-32\DLLs\;C:\Program Files\Domoticz'.

2019-02-27 16:48:23.167 Error: (Eneco Toon) Module Import failed, exception: 'ModuleNotFoundError'

2019-02-27 16:48:23.168 Error: (Eneco Toon) Module Import failed: ' Name: toonapilib'

2019-02-27 16:48:23.169 Error: (Eneco Toon) Error Line details not available.




What can be the problem?

Verstuurd vanaf mijn CLT-L29 met Tapatalk

mvrossum
Posts: 6
Joined: Wednesday 06 September 2017 22:55
Target OS: Linux
Domoticz version: V4.10301
Location: Almere
Contact:

Re: Error ToonThermostat

Post by mvrossum »

Simply followed the instructions on git and it works !
Thanks @waspy
Mike
Fibaro HC2, 2 x Raspberry Pi, Xiaomi, Toon, Homey en nogal wat Z-Wave en ZigBee spul.
User avatar
phoenixblue
Posts: 76
Joined: Friday 25 November 2016 11:20
Target OS: Windows
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by phoenixblue »

mvrossum wrote:Simply followed the instructions on git and it works !
Thanks @waspy
Mike
I was hoping that is was an rtfm issue but unfortunately ;-)

Verstuurd vanaf mijn CLT-L29 met Tapatalk

User avatar
a3vd
Posts: 22
Joined: Tuesday 25 February 2014 14:02
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Noordwijk, The Netherlands
Contact:

Re: Error ToonThermostat

Post by a3vd »

Great will update immediately great work !
Raspberry 3+ / 4
P1 smartcable / RFXtrx433 FW 182 / Several 1 wire Temp Sensors /DHT12/Conbee2 (zigbee)
Several Kaku switches/ Weather Underground / Hue
User avatar
a3vd
Posts: 22
Joined: Tuesday 25 February 2014 14:02
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Noordwijk, The Netherlands
Contact:

Re: Error ToonThermostat

Post by a3vd »

It stated there was no update for me, how can i check which version of toonapilib i am running ? :roll:
Raspberry 3+ / 4
P1 smartcable / RFXtrx433 FW 182 / Several 1 wire Temp Sensors /DHT12/Conbee2 (zigbee)
Several Kaku switches/ Weather Underground / Hue
User avatar
a3vd
Posts: 22
Joined: Tuesday 25 February 2014 14:02
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Noordwijk, The Netherlands
Contact:

Re: Error ToonThermostat

Post by a3vd »

phoenixblue wrote: Wednesday 27 February 2019 16:55 Hi,
I have install the plugin on an 32 bit windows with python.
But get the next error

Code: Select all

2019-02-27 16:48:23.166 Error: (ToonApiLib) failed to load 'plugin.py', Python Path used was 'C:\Program Files\Domoticz\plugins\toonapilib4domoticz\;C:\Program Files\Python36-32\python36.zip;C:\Program Files\Python36-32\Lib\;C:\Program Files\Python36-32\DLLs\;C:\Program Files\Domoticz'.
2019-02-27 16:48:23.167 Error: (Eneco Toon) Module Import failed, exception: 'ModuleNotFoundError'
2019-02-27 16:48:23.168 Error: (Eneco Toon) Module Import failed: ' Name: toonapilib'
2019-02-27 16:48:23.169 Error: (Eneco Toon) Error Line details not available.
What can be the problem?
It says that the plugin was not installed , did you put it in the right path ? i think in you're case Python Path used was 'C:\Program Files\Domoticz\plugins\toonapilib4domoticz\
just put plugin.py there and restart the service (or reboot)

The same is voor toonapilib which plugin.py depends on read the manual how to install , can't tell because i am on a pi with debian linux

Did you install php pip ? (php installer program) and then used "pip install toonapilib"

How to install pip on windows is explained here https://stackoverflow.com/questions/475 ... on-windows
Raspberry 3+ / 4
P1 smartcable / RFXtrx433 FW 182 / Several 1 wire Temp Sensors /DHT12/Conbee2 (zigbee)
Several Kaku switches/ Weather Underground / Hue
maupie
Posts: 1
Joined: Wednesday 10 May 2017 0:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Error ToonThermostat

Post by maupie »

Hi,

Thanks for the quick and great job to get the Toon working again!

Still getting the following errors:

Code: Select all

2019-02-28 09:11:27.997 (ToonApiLibrary) Update power/solar usage: 9510794;9364356;144;215;2290;0
2019-02-28 09:11:28.001 (ToonApiLibrary) Update gas usage: 3125
2019-02-28 09:11:28.005 (ToonApiLibrary) Update temperature: 18.5
2019-02-28 09:11:28.005 (ToonApiLibrary) An error occurred updating temperature
2019-02-28 09:11:28.005 (ToonApiLibrary) Update set point: 14.0
2019-02-28 09:11:28.005 (ToonApiLibrary) An error occurred updating thermostat
2019-02-28 09:11:28.005 (ToonApiLibrary) Update state: Away - 10
2019-02-28 09:11:28.005 (ToonApiLibrary) An error occurred updating thermostat state
2019-02-28 09:11:28.005 (ToonApiLibrary) Update state: off
2019-02-28 09:11:28.005 (ToonApiLibrary) An error occurred updating burner state
Snowtiger
Posts: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Re: Error ToonThermostat

Post by Snowtiger »

competer wrote:Hello, some help needed

I am running Domoticz on my Synology NAS.
Is there a (small) instruction on how to install it on a NAS?

If you can help, it would be appreciated, many thnx!
I found this in a Synology forum - it's an old post but I think it is still valid - https://forum.synology.com/enu/viewtopic.php?t=93616
Daffy61
Posts: 6
Joined: Thursday 28 February 2019 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10572
Location: Nederland
Contact:

Re: Error ToonThermostat

Post by Daffy61 »

Hello,

My Toon doesn't work with Domoticz anymore.
I have follow the discussion about it in this topic, en try serveral things.
But with no succes..!
At least i have install the Beta version: 4.10525 on my Raspberri Pi3
There is connection..!
But the folowing problem is there...!
I must register at https://developer.toon.eu, when i install ToonApiLib
So i have register on that site
In MyApps there must be an Consumer key an Consumer Secret, but MyApp is empty.
So i try to register ToonApiLib, but what must i give in.
App Name = ToonApiLib
Callback URL = ?? (so where can i find this URL)
Or what is procedure, to fix the installation with ToonApiLib.

I hope someone can help me..!
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

Callback is not used. I think you can use localhost as callback.

Verstuurd vanaf mijn SM-G935F met Tapatalk

dressie
Posts: 156
Joined: Monday 25 May 2015 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version: V2020.2
Location: Netherlands
Contact:

Re: Error ToonThermostat

Post by dressie »

Daffy61 wrote: Thursday 28 February 2019 16:53 I must register at https://developer.toon.eu, when i install ToonApiLib
So i have register on that site
In MyApps there must be an Consumer key an Consumer Secret, but MyApp is empty.
So i try to register ToonApiLib, but what must i give in.
App Name = ToonApiLib
Callback URL = ?? (so where can i find this URL)
Or what is procedure, to fix the installation with ToonApiLib.

I hope someone can help me..!
Callback URL = localhost

If you create an account with Toon Api (https://developer.toon.eu/) you can go in there and create an App. Call it whatever you want and use the locahost for callback. Within Domoticz you use the Consumer Key and Secret. The login details are the ones from MijnEneco, so NOT the login from the developer website.
Hope this helps you.
Daffy61
Posts: 6
Joined: Thursday 28 February 2019 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10572
Location: Nederland
Contact:

Re: Error ToonThermostat

Post by Daffy61 »

Great...! thank you dressie, and waspy for your reply...!


2019-02-28 17:45:56.237 (Toon) Could not create a toon object
2019-02-28 17:45:56.239 (Toon) Possible solution:
2019-02-28 17:45:56.239 (Toon) * Check your credentials
2019-02-28 17:45:56.239 (Toon) * Restart domoticz

I used the credentials from https://www.eneco.nl/mijn-eneco/
I can login with those credentials on the Eneco site, i have checked this.

But my domoticz give in the logging the messages above.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest