claudegel / sinope-130

Neviweb130 custom component for Home Assistant to manage devices connected via a GT130 and wifi devices from Sinopé

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with VA4220WF?

b0ne opened this issue · comments

commented

HomeAssistant 2023.1.7, Sinope-130 v2.0.0

Error in log:
neviweb130: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 503, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 729, 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/neviweb130/sensor.py", line 256, in update
device_data[ATTR_WATER_LEAK_STATUS] == STATE_WATER_LEAK else "ok"
KeyError: 'waterLeakStatus'

Hi, the problem is not with your valve but with your leak sensor.
How they are connected ? directly to your valve or via the GT130
I'll need more log. can you provide your HA log line for your valve and your leak sensor
The line are the one that contain:
[custom_components.neviweb130.switch] Setting up neviweb130 switch «your valve»...
[custom_components.neviweb130.switch] Updating neviweb130 switch «your valve»...
[custom_components.neviweb130.sensor] Setting up neviweb130 sensor «your leak sensor»...
[custom_components.neviweb130.sensor] Updating neviweb130 sensor «your leak sensor»...
It look like the attribute name, waterLeakStatus, for leak status is different for your leak sensor.
We need to find out how Neviweb call the attribute name for your leak sensor

Can you tell me if your leak sensor is connected directly to your valve or to the GT130

commented

Sorry about the delay

The leaks sensor are connected to GT130 directly. I'm looking at the log and I don't see the line that you mention. Where do I have to look to find it?

Tks!

commented

Sorry here you go :

`2023-01-30 11:14:31.695 DEBUG (MainThread) [custom_components.neviweb130.sensor] Setting up neviweb130 sensor Chauffe eau: {'id': 342661, 'identifier': '14b457fffe7a8e6e-500b914000040658', 'name': 'Chauffe eau', 'family': '5051', 'signature': {'model': 5051, 'modelCfg': 0, 'softBuildCfg': 0, 'softVersion': {'minor': 3, 'middle': 1, 'major': 1}, 'hardRev': 0, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': 129853, 'group$id': 105062, 'orderIdx': 0, 'sku': 'WL4200S', 'vendor': 'Sinopé', 'url_en': None, 'url_fr': None}

2023-01-30 11:14:31.696 DEBUG (MainThread) [custom_components.neviweb130.sensor] Setting up neviweb130 sensor GT130: {'id': 129853, 'identifier': '14b457fffe7a8e6e', 'name': 'GT130', 'family': 'GT130', 'signature': {'model': 130, 'modelCfg': 1, 'softBuildCfg': 0, 'softVersion': {'major': 2, 'middle': 3, 'minor': 0}, 'hardRev': 3, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': None, 'group$id': None, 'orderIdx': 0, 'sku': 'GT130', 'vendor': 'Sinopé', 'url_en': 'https://www.sinopetech.com/produit/passerelle-zigbee/', 'url_fr': 'https://www.sinopetech.com/en/product/gateway-zigbee/'}

2023-01-30 11:14:31.697 DEBUG (MainThread) [custom_components.neviweb130.sensor] Setting up neviweb130 sensor Lave-vaiselle fuite: {'id': 310589, 'identifier': '14b457fffe7a8e6e-500b914000040b78', 'name': 'Lave-vaiselle fuite', 'family': '5051', 'signature': {'model': 5051, 'modelCfg': 1, 'softBuildCfg': 0, 'softVersion': {'minor': 3, 'middle': 2, 'major': 1}, 'hardRev': 0, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': 129853, 'group$id': 34764, 'orderIdx': 0, 'sku': 'WL4200S', 'vendor': 'Sinopé', 'url_en': None, 'url_fr': None}

2023-01-30 11:14:31.697 DEBUG (MainThread) [custom_components.neviweb130.sensor] Setting up neviweb130 sensor WL4200S: {'id': 342660, 'identifier': '14b457fffe7a8e6e-500b914000041166', 'name': 'WL4200S', 'family': '5051', 'signature': {'model': 5051, 'modelCfg': 1, 'softBuildCfg': 0, 'softVersion': {'minor': 3, 'middle': 2, 'major': 1}, 'hardRev': 0, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': 129853, 'group$id': None, 'orderIdx': 0, 'sku': 'WL4200S', 'vendor': 'Sinopé', 'url_en': None, 'url_fr': None}`

And here for the switch:

`2023-01-30 11:14:31.651 DEBUG (MainThread) [custom_components.neviweb130.switch] Setting up neviweb130 switch Chauffe Eau: {'id': 342658, 'identifier': '14b457fffe7a8e6e-500b91400001f958', 'name': 'Chauffe Eau', 'family': '2506', 'signature': {'model': 2506, 'modelCfg': 0, 'softBuildCfg': 0, 'softVersion': {'minor': 3, 'middle': 3, 'major': 1}, 'hardRev': 0, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': 129853, 'group$id': None, 'orderIdx': 0, 'sku': 'RM3250ZB', 'vendor': 'Sinopé', 'url_en': None, 'url_fr': None}

2023-01-30 11:14:31.652 DEBUG (MainThread) [custom_components.neviweb130.switch] Setting up neviweb130 switch Entre eau: {'id': 317349, 'identifier': '500b91400003e97a', 'name': 'Entre eau', 'family': '3150-1', 'signature': {'model': 3150, 'modelCfg': 2, 'softBuildCfg': 0, 'softVersion': {'major': 2, 'middle': 5, 'minor': 6}, 'hardRev': 0, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': None, 'group$id': None, 'orderIdx': 0, 'sku': 'VA4220WF', 'vendor': 'Sinopé', 'url_en': None, 'url_fr': None}

2023-01-30 11:14:31.652 DEBUG (MainThread) [custom_components.neviweb130.switch] Setting up neviweb130 switch Établie: {'id': 273194, 'identifier': '14b457fffe7a8e6e-000d6f0015663d53', 'name': 'Établie', 'family': '2610', 'signature': {'model': 2610, 'modelCfg': 0, 'softBuildCfg': 0, 'softVersion': {'minor': 8, 'middle': 0, 'major': 0}, 'hardRev': 1, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': 129853, 'group$id': 105062, 'orderIdx': 0, 'sku': 'SP2610ZB', 'vendor': 'Sinopé', 'url_en': 'https://www.sinopetech.com/produit/prise-murale-intelligente/', 'url_fr': 'https://www.sinopetech.com/en/product/smart-in-wall-outlet-zigbee/'}

2023-01-30 11:14:31.652 DEBUG (MainThread) [custom_components.neviweb130.switch] Setting up neviweb130 switch Imprimante 3D: {'id': 176147, 'identifier': '14b457fffe7a8e6e-000d6f0015661fb5', 'name': 'Imprimante 3D', 'family': '2600', 'signature': {'model': 2600, 'modelCfg': 0, 'softBuildCfg': 0, 'softVersion': {'minor': 9, 'middle': 0, 'major': 0}, 'hardRev': 1, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': 129853, 'group$id': 67747, 'orderIdx': 0, 'sku': 'SP2600ZB', 'vendor': 'Sinopé', 'url_en': 'https://www.sinopetech.com/produit/prise-electrique-intelligente-zigbee/', 'url_fr': 'https://www.sinopetech.com/en/product/smart-plug-zigbee/'}

2023-01-30 11:14:31.652 DEBUG (MainThread) [custom_components.neviweb130.switch] Setting up neviweb130 switch Lave-vaiselle: {'id': 310588, 'identifier': '14b457fffe7a8e6e-000d6f0015663211', 'name': 'Lave-vaiselle', 'family': '2610', 'signature': {'model': 2610, 'modelCfg': 0, 'softBuildCfg': 0, 'softVersion': {'minor': 8, 'middle': 0, 'major': 0}, 'hardRev': 1, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': 129853, 'group$id': 34764, 'orderIdx': 0, 'sku': 'SP2610ZB', 'vendor': 'Sinopé', 'url_en': 'https://www.sinopetech.com/produit/prise-murale-intelligente/', 'url_fr': 'https://www.sinopetech.com/en/product/smart-in-wall-outlet-zigbee/'}

2023-01-30 11:14:31.653 DEBUG (MainThread) [custom_components.neviweb130.switch] Setting up neviweb130 switch Prise intelligente: {'id': 130373, 'identifier': '14b457fffe7a8e6e-000d6f0015661e3c', 'name': 'Prise intelligente', 'family': '2600', 'signature': {'model': 2600, 'modelCfg': 0, 'softBuildCfg': 0, 'softVersion': {'minor': 9, 'middle': 0, 'major': 0}, 'hardRev': 1, 'protocol': 'sinopcom'}, 'location$id': 22548, 'parentDevice$id': 129853, 'group$id': 34764, 'orderIdx': 0, 'sku': 'SP2600ZB', 'vendor': 'Sinopé', 'url_en': 'https://www.sinopetech.com/produit/prise-electrique-intelligente-zigbee/', 'url_fr': 'https://www.sinopetech.com/en/product/smart-plug-zigbee/'}
`

commented

Ok,

I'm not sure if you need to fix it or not. The neviweb130 sensor WL4200S was actually offline (dead battery). I remove it from nevieweb for the moment (I will reset it later). And the log is clean at the moment (restarted home assistant).

Tks!

Let me know if the problem is fixed. I'm closing this but feel free to reopen if it is not fixed