claudegel / sinope-gt125

Sinope custom component for Home Assistant to manage Sinopé devices directly via the GT125 gateway
GNU General Public License v3.0
16 stars 4 forks source link

Ouellet thermostat always be unavailable #51

Closed poupouproject closed 1 year ago

poupouproject commented 1 year ago

I use this component since the first commit and Ouellette never works. I finally open issues for that.

Home Assistant see the thermostat but always in unavailable state.

I opened issues here but I use via Neviweb components. On github, the repo sinope-1 can't open issues.

Here some log:

Logger: homeassistant.components.climate
Source: custom_components/neviweb/climate.py:619
Integration: Climate (documentation, issues)
First occurred: 7:08:27 PM (5 occurrences)
Last logged: 7:08:32 PM

neviweb: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 715, in async_device_update
    await task
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/neviweb/climate.py", line 619, in update
    self._early_start = device_data[ATTR_EARLY_START]
KeyError: 'earlyStart'

Debug information (I hide identifier information):


2022-12-07 19:08:24.418 DEBUG (SyncWorker_1) [custom_components.neviweb] Received gateway data: [{'id': 116268, 'identifier': 'XXXXXXX', 'name': 'Atelier', 'family': '725', 'signature': {'model': 725, 'modelCfg': 82, 'hardRev': 0, 'softVersion': {'major': 1, 'middle': 0, 'minor': 2}, 'softBuildCfg': 0}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': 5957, 'orderIdx': 0, 'sku': 'OTH3600-GA-GT', 'vendor': 'Ouellet', 'url_en': 'http://www.ouellet.com/en-ca/products/accessories-and-controls.aspx?product=OTH3600-GA-GT', 'url_fr': 'http://www.ouellet.com/fr-ca/produits/accessoires-et-controles.aspx?product=OTH3600-GA-GT'}, {'id': 100243, 'identifier': 'XXXXXXX-XXX', 'name': 'Bureau', 'family': '1122', 'signature': {'model': 1122, 'modelCfg': 4, 'hardRev': 1, 'softVersion': {'major': 1, 'middle': 7, 'minor': 0}, 'softBuildCfg': 4}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': 5956, 'orderIdx': 0, 'sku': 'TH1120RF-3000B', 'vendor': 'Sinopé', 'url_en': 'http://www.sinopetech.com/en/boutique/products/neviweb-en/thermostat-for-electric-heating-wireless-communication/', 'url_fr': 'http://www.sinopetech.com/boutique/produits/thermostat-pour-chauffage-electrique-communication-sans-fil/'}, {'id': 100985, 'identifier': 'XXXXXXX-xxxx', 'name': 'Ch maître', 'family': '1122', 'signature': {'model': 1122, 'modelCfg': 4, 'hardRev': 1, 'softVersion': {'major': 1, 'middle': 7, 'minor': 0}, 'softBuildCfg': 4}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': 16193, 'orderIdx': 0, 'sku': 'TH1120RF-3000B', 'vendor': 'Sinopé', 'url_en': 'http://www.sinopetech.com/en/boutique/products/neviweb-en/thermostat-for-electric-heating-wireless-communication/', 'url_fr': 'http://www.sinopetech.com/boutique/produits/thermostat-pour-chauffage-electrique-communication-sans-fil/'}, {'id': 25009, 'identifier': 'XXXXXXX-xxx', 'name': 'Chambre Arnaud', 'family': '725', 'signature': {'model': 725, 'modelCfg': 82, 'hardRev': 0, 'softVersion': {'major': 1, 'middle': 0, 'minor': 2}, 'softBuildCfg': 0}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': 16574, 'orderIdx': 0, 'sku': 'OTH3600-GA-GT', 'vendor': 'Ouellet', 'url_en': 'http://www.ouellet.com/en-ca/products/accessories-and-controls.aspx?product=OTH3600-GA-GT', 'url_fr': 'http://www.ouellet.com/fr-ca/produits/accessoires-et-controles.aspx?product=OTH3600-GA-GT'}, {'id': 25010, 'identifier': 'XXXXXXX-xxxx', 'name': 'Éloi et Flavie', 'family': '725', 'signature': {'model': 725, 'modelCfg': 82, 'hardRev': 0, 'softVersion': {'major': 1, 'middle': 0, 'minor': 2}, 'softBuildCfg': 0}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': 5955, 'orderIdx': 0, 'sku': 'OTH3600-GA-GT', 'vendor': 'Ouellet', 'url_en': 'http://www.ouellet.com/en-ca/products/accessories-and-controls.aspx?product=OTH3600-GA-GT', 'url_fr': 'http://www.ouellet.com/fr-ca/produits/accessoires-et-controles.aspx?product=OTH3600-GA-GT'}, {'id': 25006, 'identifier': 'xxxxxxxx', 'name': 'GT125', 'family': 'GT125', 'signature': {'model': 125, 'modelCfg': 0, 'softBuildCfg': 0, 'softVersion': {'major': 3, 'middle': 0, 'minor': 0}, 'hardRev': 2}, 'location$id': 5979, 'parentDevice$id': None, 'group$id': None, 'orderIdx': 0, 'sku': 'GT125', 'vendor': 'Sinopé', 'url_en': 'https://www.sinopetech.com/produit/passerelle-web/', 'url_fr': 'https://www.sinopetech.com/en/product/web-interface-gateway-sinope-mi-wi/'}, {'id': 25008, 'identifier': 'XXXXXXX-xxx', 'name': 'S.Bain-S.Lavage', 'family': '725', 'signature': {'model': 725, 'modelCfg': 82, 'hardRev': 0, 'softVersion': {'major': 1, 'middle': 0, 'minor': 2}, 'softBuildCfg': 0}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': None, 'orderIdx': 0, 'sku': 'OTH3600-GA-GT', 'vendor': 'Ouellet', 'url_en': 'http://www.ouellet.com/en-ca/products/accessories-and-controls.aspx?product=OTH3600-GA-GT', 'url_fr': 'http://www.ouellet.com/fr-ca/produits/accessoires-et-controles.aspx?product=OTH3600-GA-GT'}, {'id': 100997, 'identifier': 'XXXXXXX-19C96', 'name': 'Salle de bain', 'family': '1122', 'signature': {'model': 1122, 'modelCfg': 4, 'hardRev': 1, 'softVersion': {'major': 1, 'middle': 7, 'minor': 0}, 'softBuildCfg': 4}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': 16195, 'orderIdx': 0, 'sku': 'TH1120RF-3000B', 'vendor': 'Sinopé', 'url_en': 'http://www.sinopetech.com/en/boutique/products/neviweb-en/thermostat-for-electric-heating-wireless-communication/', 'url_fr': 'http://www.sinopetech.com/boutique/produits/thermostat-pour-chauffage-electrique-communication-sans-fil/'}, {'id': 25007, 'identifier': 'XXXXXXX-xxxx', 'name': 'Salle Familiale', 'family': '725', 'signature': {'model': 725, 'modelCfg': 82, 'hardRev': 0, 'softVersion': {'major': 1, 'middle': 0, 'minor': 2}, 'softBuildCfg': 0}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': 5957, 'orderIdx': 0, 'sku': 'OTH3600-GA-GT', 'vendor': 'Ouellet', 'url_en': 'http://www.ouellet.com/en-ca/products/accessories-and-controls.aspx?product=OTH3600-GA-GT', 'url_fr': 'http://www.ouellet.com/fr-ca/produits/accessoires-et-controles.aspx?product=OTH3600-GA-GT'}, {'id': 100242, 'identifier': 'XXXXXXX-xxxx', 'name': 'Salon - cuisine', 'family': '1122', 'signature': {'model': 1122, 'modelCfg': 4, 'hardRev': 1, 'softVersion': {'major': 1, 'middle': 7, 'minor': 0}, 'softBuildCfg': 4}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': 16192, 'orderIdx': 0, 'sku': 'TH1120RF-3000B', 'vendor': 'Sinopé', 'url_en': 'http://www.sinopetech.com/en/boutique/products/neviweb-en/thermostat-for-electric-heating-wireless-communication/', 'url_fr': 'http://www.sinopetech.com/boutique/produits/thermostat-pour-chauffage-electrique-communication-sans-fil/'}, {'id': 100244, 'identifier': 'XXXXXXX-xxx', 'name': 'Salon - Table', 'family': '1122', 'signature': {'model': 1122, 'modelCfg': 4, 'hardRev': 1, 'softVersion': {'major': 1, 'middle': 7, 'minor': 0}, 'softBuildCfg': 4}, 'location$id': 5979, 'parentDevice$id': 25006, 'group$id': 16192, 'orderIdx': 0, 'sku': 'TH1120RF-3000B', 'vendor': 'Sinopé', 'url_en': 'http://www.sinopetech.com/en/boutique/products/neviweb-en/thermostat-for-electric-heating-wireless-communication/', 'url_fr': 'http://www.sinopetech.com/boutique/produits/thermostat-pour-chauffage-electrique-communication-sans-fil/'}]