rvdm / toon Goto Github PK
View Code? Open in Web Editor NEWA simple python module to interface with the Toon 'intelligent' thermostat.
License: Apache License 2.0
A simple python module to interface with the Toon 'intelligent' thermostat.
License: Apache License 2.0
I'm trying to connect, however i'm faced by the following error:
Traceback (most recent call last):
File "./toonclient.py", line 22, in
toon.login()
File "/home/ferdy/toon/Toon.py", line 31, in login
self.sessiondata = r.json()
TypeError: 'dict' object is not callable
Hi,
I ported your module to javascript, I hope you can appreciate it :)
On the Toon you can set the value of the temperatur in .5 degrees. The script only allows in 1 degrees. Therefore 21 is a valid setting, but 21.5 is not.
I get the following error:
self.sessiondata = r.json()
TypeError: 'dict' object is not callable
In get_power_usage, this line is used:
return self.toonstate["powerUsage"]
It seems like the power usage is not always returned, wich triggers this error:
File "/home/pi/logging/Toon.py", line 75, in get_power_usage
return self.toonstate["powerUsage"]
KeyError: 'powerUsage'
Same goes for gas usage
It seems to be rather random when the values are being returned or not. I first thought it wouldn't return anything when nothing had changed, but when my power consumption changed from 2000 watt to 600, it still did not return the powerUsage values upon the next call.
I guess this function needs to report comfort, sleep etc.
The get_program_state function has to be looking at activeState and not programstate. I guess programstate reports the use of the scheduled program. btw activestate -1 is a manual configured temperature.
set program state is not working at all for me. I dont know if the parameters are correct in toon.py. and when i look at the source of the toonopafstand javascript is see some locking /unlocking. is that whats missing?
If you're connected to district heating (stadsverwarming) instead of gas you should remove 'gasUsage' from the self.required_datakeys variable in Toon.py. If you don't do this you will get the 'Incomplete response' error.
I use the toonapi and am able to get the temprature and state. unfortunally i am not able to change one of them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.