-
Toon on Pimatic via Z-way
-
I was wondering if anybody knows if you could add Toon (Eneco Thermostat) or at least the gas, electricity meters and central heating connection to your devices if you have a z-way device and the z-way plugin installed in Pimatic? I’m currently thinking on buying a z-way daughterboard for my Raspberry, but this is only usefull for me if i can connect these devices to Pimatic.
-
@TVN if you dont mind to use scripts you should look into the following git:
https://github.com/rvdm/toon/blob/master/README.mdHe released a python script that can do what you want via rules and shellsensor devices.
You can, for example, create a shell sensor to execute the command to get temp, gas etc. You can also set the temp, seems just like what you want. It similar to what i made for the essent e thermostat, search the how to to see how i did that. Almost the same for you.
-
@Gleno0h I don’t mind using scripts, the only problem with the git you send me: I don’t have a Eneco contract anymore, and was wondering if i could get the data without getting a new contract with them.
-
@TVN I dont think they have a public API so, no.
Unless you some how can get output in a json file? Dont think there is a way.
-
The Toon thermostat should have an ip-address and it communicates somehow to Eneco either via tcpip or udp. In other words: all real-time data should be somehow retrievable with curl or wget.
Of course the graphs are based on stored data and statistics gathered on the Eneco server.
The question simply is: Can the communication protocol be reverse-engineered?
After all it is a JSON-REST Api. (see here for some info and here for some more) -
@Harry-van-der-Wolf
Try follwing from a desktop or your phone:
http://192.168.x.x/json.htm?type=command¶m=thermostatstate&idx=YOURIDXHERE&state=3Ofc, replace ip by LOCAL ip of Toon.
Your idx can be found on toon somewhere… -
Thanks, but I don’t have a Toon. I have a pimatic. My pimatic controls an espimatic connected to my central heating.
I mentioned it hoping it would give others some clues.
-
@Harry-van-der-Wolf Sorry, replied to the wrong person hehe.
-
@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?
-
@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?