From ebe050724c882d5846d8393a5d851875938d7e55 Mon Sep 17 00:00:00 2001 From: Einsten42 Date: Tue, 29 Jan 2019 23:56:57 -0600 Subject: [PATCH 1/4] removed requirements --- requirements_cloud.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements_cloud.txt b/requirements_cloud.txt index 132900e..e69de29 100644 --- a/requirements_cloud.txt +++ b/requirements_cloud.txt @@ -1 +0,0 @@ -pgc_interface>=1.0.0,<1.1.0 \ No newline at end of file From 55bcf8cd094c703767c3da449c591e45f25465f3 Mon Sep 17 00:00:00 2001 From: JimBo Date: Tue, 5 Feb 2019 13:43:01 -0800 Subject: [PATCH 2/4] 2.0.33 --- README.md | 2 ++ ecobee-poly.py | 9 +++++++-- server.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4f26733..621250e 100755 --- a/README.md +++ b/README.md @@ -46,6 +46,8 @@ If you already have it installed and want the update before it's in the store. ## Release Notes +- 2.0.33: JimBo + - Fix another crash from Ecobee server returning bad json data. - 2.0.32: JimBo - [Fix issue with unknown remote sensor temperature](https://github.com/Einstein42/udi-ecobee-poly/issues/35) - [AttributeError: 'Controller' object has no attribute 'revData'](https://github.com/Einstein42/udi-ecobee-poly/issues/36) diff --git a/ecobee-poly.py b/ecobee-poly.py index e3ecf95..ceb5f10 100755 --- a/ecobee-poly.py +++ b/ecobee-poly.py @@ -470,12 +470,17 @@ def getThermostats(self): self.set_ecobee_st(False) return False rdata = res.read().decode('utf-8') + auth_conn.close() if rdata is None: LOGGER.error("Bad read {} from thermostatSummary".format(rdata)) self.set_ecobee_st(False) return False - data = json.loads(rdata) - auth_conn.close() + try: + data = json.loads(rdata) + except Exception as e: + LOGGER.error('Ecobee API data format error: {} for: {}'.format(e,rdata)) + self.set_ecobee_st(False) + return False self.set_ecobee_st(True) thermostats = {} if 'revisionList' in data: diff --git a/server.json b/server.json index 8c7bf63..4662bb3 100755 --- a/server.json +++ b/server.json @@ -14,7 +14,7 @@ { "title": "ecobee: Polyglot NodeServer for Ecobee", "author": "James Milne (Einstein.42)", - "version": "2.0.32", + "version": "2.0.33", "date": "July 25, 2018", "source": "https://github.com/Einstein42/udi-ecobee-poly", "license": "https://github.com/Einstein42/udi-ecobee-poly/master/LICENSE" From 4ee15bb4b5626207daa291c9091cb2ddb1527e57 Mon Sep 17 00:00:00 2001 From: JimBo Date: Tue, 5 Feb 2019 14:00:38 -0800 Subject: [PATCH 3/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 621250e..dd6ac48 100755 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ See https://forum.universal-devices.com/topic/25016-polyglot-nodeserver-monitori ## Upgrading +When a new release is published, it should be released to the polyglot web store within an hour, currently around 40 minutes past the hour. + 1. Open the Polyglot web page 1. Go to nodeserver store and click "Update" for "Ecobee" 1. Wait for the update completed notice From 1d475f58bcc6f82fe7df82920fb309a186764b00 Mon Sep 17 00:00:00 2001 From: JimBo Date: Tue, 5 Feb 2019 14:05:32 -0800 Subject: [PATCH 4/4] Add some Node info --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index dd6ac48..fe16087 100755 --- a/README.md +++ b/README.md @@ -23,6 +23,19 @@ a limitation imposed by Ecobee. 1. Hold Indefinite If this is changed to either Hold settings then the current Cool/Heat and Fan modes are sent with that Hold type. If Running is selected then any Holds are cancelled. +## Node info + +1. Controller node - Nodeserver Online + * The Nodeserver process status +1. Controller node - Ecobee Connection Status + * The Nodeserver communication to the Ecobee server status. +1. Main thermostat node (n00x_t) - Connected + * The Ecobee servers can see the thermostat +1. Main thermostat sensor node (n00x_s) - Responding + * Probably node needed since main sensor is inside the thermostat +1. Remote sensor node (n00x_rs) - Responding + * The thermostat can see the sensor, this going False can indicate dead battery or out-of-range. + ## Monitoring See https://forum.universal-devices.com/topic/25016-polyglot-nodeserver-monitoring/ for info on how to use the heartbeats. You can also check the thermostat GV8 True/False to see if the Ecobee servers can see the thermostats.