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

Plantje
Posts: 451
Joined: Friday 16 October 2015 7:58
Target OS: Windows
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by Plantje »

kevinvantuyl wrote: Sunday 17 February 2019 11:49 same here. i decided to switch from a normal (unrooted) Toon to a Rooted Toon. so much better... bye bye Eneco
How did this work out for you? Do you happen to know if there are some easy steps to follow? I should be able to figure it out based on what I can find online, but hey.... if there is an easy step-by-step-guide...

So, now you maintain the weekly program in Domoticz? And remotely you control the thermostat through Domoticz as well? No more monthly fee for Eneco?

I think it is rubbish anyway that Eneco says they cannot support you in estimating your usage compared to your monthly amount if you're not with Eneco. They have the data....should work the same!

Edit: And can you still maintain that program on the Toon itself?
darkrain
Posts: 18
Joined: Saturday 21 February 2015 13:19
Target OS: Linux
Domoticz version: beta
Contact:

Re: Error ToonThermostat

Post by darkrain »

a3vd wrote: Sunday 17 February 2019 11:36 I think we need to update the source which you can find here :

https://github.com/domoticz/domoticz/bl ... mostat.cpp

https://github.com/domoticz/domoticz/bl ... ermostat.h

I have got the api working with source code from : https://toonapilib.readthedocs.io/en/latest/readme.html
Now i need some time to implement it in the source code. :shock:
Did you create your own app, with an API key en secret?
It would be inconvenient if every user has to do this themself, do you agree?
Wouldn't it be best if this was done for Domotiz by @Gizmocuz and that the app (Domoticz) was approved so only Toon username and password are required to make the oAuth connection?

Unfortunately I don't have the required (programming) skills to help get this in Domoticz...
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by astrapowerrr »

So if I understand correctly.
API is in progress to get toon Fixed in Domoticz??
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 »

astrapowerrr wrote: Sunday 17 February 2019 22:58 So if I understand correctly.
API is in progress to get toon Fixed in Domoticz??
API is already available https://developer.toon.eu/ but needs to be implemented in domoticz, and indeed i think we all need a single api key :cry:
Raspberry 3+ / 4
P1 smartcable / RFXtrx433 FW 182 / Several 1 wire Temp Sensors /DHT12/Conbee2 (zigbee)
Several Kaku switches/ Weather Underground / Hue
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by astrapowerrr »

a3vd wrote:
astrapowerrr wrote: Sunday 17 February 2019 22:58 So if I understand correctly.
API is in progress to get toon Fixed in Domoticz??
API is already available https://developer.toon.eu/ but needs to be implemented in domoticz, and indeed i think we all need a single api key :cry:
I’m not an expert in this but is this bad we need single api key?

And other domotica systems are working with this??


Verzonden vanaf mijn iPhone met Tapatalk
darkrain
Posts: 18
Joined: Saturday 21 February 2015 13:19
Target OS: Linux
Domoticz version: beta
Contact:

Re: Error ToonThermostat

Post by darkrain »

Another thing with the API I was thinking about (not sure how to solve this), the API needs a Callback URL so it can share the code needed to get a token after succefull oAuth connection. This means that this URL needs to be available on the internet (not everybody has inbound internet on their system I guess?) and the domoticz application needs to interpret this call to be able to get the token. So basically I think your domoticz now needs to be accesible via the internet, am I correct? (this is only one time, cause when you have a token you can renew this without entering the username and password again...).
eenernl
Posts: 21
Joined: Sunday 09 August 2015 12:44
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Error ToonThermostat

Post by eenernl »

But how is HomeAssistant doing the Auth part?
Can we use that knowledge to build this?

I’m thinking about switching to Nuon for the ThermoSmart Thermostat. The only thing I will miss are the energy readings. I don’t have a smart-meter. What are your meanings about the ThermoSmart?
* Raspberry Pi B rev2 (with latest Beta of Domoticz)
* 1x RFXtrx433E
* 4x TX320 Temperature/humidity sensors
* 6x KaKu ACD-3500 | Kaku ALED-2709 | KaKu ACM-100 | 2x KaKu AMU-500 | KaKu AWMR-300
* 1x Toon Thermostat (via ToonApiLib)
stephanvdplas
Posts: 73
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

Re: Error ToonThermostat

Post by stephanvdplas »

darkrain wrote: Monday 18 February 2019 17:57So basically I think your domoticz now needs to be accesible via the internet, am I correct?
I don't thinks so, because you can enter "localhost" or "127.0.0.1" as callback URL. I think it's only needed when creating apps that can be used to connect to multiple TOONs.
- Running LMS, Domoticz and Dashticz on a windows 11 laptop.
- LMS (11 players) / Hue (26 lights, 2 switches) / Z-wave (14 devices) / Toon (unrooted) / Chromecast
darkrain
Posts: 18
Joined: Saturday 21 February 2015 13:19
Target OS: Linux
Domoticz version: beta
Contact:

Re: Error ToonThermostat

Post by darkrain »

stephanvdplas wrote: Monday 18 February 2019 19:34
darkrain wrote: Monday 18 February 2019 17:57So basically I think your domoticz now needs to be accesible via the internet, am I correct?
I don't thinks so, because you can enter "localhost" or "127.0.0.1" as callback URL. I think it's only needed when creating apps that can be used to connect to multiple TOONs.
If that works, it's fine to do it this way.
rene2716
Posts: 17
Joined: Friday 04 May 2018 11:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by rene2716 »

