-
-
Save diplix/4a79f698d807e9178444fd9e44f230ae to your computer and use it in GitHub Desktop.
get device list from (patched) pytado (https://gist.github.com/diplix/f3e544346f62283015b58c8797222e30)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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