TOON died within Domoticz

For heating/cooling related questions in Domoticz
Post Reply
sjefk
Posts: 27
Joined: Thursday 07 January 2016 8:49
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by sjefk » Friday 14 October 2016 15:39

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

jjnj
Posts: 240
Joined: Thursday 31 July 2014 13:51
Target OS: Windows
Domoticz version:
Location: NL
Contact:

Re: TOON died within Domoticz

Post by jjnj » Friday 14 October 2016 16:07

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: 27
Joined: Sunday 22 March 2015 7:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by sj3fk3 » Friday 14 October 2016 19:01

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: 68
Joined: Sunday 08 March 2015 10:24
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by Mooseknuckle » Friday 14 October 2016 20:25

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: 58
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: TOON died within Domoticz

Post by mAiden88 » Friday 14 October 2016 22:18

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: 19
Joined: Monday 30 March 2015 11:36
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by Adriaan25 » Saturday 15 October 2016 0:24

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: 58
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: TOON died within Domoticz

Post by mAiden88 » Saturday 15 October 2016 7:58

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: 3
Joined: Saturday 09 July 2016 11:17
Target OS: Linux
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by IgorYbema » Saturday 15 October 2016 8:45

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: 27
Joined: Sunday 22 March 2015 7:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by sj3fk3 » Saturday 15 October 2016 8:48

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: 8727
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: TOON died within Domoticz

Post by gizmocuz » Saturday 15 October 2016 8:58

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: 27
Joined: Sunday 22 March 2015 7:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by sj3fk3 » Saturday 15 October 2016 9:03

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: 8727
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: TOON died within Domoticz

Post by gizmocuz » Saturday 15 October 2016 10:17

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: 16
Joined: Sunday 14 December 2014 17:28
Target OS: Linux
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by anandus » Saturday 15 October 2016 10:46

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: 58
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: TOON died within Domoticz

Post by mAiden88 » Saturday 15 October 2016 11:09

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: 3
Joined: Saturday 09 July 2016 11:17
Target OS: Linux
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by IgorYbema » Saturday 15 October 2016 11:22

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: 58
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: TOON died within Domoticz

Post by mAiden88 » Saturday 15 October 2016 11:27

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
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by Dingetje2004 » Saturday 15 October 2016 11:31

where to find this file on an Rpi?

DennisD
Posts: 69
Joined: Friday 18 September 2015 21:46
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by DennisD » Saturday 15 October 2016 12:27

Install latest beta (5769). The httpclient is changed and most likely the interval has been increased.

User avatar
HansieNL
Posts: 460
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: TOON died within Domoticz

Post by HansieNL » Saturday 15 October 2016 13:31

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: 10
Joined: Saturday 21 February 2015 14:19
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: TOON died within Domoticz

Post by darkrain » Saturday 15 October 2016 14:28

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 4 guests