Skip to content

Interface to interact with the Sinope Thermostats.

License

Notifications You must be signed in to change notification settings

reidprojects/pysinope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PySinope

This library allows to interact with Sinope products. This will directly interact with their cloud serrver, it is not possible to use it directly with the gateway.

Getting Started

from pysinope import PySinope, Thermostat

if "__main__" == __name__:

    py_sinope = PySinope()

    with py_sinope.connect("email", "pass") as sinope_interface:
        sinope_interface.read_gateway()

        main_gateway = sinope_interface.get_gateway_by_name('Home')
        therm = main_gateway.get_thermostat_by_name('Bedroom')

        print therm.temperature
        print therm.setpoint

        therm.mode = Thermostat.MODE_MANUAL  # Set the Thermostat mode.
        therm.setpoint = "20.00"

        print unicode(therm)

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

ToDo

  • Support switches and other products;
  • Add unittest
  • Improve documentation

About

Interface to interact with the Sinope Thermostats.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages