Skip to content

Python module to control Neohub supported thermostats

License

Notifications You must be signed in to change notification settings

kost/neohub-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neohub

Python module to control Neohub supported thermostats

Requirements

It should work with both python2 and python3 with simple pip commands:

sudo apt-get update
sudo apt-get install -y python3 python3-pip
sudo pip3 install neohub

Examples

Simple example to get devices and its current status:

# you should obtain devkeys and IDs somehow
n=neohub.Neohub(**{'devkey':1,'vendorid':1,'devicetypeid':1, 'debug':False})
# e-mail of account and password
resp=n.login("simple@example.org","password")
for device in resp['devices']:
        print("=Device: ", device['devicename'],device['deviceid'])
        stat=n.device_status(device['deviceid'])
        status=stat['devices'][0]
        print(status)

About

Python module to control Neohub supported thermostats

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages