Page 2 of 15
Re: Error ToonThermostat
Posted: Wednesday 13 February 2019 21:02
by zodracom
My answer was different:
Dank voor je privébericht hoor. Ik heb het betreffende topic inmiddels gelezen. Mijn collega's van het Toon gedeelte op het Eneco Forum zijn een onderzoek gestart m.b.t. het issue waar jij en andere tegenaan lopen.
Ik stel voor dat we de communicatie hierover centraal houden. Dat betekent dat ik ook niet op eigen gelegenheid in onderzoek ga maar dit overlaat aan mijn collega's op het forum.
Zo te lezen heeft het namelijk meer voeten in aarde dan ik aanvankelijk dacht. Wil je het antwoord op onze community afwachten? Ik zal ook een reminder sturen naar één van de moderators.
English(ish):
thanks for the message. i did read the topic. My colleague @ Eneco Forum is searching for the solution.
I suggest to keep it central. It means we are not doing research by ourself, but let it to my colleague @ the forum.
So i can read it has more in mind than thought. please wait for an answer. I will remind one of the moderators.
Re: Error ToonThermostat
Posted: Wednesday 13 February 2019 21:19
by unclekoen
Same here.
So i thought my password is not changed. Let's try if i can log into
https://www.eneco.nl/mijn-eneco/
I can log in. But when i try to see my Overzicht or Verbruik, i get an error page. So i was thinking problems at TOON.
[attachment]2019-02-13 21_14_43-Pagina kan niet weergegeven worden..png[/attachment]
Re: Error ToonThermostat
Posted: Thursday 14 February 2019 8:05
by rinyheuvelman
Homeassistant already makes use of toonapi, see the link above. No idea how to implement something similar into domoticz
Re: Error ToonThermostat
Posted: Thursday 14 February 2019 8:32
by stephanvdplas
https://github.com/costastf/toonapilib/ : This is the API library used in HA. Let's see if we can implement this in Domoticz
Re: Error ToonThermostat
Posted: Thursday 14 February 2019 20:20
by eenernl
Re: Error ToonThermostat
Posted: Thursday 14 February 2019 21:45
by zodracom
just ordered another thermostat and Z-wave module. And cancelled my Toon account

can make it simple, by myself, without toon

Re: Error ToonThermostat
Posted: Thursday 14 February 2019 22:03
by EdwinK
As far as I know you can only do a 1000 calls on the API, and then need to renew. Things might have changed though.
Re: Error ToonThermostat
Posted: Thursday 14 February 2019 23:01
by astrapowerrr
Same problems here.
Toon stoppped after some years.
Following this thread for some solutions.
Re: Error ToonThermostat
Posted: Friday 15 February 2019 7:37
by dressie
Same here! Worked for years, looks like they finally pulled the plug. What a shame, hopefully someone is able to come up with a solution.
Re: Error ToonThermostat
Posted: Friday 15 February 2019 11:10
by tne7laa
Does someone know How, Where (path) the ToonThermostat device is implemented in Domoticz?
In that program Language?
And Who has initially programmed this?
Maybe the 'plugin' can be changed or maybe a "ToonThermostat 2.0" can be written.
(Myself I'm a .NET C# and Xcode Objective C programmer)
Re: Error ToonThermostat
Posted: Friday 15 February 2019 14:42
by Plantje
Same issue here. To be honest: it has been quite a while ago the Toon API was presented, right?
I think I will investigate switching to Home Assistant.
Re: Error ToonThermostat
Posted: Friday 15 February 2019 15:51
by tne7laa
Plantje wrote: ↑Friday 15 February 2019 14:42
I think I will investigate switching to Home Assistant.
Can this be installed on the raspberry and works with Siri (HomeKit)?
Re: Error ToonThermostat
Posted: Friday 15 February 2019 15:55
by Plantje
I have no idea!
I think Domoticz is nice and all, but I have the impression that the developer(s ) do not have enough time and or resources to work on it. But to be honest, that is a completely unrelated topic.
Re: Error ToonThermostat
Posted: Friday 15 February 2019 17:10
by Pandabeer
tne7laa wrote:Does someone know How, Where (path) the ToonThermostat device is implemented in Domoticz?
In that program Language?
And Who has initially programmed this?
Maybe the 'plugin' can be changed or maybe a "ToonThermostat 2.0" can be written.
(Myself I'm a .NET C# and Xcode Objective C programmer)
It's possible to see the information on Github. I try to find the info I received some weeks ago
Verstuurd vanaf mijn SM-G950F met Tapatalk
I know Gizmocuz, one of the developers, can give you the needed information. See at Github also for more details
Re: Error ToonThermostat
Posted: Friday 15 February 2019 20:54
by janz1961
Just for the statistics: same here. No Toon controlled lights auto on and of anymore

Re: Error ToonThermostat
Posted: Friday 15 February 2019 21:31
by littlebou
unfortunately same problem for me hope for a quick fix
Re: Error ToonThermostat
Posted: Saturday 16 February 2019 11:27
by barryknobel
Following, hope there will be an update soon.
Re: Error ToonThermostat
Posted: Saturday 16 February 2019 11:41
by stephanvdplas
Pandabeer wrote: ↑Friday 15 February 2019 17:10
Maybe the 'plugin' can be changed or maybe a "ToonThermostat 2.0" can be written.
(Myself I'm a .NET C# and Xcode Objective C programmer)
It's possible to see the information on Github. I try to find the info I received some weeks ago
I found this in hardware.js:
Code: Select all
OnAuthenticateToon = function () {
var pwidth = 800;
var pheight = 600;
var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;
var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
var left = ((width / 2) - (pwidth / 2)) + dualScreenLeft;
var top = ((height / 2) - (pheight / 2)) + dualScreenTop;
var REDIRECT = 'http://127.0.0.1/domoticiz_toon';
var CLIENT_ID = '7gQMPclYzm8haCHAgdvjq1yILLwa';
var _url = 'https://api.toonapi.com/authorize?response_type=code&redirect_uri=' + REDIRECT + '&client_id=' + CLIENT_ID;
//_url = "http://127.0.0.1:8081/11";
var win = window.open(_url, "windowtoonaith", 'scrollbars=yes, width=' + pwidth + ', height=' + pheight + ', left=' + left + ', top=' + top);
if (window.focus) {
win.focus();
}
var pollTimer = window.setInterval(function () {
if (win.closed !== false) { // !== is required for compatibility with Opera
window.clearInterval(pollTimer);
}
else if (win.document.URL.indexOf(REDIRECT) != -1) {
window.clearInterval(pollTimer);
console.log(win.document.URL);
var url = win.document.URL;
var code = gup(url, 'code');
win.close();
validateToonToken(code);
}
}, 200);
}
I think we should be updating this part of the code.
Re: Error ToonThermostat
Posted: Sunday 17 February 2019 11:36
by a3vd
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.

Re: Error ToonThermostat
Posted: Sunday 17 February 2019 11:49
by kevinvantuyl
same here. i decided to switch from a normal (unrooted) Toon to a Rooted Toon. so much better... bye bye Eneco