Closed EmberLightVFX closed 1 month ago
Made a custom quirk that seems to fix my problem. I simply ignore the response commands from the OnOff cluster (I think). The identification still doesn't work and I couldn't get that working. I also don't know how to correctly do a PR out of this but it's at least something.
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.
@EmberLightVFX would you mind sharing?
@jagheterfredrik You'll find the custom quirk under the Custom quirk
dropdown in the first post
Ah cheers @EmberLightVFX, I'll make a PR
Problem description
I’m having a problem when I try to toggle my light dimmer in the UI. The dimmer is a HZC Electronics D688-ZG dimmer. When I press to turn the light off, the light turns off but it doen’t seem to register in the UI and the switch goes back to its on-state in the UI while the real light is still off.
If I turn on/off the light with the light-switch, HA will register this and print it in the log book
If I go to the switch’s Manage Zigbee Device I can send the light-toggle from there and it works as expected. I do get an error: Failed to call service zha/issue_zigbee_cluster_command. Failed to issue cluster command with status: <Status.UNSUP_CLUSTER_COMMAND: 129> but the light works as expected and it’s being logged in the logbook.
It might be connected to this support request also as they are both made by HZC: https://github.com/zigpy/zha-device-handlers/issues/2865
Solution description
The light should turn on/off and stay that way after changing it in the UI.
Screenshots/Video
Screenshots/Video
![0aca44887b97b60822fc3394f292acf7fe01d8eb](https://github.com/zigpy/zha-device-handlers/assets/49758407/8685351e-5850-42c3-a906-6620b8c8e036)Device signature
Device signature
```json { "node_descriptor": "NodeDescriptor(logical_type=Diagnostic information
Diagnostic information
```json { "home_assistant": { "installation_type": "Home Assistant Container", "version": "2024.2.1", "dev": false, "hassio": false, "virtualenv": false, "python_version": "3.12.1", "docker": true, "arch": "x86_64", "timezone": "Europe/Stockholm", "os_name": "Linux", "os_version": "4.4.302+", "run_as_root": true }, "custom_components": {}, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "after_dependencies": [ "onboarding", "usb" ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly", "@TheJulianJES" ], "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.38.0", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.111", "zigpy-deconz==0.23.0", "zigpy==0.62.3", "zigpy-xbee==0.20.1", "zigpy-zigate==0.12.0", "zigpy-znp==0.12.1", "universal-silabs-flasher==0.0.18", "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": "0403", "pid": "6015", "description": "*conbee*", "known_devices": [ "Conbee III" ] }, { "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": 41960, "manufacturer": "Shyugj", "model": "Dimmer-Switch-ZB3.0", "name": "Shyugj Dimmer-Switch-ZB3.0", "quirk_applied": false, "quirk_class": "zigpy.device.Device", "quirk_id": null, "manufacturer_code": 4714, "power_source": "Mains", "lqi": 184, "rssi": -54, "last_seen": "2024-02-17T14:12:38", "available": true, "device_type": "Router", "signature": { "node_descriptor": "NodeDescriptor(logical_type=Logs
Logs
My switchis called `light.dimmer_living_room_light` ```python 2024-02-17 14:29:30.999 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'56b6b1a9112a15b658904124ab1593499c21c77fb6789874f5de3e83f47b1e22e9dea37e' 2024-02-17 14:29:31.000 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2024-02-17 14:29:31.001 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [Custom quirk
Custom quirk
```python from zigpy.profiles import zha, zgp from zigpy.quirks import CustomDevice, CustomCluster from zigpy.zcl.clusters.general import ( Basic, GreenPowerProxy, Groups, Identify, LevelControl, OnOff, Ota, Scenes, ) from zigpy.zcl.clusters.homeautomation import Diagnostic from zigpy.zcl.clusters.lightlink import LightLink from zhaquirks import NoReplyMixin from zhaquirks.const import ( DEVICE_TYPE, ENDPOINTS, INPUT_CLUSTERS, MODEL, MANUFACTURER, OUTPUT_CLUSTERS, PROFILE_ID, ) class HzcOnOff(NoReplyMixin, CustomCluster, OnOff): """HZC On Off Cluster.""" void_input_commands = {cmd.id for cmd in OnOff.commands_by_name.values()} class HZCRotaryDimmer(CustomDevice): """Dimmer-Switch-ZB3.0 by Shyugj""" signature = { MANUFACTURER: "Shyugj", MODEL: "Dimmer-Switch-ZB3.0", ENDPOINTS: { #Additional information
No response