Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
broox committed Nov 9, 2017
1 parent 54ff76b commit b83c1da
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Python NuHeat

A Python library that allows control of connected [NuHeat Signature](http://www.nuheat.com/products/thermostats/signature-thermostat) radiant floor thermostats.

* This uses the web-based NuHeat API, so it requires an external internet connection
* The API in use is not an officially published API, so it could change without notice
* Please contribute!

# Usage

```
from nuheat import NuHeat
# Initalize an API session with your login credentials
api = NuHeat("[email protected]", "your-secure-password")
api.authenticate()
# Fetch a thermostat by serial number / ID. This can be found on the NuHeat website by selecting
# your thermostat and noting the Thermostat ID
api.get_thermostat("12345")
# Print the current temperature of the thermostat
thermostat.fahrenheit
thermostat.celsius
# Print the current target temperature of the thermostat
thermostat.target_fahrenheit
thermostat.target_celsius
# Set a new target temperature to turn the heat on/off. This is effectively a set and HOLD command,
# so any pre-programmed thermostat schedules will be ignored.
thermostat.target_fahrenheit = 75
# If you prefer celsius you can do that too
thermostat.target_celsius = 23
# Resume the schedule programmed into the thermostat
thermostat.resume_schedule()
```

0 comments on commit b83c1da

Please sign in to comment.