TOON died within Domoticz
Moderator: leecollings
-
- Posts: 24
- Joined: Thursday 07 January 2016 7:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: TOON died within Domoticz
I have the same problem.. hope some update will fix this..
Re: TOON died within Domoticz
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
https://forum.eneco.nl/storingen-proble ... ring-12123
Sent from my LG-F800L using Tapatalk
-
- Posts: 23
- Joined: Sunday 22 March 2015 6:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: TOON died within Domoticz
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...
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...
- Mooseknuckle
- Posts: 43
- Joined: Sunday 08 March 2015 9:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: TOON died within Domoticz
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
Mysensors wifi gateway + sensors, RFXtrx433E, Kaku stuff, Xiaomi gateway + sensors
Domoticz controlled DIY ambilight, Selectplus chime, Mi-light led controller
- 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
It is the User-Agent .. Domoticz used now "domoticz/1.0"
Maybe someone can make Domoticz with new user agent for the pi?
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.
-
- Posts: 6
- Joined: Monday 30 March 2015 11:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: TOON died within Domoticz
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.
- 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
Sorry, couple of ppl run domoticz on nas,lukev wrote:Why only for the Pi?mAiden88 wrote:...for the pi?
Anyone can build a fast processor. The trick is to build a fast system.
Re: TOON died within Domoticz
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?
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?
-
- Posts: 23
- Joined: Sunday 22 March 2015 6:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: TOON died within Domoticz
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.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?
- 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
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....
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!
-
- Posts: 23
- Joined: Sunday 22 March 2015 6:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: TOON died within Domoticz
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?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.
- 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
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
There is still a rest API
Quality outlives Quantity!
Re: TOON died within Domoticz
Is this hard to do?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.
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.
- 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
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.
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.
Re: TOON died within Domoticz
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.
- 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
How?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.
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.
-
- Posts: 20
- Joined: Saturday 04 June 2016 8:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: TOON died within Domoticz
where to find this file on an Rpi?
-
- Posts: 51
- Joined: Friday 18 September 2015 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: TOON died within Domoticz
Install latest beta (5769). The httpclient is changed and most likely the interval has been increased.
- HansieNL
- Posts: 957
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: TOON died within Domoticz
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.
Also setting the programState via json doesn't work.
I tried setting the setPoint via json, that works.
Blah blah blah
-
- Posts: 18
- Joined: Saturday 21 February 2015 13:19
- Target OS: Linux
- Domoticz version: beta
- Contact:
Re: TOON died within Domoticz
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...
Also setting state seems no longer possible, with the current implementation...
Who is online
Users browsing this forum: No registered users and 1 guest