Skip to content

Instantly share code, notes, and snippets.

@diplix
Created November 22, 2016 07:12
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/4a79f698d807e9178444fd9e44f230ae to your computer and use it in GitHub Desktop.
Save diplix/4a79f698d807e9178444fd9e44f230ae to your computer and use it in GitHub Desktop.
get device list from (patched) pytado (https://gist.github.com/diplix/f3e544346f62283015b58c8797222e30)
from PyTado.interface import Tado
#import PyTado
t = Tado('USERNAME', 'PASSWORD')
devices = t.getDevices()
print devices
text_file = open("/Users/ix/.homeassistant/tado/devices.json", "w")
text_file.write(devices)
text_file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment