@Gleno0h Hey Gleno0h, will try to find the idx this evening and try the link. Anybody any idea where i can find the IDX on Toon?
-
Toon on Pimatic via Z-way
-
@TVN should be somewhere in settings page i guess…
-
@Gleno0h I used the script from your link. Just have one problem with it. i am able to get the temprature and state. unfortunally i am not able to change one of them.
Any suggestions?
-
@joorit said in Toon on Pimatic via Z-way:
@Gleno0h I used the script from your link. Just have one problem with it. i am able to get the temprature and state. unfortunally i am not able to change one of them.
Any suggestions?
Well, the page also mentions a toonclient python click here it states you can set temp as following
./toonclient.py -s 21
<==== might also need the username and passwordSee
parser.add_argument('-t', help='return current temperature in Celsius', action='store_true') parser.add_argument('-p', help='return current power usage in Watts', action='store_true') parser.add_argument('-c', help='return active program state', action='store_true') parser.add_argument('-s', '--settemp', help='set target temperature', dest='targettemp', type=float) parser.add_argument('-C', '--setstate', help='set target state', dest='targetstate') parser.add_argument('-U', '--username', help='the Toon username', required=True, dest='username') parser.add_argument('-P', '--password', help='the Toon password', required=True, dest='password')
You can use it in a rule:
WHEN blablabla THEN execute '/path/to/toonclient.py -s 21'
I dont own a toon so i cant test the script.
-
thanks for your reaction. I Actually did that and got this response:
unfortunately on toon there is nothing happening.
-
@joorit said in Toon on Pimatic via Z-way:
thanks for your reaction. I Actually did that and got this response:
unfortunately on toon there is nothing happening.
Is toonclient in the same directory as Toon.py?
The code is two years old so it could be outdated.
Just to check if you have the correct hirachie, execute this command:
./toonclient.py -t -U username -P password
-
maybe it is . I did the request and got this response:
python ./toonclient.py -t -U ### -P ###
current_temp:18.24 -
@joorit said in Toon on Pimatic via Z-way:
maybe it is . I did the request and got this response:
python ./toonclient.py -t -U ### -P ###
current_temp:18.24Seems to be good. It connects to the right website. I have seen that you asked the author why it isnt working so lets hope he can help you out.
Maybe the URL in the code is wrong so inspect what the code does and try it manually, if possible.
It seems to be this website
https://toonopafstand.eneco.nl/toonMobileBackendWeb/client/loginYou might also want to try and set it through json. With a webbrowser go to this URL:
Http://192.168.x.x/json.htm?type=command¶m=udevice&idx=YOURIDXHERE&nvalue=0&svalue=21
This should set tour thermostat to 21, please try.
If that works we can make simple rules to control it.
Setup a dummythermostat and use this rule:WHEN $dummythermostat.temperatureSetpoint gets updated THEN execute "Http://192.168.x.x/json.htm?type=command¶m=udevice&idx=YOURIDXHERE&nvalue=0&svalue=$dummythermostat.temperatureSetpoint"
-
@joorit any news on this topic?
-
@Gleno0h said in Toon on Pimatic via Z-way:
@joorit any news on this topic?
i tried the last json method buth still witout any result. If i have any news on this topic i will let you know!
Maybe the author has any idea.
thx till now
-
@joorit said in Toon on Pimatic via Z-way:
@Gleno0h said in Toon on Pimatic via Z-way:
@joorit any news on this topic?
i tried the last json method buth still witout any result. If i have any news on this topic i will let you know!
Maybe the author has any idea.
thx till now
Hehe im not gonna give up yet.
Can you set the temperature through this page after logging in? -
@Gleno0h Yes that’s possible.
-
@joorit said in Toon on Pimatic via Z-way:
@Gleno0h Yes that’s possible.
Maybe bash + curl would be a option?
Ive inspected the demo of toon but it doesnt use real requests so i cant build it for you since i dont have a toon