-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
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() | ||
``` |