Closed tdoolaege closed 1 month ago
home-assistant_zha_2023-11-23T19-18-56.459Z.zip added full debug log
I would also like to support this request
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
the device connects to ZHA but no power monitoring is possible or anything else
[
Solution description
a working device :) or at least energy/power meter
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]Device signature
Device signature
```json { "node_descriptor": "NodeDescriptor(logical_type=Diagnostic information
Diagnostic information
```json { "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.11.2", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.6", "docker": true, "arch": "x86_64", "timezone": "Europe/Brussels", "os_name": "Linux", "os_version": "6.1.59", "supervisor": "2023.11.3", "host_os": "Home Assistant OS 11.1", "docker_version": "24.0.6", "chassis": "vm", "run_as_root": true }, "custom_components": { "hacs": { "version": "1.33.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "proxmoxve": { "version": "3.2.1", "requirements": [ "proxmoxer==2.0.1" ] }, "better_thermostat": { "version": "1.3.0", "requirements": [] }, "waste_collection_schedule": { "version": "1.43.0", "requirements": [ "icalendar", "recurring_ical_events", "icalevents", "bs4", "lxml" ] }, "dwains_dashboard": { "version": "3.6.0", "requirements": [] }, "nordpool": { "version": "0.0.14", "requirements": [ "nordpool>=0.2", "backoff" ] }, "nodered": { "version": "3.1.1", "requirements": [] }, "opnsense": { "version": "0.1.0", "requirements": [ "mac-vendor-lookup>=0.1.11", "python-dateutil" ] }, "edgeos": { "version": "2.0.28", "requirements": [ "aiohttp" ] }, "hpprinter": { "version": "1.0.8", "requirements": [ "xmltodict==0.12.0" ] }, "powercalc": { "version": "v1.9.7", "requirements": [ "numpy>=1.21.1" ] }, "telenet_telemeter": { "version": "1.3.3", "requirements": [ "beautifulsoup4", "html5lib" ] }, "frigate": { "version": "4.0.0", "requirements": [ "pytz==2022.7" ] }, "sonoff": { "version": "3.5.3", "requirements": [ "pycryptodome>=3.6.6" ] }, "localtuya": { "version": "5.2.1", "requirements": [] } }, "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", "universal_silabs_flasher" ], "requirements": [ "bellows==0.36.8", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.106", "zigpy-deconz==0.21.1", "zigpy==0.59.0", "zigpy-xbee==0.19.0", "zigpy-zigate==0.11.0", "zigpy-znp==0.11.6", "universal-silabs-flasher==0.0.14", "pyserial-asyncio-fast==0.11" ], "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": "_uzg-01._tcp.local.", "name": "uzg-01*" }, { "type": "_slzb-06._tcp.local.", "name": "slzb-06*" } ], "is_built_in": true }, "data": { "ieee": "**REDACTED**", "nwk": 45026, "manufacturer": "_TZE204_wbhaespm", "model": "TS0601", "name": "_TZE204_wbhaespm TS0601", "quirk_applied": false, "quirk_class": "zigpy.device.Device", "quirk_id": null, "manufacturer_code": 4417, "power_source": "Mains", "lqi": 92, "rssi": -77, "last_seen": "2023-11-23T20:12:40", "available": true, "device_type": "Router", "signature": { "node_descriptor": "NodeDescriptor(logical_type=Logs
Diagnostic information
```json 2023-11-23 20:18:36.959 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5569b1a9112a15b65894a524ab5593499c72ab140f619874f0cf7b8bfc063ea5ebc9de6f8fff9b3e7e' 2023-11-23 20:18:36.960 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-11-23 20:18:36.960 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [Custom quirk
Custom quirk
```python # _TZE204_wbhaespm.py from zigpy.profiles import zha from zigpy.quirks import CustomDevice from zigpy.zcl.clusters.general import Basic, PowerConfiguration, Identify, PollControl from zigpy.zcl.clusters.lighting import OnOff, LevelControl, Color from zigpy.zcl.clusters.measurement import TemperatureMeasurement, RelativeHumidity from zigpy.zcl.clusters.security import IasZone from zigpy.zcl.clusters.hvac import Thermostat class TZE204_Wbhaespm(CustomDevice): signature = { 'node_descriptor': { 'manufacturer_code': 4417, 'maximum_buffer_size': 66, 'maximum_incoming_transfer_size': 66, 'server_mask': 10752, 'maximum_outgoing_transfer_size': 66, 'mac_capability_flags': 142, 'maximum_outgoing_transfer_size': 66, 'descriptor_capability_field': 0, 'allocate_address': True, 'is_alternate_pan_coordinator': False, 'is_coordinator': False, 'is_end_device': False, 'is_full_function_device': True, 'is_mains_powered': True, 'is_receiver_on_when_idle': True, 'is_router': True, 'is_security_capable': False, }, 'endpoints': { 1: { 'profile_id': 0x0104, 'device_type': 0x0051, 'input_clusters': [ 0x0000, 0x0004, 0x0005, 0x0007, 0xEF00, # Replace with the actual cluster ID ], 'output_clusters': [ 0x000a, 0x0019, # Replace with the actual cluster ID ], }, 242: { 'profile_id': 0xA1E0, 'device_type': 0x0061, 'output_clusters': [ 0x0021, # Replace with the actual cluster ID ], }, }, 'manufacturer': _TZE204_wbhaespm, 'model': TS0601, 'class': zigpy.device.Device, } replacement = { # Add any cluster replacements if needed } device_automation_triggers = { # Define automation triggers if needed } ```Additional information
i tried creating a costume quirk with the help of openAI... but unfortunatly ... and i lack the knowledge of zigbee standard to create one myself