TOON died within Domoticz

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
sjefk
Posts: 24
Joined: Thursday 07 January 2016 7:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by sjefk »

I have the same problem.. hope some update will fix this..
jjnj

Re: TOON died within Domoticz

Post by jjnj »

There is a topic at the eneco forum with more information on how to possibly solve this.

https://forum.eneco.nl/storingen-proble ... ring-12123

Sent from my LG-F800L using Tapatalk
sj3fk3
Posts: 23
Joined: Sunday 22 March 2015 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by sj3fk3 »

The problem is clear. Eneco has blocked access to the toonopafstand.eneco.nl API, that was never meant to be an public API. There is a new public API (that's still not public AFAIK) see documentation at http://www.toonapi.com/

The problem is that this API will not work for the in the same way the "old" API does. You need a licence and OATH2 credentials.. So domoticz will need some sort of cloud solution in the future to access this API (because it will not be possible for all Domoticz users to get a license).

So by making an open API, Eneco has actually made the whole system less open...
User avatar
Mooseknuckle
Posts: 43
Joined: Sunday 08 March 2015 9:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by Mooseknuckle »

I also have the same problems. After more than a year I found Toon to be immature and buggy (mainly because of the Eneco service center). Because of the recent problems and the lack of communication from Eneco I am going to switch to Essent and try the Nest for a while.
RPI 3, Philips Hue,Toon Thermostat, Harmony Smart Control, Yeelights
Mysensors wifi gateway + sensors, RFXtrx433E, Kaku stuff, Xiaomi gateway + sensors
Domoticz controlled DIY ambilight, Selectplus chime, Mi-light led controller
User avatar
mAiden88
Posts: 56
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: TOON died within Domoticz

Post by mAiden88 »

It is the User-Agent .. Domoticz used now "domoticz/1.0"
Maybe someone can make Domoticz with new user agent for the pi?
Anyone can build a fast processor. The trick is to build a fast system.
Adriaan25
Posts: 6
Joined: Monday 30 March 2015 11:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by Adriaan25 »

Credits to the person finding out that certain user agents were blocked now. I changed it in the httpclient to mimic a chrome browser, compiled it, and now indeed all the Toon data is being retrieved again. I guess we'll have to decide if this is an acceptable fix to put in the normal source? Cheers.
User avatar
mAiden88
Posts: 56
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: TOON died within Domoticz

Post by mAiden88 »

lukev wrote:
mAiden88 wrote:...for the pi?
Why only for the Pi? ;-)
Sorry, couple of ppl run domoticz on nas, :lol:
Anyone can build a fast processor. The trick is to build a fast system.
IgorYbema
Posts: 2
Joined: Saturday 09 July 2016 11:17
Target OS: Linux
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by IgorYbema »

The problem with a general patch to change the User Agent for the Toon in Domoticz is that the new User Agent string can easily be blocked also.
I'm thinking of letting the users choose their own User Agent string in the config of the Toon hardware in Domoticz. Any other ideas?
sj3fk3
Posts: 23
Joined: Sunday 22 March 2015 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by sj3fk3 »

IgorYbema wrote:The problem with a general patch to change the User Agent for the Toon in Domoticz is that the new User Agent string can easily be blocked also.
I'm thinking of letting the users choose their own User Agent string in the config of the Toon hardware in Domoticz. Any other ideas?
It would be really silly (not to say dumb) to block the generic chrome/firefox/ie user agents. Because that way nobody could use https://toonopafstand.eneco.nl anymore. It would be far more easy for Eneco to just whitelist those generic Agents and if they did that, your solution would not help a bit.
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: TOON died within Domoticz

Post by gizmocuz »

We already got a call from Eneco.
The problem is indeed that there is a lot of traffic from domoticz users, like twice as much as from phone users, and 4x as much as web users.
This is not strange, and domoticz continuously polls for new data, and a phone user does this on demand.

Now i want to suggest to increase the poll interval, this is now 30 seconds, lets make it 300 (each 5 minutes)

That will decrease the millions of requests/year

I hope to have an answer next week with a solution that fit both parties.

Bdw, you can not block a ios user agent request, that would mean all ios users are not able to login....
Quality outlives Quantity!
sj3fk3
Posts: 23
Joined: Sunday 22 March 2015 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by sj3fk3 »

gizmocuz wrote: Now i want to suggest to increase the poll interval, this is now 30 seconds, lets make it 300 (each 5 minutes)
That will decrease the millions of requests/year
I hope to have an answer next week with a solution that fit both parties.
Nice! To bad I have to wait an other week to be able to use Domoticz/Toon again. What are your thoughts on using the public oath2 API?
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: TOON died within Domoticz

Post by gizmocuz »

It is not so easy to integrate an oauth2 server in domoticz... if someone want to do this, that would be great as more and more web based management systems are using oauth2
There is still a rest API
Quality outlives Quantity!
User avatar
anandus
Posts: 15
Joined: Sunday 14 December 2014 16:28
Target OS: Linux
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by anandus »

Adriaan25 wrote:Credits to the person finding out that certain user agents were blocked now. I changed it in the httpclient to mimic a chrome browser, compiled it, and now indeed all the Toon data is being retrieved again.
Is this hard to do?
How does it work, just pull the source from github and do a make/install on my raspberry pi?

I'd be content with a temporary solution. Not being able to properly use my thermostat is annoying.
User avatar
mAiden88
Posts: 56
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: TOON died within Domoticz

Post by mAiden88 »

See: https://github.com/domoticz/domoticz/pu ... 5796497ffd
Line: 170

IgorYbema have change the useragent, by Toon script..
Now lets wait.. I hope soon Domoticz will work agian with Toon.
Anyone can build a fast processor. The trick is to build a fast system.
IgorYbema
Posts: 2
Joined: Saturday 09 July 2016 11:17
Target OS: Linux
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by IgorYbema »

You don't need to wait for Domoticz to allow the patch. You can easily change it yourself. If a better solution comes in hand you can remove the old patch done by yourself and override it with Domoticz's solutions again.
User avatar
mAiden88
Posts: 56
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: TOON died within Domoticz

Post by mAiden88 »

IgorYbema wrote:You don't need to wait for Domoticz to allow the patch. You can easily change it yourself. If a better solution comes in hand you can remove the old patch done by yourself and override it with Domoticz's solutions again.
How?
I get always error by make.
Maybe you can help me?
Anyone can build a fast processor. The trick is to build a fast system.
Dingetje2004
Posts: 20
Joined: Saturday 04 June 2016 8:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by Dingetje2004 »

where to find this file on an Rpi?
DennisD
Posts: 51
Joined: Friday 18 September 2015 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by DennisD »

Install latest beta (5769). The httpclient is changed and most likely the interval has been increased.
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by HansieNL »

Still get the message Error: ToonThermostat: Error getting current state!
Also setting the programState via json doesn't work.
I tried setting the setPoint via json, that works.
Blah blah blah
darkrain
Posts: 18
Joined: Saturday 21 February 2015 13:19
Target OS: Linux
Domoticz version: beta
Contact:

Re: TOON died within Domoticz

Post by darkrain »

It looks like somethings changed at Eneco side. I get no P1 information from Toon anymore.
Also setting state seems no longer possible, with the current implementation...
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests