Skip to content

Instantly share code, notes, and snippets.

@diplix
Created November 22, 2016 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diplix/022cf8471808481cdba28725a4918893 to your computer and use it in GitHub Desktop.
Save diplix/022cf8471808481cdba28725a4918893 to your computer and use it in GitHub Desktop.
get tado zone data from (patched) pytado (https://gist.github.com/diplix/f3e544346f62283015b58c8797222e30)
from PyTado.interface import Tado
#import PyTado
t = Tado('USERNAME', 'PASSWORD')
state = t.getState(1)
print state
text_file = open("/Users/ix/.homeassistant/tado/state_1.json", "w")
text_file.write(state)
text_file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment