diff --git a/README.md b/README.md index 54cfa40..5bf7a4c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ 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 also supports the **Mapei MapeHeat** and **Emerson Warm Tiles** 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 @@ -30,7 +30,7 @@ from nuheat import NuHeat api = NuHeat("email@example.com", "your-secure-password") api.authenticate() -# Initialize an API session for a specific brand +# Initialize an API session for a specific brand (Current choices are NUHEAT, MAPEHEAT and WARMTILES) api = NuHeat("email@example.com", "your-secure-password", brand="MAPEHEAT") api.authenticate() diff --git a/nuheat/config.py b/nuheat/config.py index d5329b6..dc34f3c 100644 --- a/nuheat/config.py +++ b/nuheat/config.py @@ -1,9 +1,11 @@ NUHEAT = "NUHEAT" MAPEHEAT = "MAPEHEAT" -BRANDS = (NUHEAT, MAPEHEAT) +WARMTILES = "WARMTILES" +BRANDS = (NUHEAT, MAPEHEAT, WARMTILES) HOSTNAMES = { NUHEAT: "mynuheat.com", MAPEHEAT: "mymapeheat.com", + WARMTILES: "warmtiles.mythermostat.info", } # NuHeat Schedule Modes diff --git a/tests/test_nuheat.py b/tests/test_nuheat.py index 878faba..2a48f86 100644 --- a/tests/test_nuheat.py +++ b/tests/test_nuheat.py @@ -17,6 +17,7 @@ class TestNuHeat(NuTestCase): ("NUHEAT", "mynuheat.com"), ("BAD-BRAND", "mynuheat.com"), ("MAPEHEAT", "mymapeheat.com"), + ("WARMTILES", "warmtiles.mythermostat.info"), ]) def test_brands(self, brand, hostname): api = NuHeat("test@example.com", "secure-password", brand=brand) diff --git a/tests/test_thermostat.py b/tests/test_thermostat.py index 3dac0d9..12979c0 100644 --- a/tests/test_thermostat.py +++ b/tests/test_thermostat.py @@ -27,6 +27,7 @@ def test_init(self, _): ("NUHEAT", "mynuheat.com"), ("BAD-BRAND", "mynuheat.com"), ("MAPEHEAT", "mymapeheat.com"), + ("WARMTILES", "warmtiles.mythermostat.info"), ]) @patch("nuheat.NuHeatThermostat.get_data") def test_brand_urls(self, brand, hostname, _):