GithubHelp home page GithubHelp logo

rvdm / toon Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 14.0 27 KB

A simple python module to interface with the Toon 'intelligent' thermostat.

License: Apache License 2.0

Python 100.00%

toon's People

Contributors

jasperla avatar moniquenijboer avatar rvdm avatar steynovich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

toon's Issues

Unable to read data

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

Temp value only set in 1 degree

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.

Error with toonclient.py

I get the following error:

self.sessiondata = r.json()
TypeError: 'dict' object is not callable

powerUsage not always in toonstate

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.

get program state

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

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?

Required data keys not applicable for district heating

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.