maybe somebody has to kindly team with Franck Nijhof on the home assisent forum, seems they got it working in test over there
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 »

Hello,

I think I have managed to get Toon working again by building a python plugin based on the toonapilib for python.
You should obtain a personal api key first, and install toonapilib on your device.

Check out https://github.com/JohnvandeVrugt/toonapilib4domoticz.
There you can find an installation guide as well.

It's probably far from perfect, but at least I'm able to log the temperatures and setpoints again.
Currently no support for smoke detectors and fibaro plugs. I do not own them, so it will be hard to test anyways.

I had some issues with the latest toonapilib, but v3.0.2 seems to be working quite well.

The plugin will automatically add devices. But if you are willing to hack the database, one can reuse the devices that were created by the native toon thermostat hardware to preserve history (log). Make sure to backup the db before hacking it ;)

Good luck!
Pandabeer
Posts: 35
Joined: Monday 18 December 2017 11:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 10265
Location: Zwolle
Contact:

Re: Error ToonThermostat

Post by Pandabeer »

Great job! Will try it directly this weekend!

Verstuurd vanaf mijn SM-G950F met Tapatalk

Little expert running Domoticz on a Raspberry Pi

Code: Select all

Toon Thermostat | Mi-Light | Z-Wave Thermostat valves and CO2 / fire detection units | KiKa | Heat-IT Zwave thermostat |
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by astrapowerrr »

Now it gets interesting !!


Verzonden vanaf mijn iPhone 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 »

Very nice! Will test it later today, but thanks for your work already!
darkrain
Posts: 18
Joined: Saturday 21 February 2015 13:19
Target OS: Linux
Domoticz version: beta
Contact:

Re: Error ToonThermostat

Post by darkrain »

I have installed the plugin and indeed with the latest (3.0.4) it is throwing an error.
With an older release it works fine.
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 »

I get an error too with the latest version. Noob question, how do I install /get the 3.0.2 version?
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 »

https://stackoverflow.com/questions/522 ... s-with-pip
So I guess 'pip3 install -I toonapilib==3.0.2' might do the trick?

Maybe you have to uninstall the previous library...
Good luck!
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: Friday 22 February 2019 10:53 https://stackoverflow.com/questions/522 ... s-with-pip
So I guess 'pip3 install -I toonapilib==3.0.2' might do the trick?

Maybe you have to uninstall the previous library...
Good luck!
I did install that version, thanks for that. But I get this in the logfiles:
Error: (ToonApiLib) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/toonapilib4domoticz/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2019-02-22 11:35:33.406 Error: (Toon) Module Import failed, exception: 'ImportError'
2019-02-22 11:35:33.406 Error: (Toon) Module Import failed: ' Name: toonapilib'
2019-02-22 11:35:33.406 Error: (Toon) Error Line details not available.
tne7laa
Posts: 30
Joined: Sunday 05 March 2017 10:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by tne7laa »

Great job! Seems too simple...

Used also 'sudo pip3 install -I toonapilib==3.0.2'

Also first the ToonApiLib did not appear in the Hardware list.
After googling I needed to activate "Event Systeem (Lua/Blockly/Scripts)":
[Instellingen] - Tab [Overige] - [Event Systeem (Lua/Blockly/Scripts)] and select [Actief]. Restart.

Finally get installed the Python script in Domoticz but also get error messages:

Code: Select all

2019-02-22 12:30:08.944 Status: (Toon API) Started.
2019-02-22 12:30:09.106 Error: (ToonApiLib) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/toonapilib4domoticz/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2019-02-22 12:30:09.106 Error: (Toon API) Module Import failed, exception: 'ImportError'
2019-02-22 12:30:09.106 Error: (Toon API) Module Import failed: ' Name: toonapilib'
2019-02-22 12:30:09.106 Error: (Toon API) Error Line details not available.
2019-02-22 12:31:30.616 Error: Toon API hardware (13) thread seems to have ended unexpectedly
WishList:
- Also Fibaro Smart Plugs working
- HomeBridge working with Siri
Ritchie
Posts: 12
Joined: Wednesday 13 February 2019 15:07
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by Ritchie »

waspy wrote: Friday 22 February 2019 0:12 Hello,

I think I have managed to get Toon working again by building a python plugin based on the toonapilib for python.
You should obtain a personal api key first, and install toonapilib on your device.

Check out https://github.com/JohnvandeVrugt/toonapilib4domoticz.
There you can find an installation guide as well.

It's probably far from perfect, but at least I'm able to log the temperatures and setpoints again.
Currently no support for smoke detectors and fibaro plugs. I do not own them, so it will be hard to test anyways.

I had some issues with the latest toonapilib, but v3.0.2 seems to be working quite well.

The plugin will automatically add devices. But if you are willing to hack the database, one can reuse the devices that were created by the native toon thermostat hardware to preserve history (log). Make sure to backup the db before hacking it ;)

Good luck!
Nice one! Got it up and running again.
On the Fibaro plugs and smoke detectors, I will be able to test this, if you can let me know how.
Or, if needed, I am willing to provide a Fibaro plug for testing purposes.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest