Closed tmyroadctfig closed 9 months ago
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Problem description
Sercomm power switches are reporting too much energy consumption
Solution description
As suggested here, a custom quirk to adjust the energy consumption measurement would be very appreciated: https://github.com/home-assistant/core/issues/66070#issuecomment-1094031880
Screenshots/Video
Screenshots/Video
![image](https://github.com/zigpy/zha-device-handlers/assets/855586/ccde1de3-31f8-4e28-94ff-d5bd08c892a3) ![image](https://github.com/zigpy/zha-device-handlers/assets/855586/d0f5360e-a63d-4b62-aead-3631e1cd7fc0)Device signature
Device signature
```json { "node_descriptor": "NodeDescriptor(logical_type=Diagnostic information
Diagnostic information
```json { "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.5.2", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.11", "docker": true, "arch": "aarch64", "timezone": "Australia/Sydney", "os_name": "Linux", "os_version": "6.1.21-v8", "supervisor": "2023.04.1", "host_os": "Home Assistant OS 10.1", "docker_version": "23.0.3", "chassis": "embedded", "run_as_root": true }, "custom_components": { "tesla_custom": { "version": "3.12.2", "requirements": [ "teslajsonpy==3.8.1" ] }, "hacs": { "version": "1.32.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "bureau_of_meteorology": { "version": "1.1.19", "requirements": [ "iso8601" ] }, "smartthinq_sensors": { "version": "0.31.6", "requirements": [ "pycountry>=20.7.3", "xmltodict>=0.12.0", "charset_normalizer>=2.0.0" ] }, "solcast_solar": { "version": "3.0.46", "requirements": [ "aiohttp>=3.6.2", "datetime>=4.3", "isodate>=0.6.0" ] } }, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "after_dependencies": [ "onboarding", "usb" ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly" ], "config_flow": true, "dependencies": [ "file_upload" ], "documentation": "https://www.home-assistant.io/integrations/zha", "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp" ], "requirements": [ "bellows==0.35.2", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.99", "zigpy-deconz==0.21.0", "zigpy==0.55.0", "zigpy-xbee==0.18.0", "zigpy-zigate==0.11.0", "zigpy-znp==0.11.1" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "*2652*", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "1A86", "pid": "55D4", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus" ] }, { "vid": "10C4", "pid": "EA60", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*zigstar*", "known_devices": [ "ZigStar Coordinators" ] }, { "vid": "1CF1", "pid": "0030", "description": "*conbee*", "known_devices": [ "Conbee II" ] }, { "vid": "10C4", "pid": "8A2A", "description": "*zigbee*", "known_devices": [ "Nortek HUSBZB-1" ] }, { "vid": "0403", "pid": "6015", "description": "*zigate*", "known_devices": [ "ZiGate+" ] }, { "vid": "10C4", "pid": "EA60", "description": "*zigate*", "known_devices": [ "ZiGate" ] }, { "vid": "10C4", "pid": "8B34", "description": "*bv 2010/10*", "known_devices": [ "Bitron Video AV2010/10" ] } ], "zeroconf": [ { "type": "_esphomelib._tcp.local.", "name": "tube*" }, { "type": "_zigate-zigbee-gateway._tcp.local.", "name": "*zigate*" }, { "type": "_zigstar_gw._tcp.local.", "name": "*zigstar*" }, { "type": "_slzb-06._tcp.local.", "name": "slzb-06*" } ], "is_built_in": true }, "data": { "ieee": "**REDACTED**", "nwk": 35019, "manufacturer": "Sercomm Corp.", "model": "SZ-ESW01-AU", "name": "Sercomm Corp. SZ-ESW01-AU", "quirk_applied": false, "quirk_class": "zigpy.device.Device", "manufacturer_code": 4401, "power_source": "Mains", "lqi": 253, "rssi": -71, "last_seen": "2023-05-28T20:15:45", "available": true, "device_type": "Router", "signature": { "node_descriptor": "NodeDescriptor(logical_type=Logs
Logs
I tried to get the multiplier / divisor values, but it doesn't seem to be reading it properly. Here's the logs: ```python 2022-02-09 18:33:00 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x8244:1:0x0702]: async_initialize: all attempts have failed: [DeliveryError('[0x8244:1:0x0702]: Message send failure'), DeliveryError('[0x8244:1:0x0702]: Message send failure'), DeliveryError('[0x8244:1:0x0702]: Message send failure'), DeliveryError('[0x8244:1:0x0702]: Message send failure')] 2022-02-09 18:33:00 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x8244:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x8244:1:0x0006]: Message send failure'), DeliveryError('[0x8244:1:0x0006]: Message send failure'), DeliveryError('[0x8244:1:0x0006]: Message send failure'), DeliveryError('[0x8244:1:0x0006]: Message send failure')] 2022-02-09 18:33:00 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x8244:1:0x0b04]: async_initialize: all attempts have failed: [DeliveryError('[0x8244:1:0x0b04]: Message send failure'), DeliveryError('[0x8244:1:0x0b04]: Message send failure'), DeliveryError('[0x8244:1:0x0b04]: Message send failure'), DeliveryError('[0x8244:1:0x0b04]: Message send failure')] 2022-02-09 19:27:41 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547143987264] Error handling message: Unknown error Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/zha/api.py", line 679, in websocket_read_zigbee_cluster_attributes success, failure = await cluster.read_attributes( File "/usr/local/lib/python3.9/site-packages/zigpy/zcl/__init__.py", line 297, in read_attributes result = await self.read_attributes_raw(to_read, manufacturer=manufacturer) File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 287, in request raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: [0x8244:1:0x0702]: Message send failure 2022-02-09 19:28:03 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547143987264] Error handling message: Unknown error Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/zha/api.py", line 679, in websocket_read_zigbee_cluster_attributes success, failure = await cluster.read_attributes( File "/usr/local/lib/python3.9/site-packages/zigpy/zcl/__init__.py", line 297, in read_attributes result = await self.read_attributes_raw(to_read, manufacturer=manufacturer) File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 287, in request raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: [0x8244:1:0x0702]: Message send failure 2022-02-09 19:28:12 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547143987264] Error handling message: Unknown error Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/zha/api.py", line 679, in websocket_read_zigbee_cluster_attributes success, failure = await cluster.read_attributes( File "/usr/local/lib/python3.9/site-packages/zigpy/zcl/__init__.py", line 297, in read_attributes result = await self.read_attributes_raw(to_read, manufacturer=manufacturer) File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 287, in request raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: [0x8244:1:0x0702]: Message send failure ```Custom quirk
No response
Additional information
I'm using a HUSBZB-1 USB zigbee dongle.
I retried reading the values again just now, and both multiplier & divisor are 0. Which matches the values in this bug report for the same device: https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2496#issuecomment-592215886
Seems like this plug may only report the proper multiplier / divisor in the electrical measurement cluster?