-
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.
Merge pull request #15 from broox/mape-release
Add mapeheat info to README for release
- Loading branch information
Showing
4 changed files
with
11 additions
and
5 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 |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
|
||
A Python 3 library that allows control of connected [NuHeat Signature](http://www.nuheat.com/products/thermostats/signature-thermostat) radiant floor thermostats. | ||
|
||
This also supports the **Mapei MapeHeat** line of smart 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! | ||
|
@@ -28,6 +30,10 @@ from nuheat import NuHeat | |
api = NuHeat("[email protected]", "your-secure-password") | ||
api.authenticate() | ||
|
||
# Initialize an API session for a specific brand | ||
api = NuHeat("[email protected]", "your-secure-password", brand="MAPEHEAT") | ||
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 | ||
thermostat = api.get_thermostat("12345") | ||
|
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 |
---|---|---|
|
@@ -6,14 +6,14 @@ | |
setup( | ||
name='nuheat', | ||
packages=['nuheat'], | ||
version='1.0.1', | ||
description='A Python library that allows control of connected NuHeat Signature radiant floor thermostats.', | ||
version='1.1.0', | ||
description='A Python library that allows control of connected NuHeat Signature and Mapei Mapeheat radiant floor thermostats.', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author='Derek Brooks', | ||
author_email='[email protected]', | ||
url='https://github.com/broox/python-nuheat', | ||
download_url='https://github.com/broox/python-nuheat/archive/1.0.1.tar.gz', | ||
download_url='https://github.com/broox/python-nuheat/archive/1.1.0.tar.gz', | ||
license='MIT', | ||
keywords=['nuheat', 'thermostat', 'home automation', 'python'], | ||
classifiers=[ | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ class TestNuHeat(NuTestCase): | |
("MAPEHEAT", "mymapeheat.com"), | ||
]) | ||
def test_brands(self, brand, hostname): | ||
api = NuHeat("[email protected]", "secure-password", session_id=None, brand=brand) | ||
api = NuHeat("[email protected]", "secure-password", brand=brand) | ||
self.assertEqual(api._hostname, hostname) | ||
self.assertEqual(api._api_url, f"https://{hostname}/api") | ||
self.assertEqual(api._auth_url, f"https://{hostname}/api/authenticate/user") | ||
|
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