Open moritzbeck13 opened 1 year ago
It seems that device triggers 3 events for every button press:
I'm not sure why it behaves that way, but I'll suggest this change to the quirk:
@javicalle Can you open a PR for this?
Not until there is confirmation that the quirk works as it should. Were you able to validate the quirk on your device?
Not until there is confirmation that the quirk works as it should. Were you able to validate the quirk on your device?
After repairing the device with the new quirk enabled, the behaviour is as follows:
false
true
Just for clarity, this is what I expected to happen:
Please attach the debug logs for button and tamper indicating the sequence of events. You can do it by enabling the debug logs from the device view.
I'm not sure if every event came through, because the light didn't blink on every action, even though I actively waited a second or so between every action.
With regards to my previous comment, I have to correct something: The entity also sets and resets on releasing the bell/tamper button. So both pressing and releasing the bell button sets the entity to true and both pressing and releasing the tamper button resets the entity to false. Sorry for the confusion, I didn't test for this exact scenario (pressing/releasing intertwined), even though it makes much sense.
Is there any further information I can provide?
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.
Not stale
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.
Not stale
Describe the bug As mentioned in https://github.com/zigpy/zha-device-handlers/issues/1168: It seems like pressing the normal button reports true, but releasing it reports nothing. In contrast, pressing the tamper button changes the same entity to false, releasing it does nothing aswell.
To Reproduce
false
true
false
false
Expected behavior I press the doorbell button, the doorbell entity reports
true
. I release it, it reportsfalse
. There is no tamper entity (why?), but I would expect the same behavior with the tamper button and a potential tamper entity.Device signature
```yaml { "node_descriptor": "NodeDescriptor(logical_type=Diagnostic information
```yaml { "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.1.2", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.7", "docker": true, "arch": "x86_64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "5.15.80", "supervisor": "2022.12.1", "host_os": "Home Assistant OS 9.4", "docker_version": "20.10.19", "chassis": "vm", "run_as_root": true }, "custom_components": { "hacs": { "version": "1.29.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "homematicip_local": { "version": "1.26.1", "requirements": [ "hahomematic==2023.1.2" ] } }, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/zha", "requirements": [ "bellows==0.34.6", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.90", "zigpy-deconz==0.19.2", "zigpy==0.53.0", "zigpy-xbee==0.16.2", "zigpy-zigate==0.10.3", "zigpy-znp==0.9.2" ], "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" ] } ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly" ], "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*" } ], "dependencies": [ "file_upload" ], "after_dependencies": [ "onboarding", "usb", "zeroconf" ], "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp" ], "is_built_in": true }, "data": { "ieee": "**REDACTED**", "nwk": 46036, "manufacturer": "_TZ1800_ladpngdx", "model": "TS0211", "name": "_TZ1800_ladpngdx TS0211", "quirk_applied": true, "quirk_class": "zhaquirks.tuya.ts0211.TuyaDoorbell0211", "manufacturer_code": 4619, "power_source": "Battery or Unknown", "lqi": 255, "rssi": -61, "last_seen": "2023-01-15T01:00:26", "available": true, "device_type": "EndDevice", "signature": { "node_descriptor": "NodeDescriptor(logical_type=Additional logs
Event 0: ``` event_type: zha_event data: device_ieee: 84:2e:14:ff:fe:f6:d3:9b unique_id: 84:2e:14:ff:fe:f6:d3:9b:1:0x0500 device_id: f461037a8c12c5b0b35b665927357440 endpoint_id: 1 cluster_id: 1280 command: single args: [] params: {} origin: LOCAL time_fired: "2023-01-04T20:07:14.527905+00:00" context: id: 01GNZ6A7TZR278TNNSFC2AFT2Z parent_id: null user_id: null ``` Event 1: ``` event_type: zha_event data: device_ieee: 84:2e:14:ff:fe:f6:d3:9b unique_id: 84:2e:14:ff:fe:f6:d3:9b:1:0x0500 device_id: f461037a8c12c5b0b35b665927357440 endpoint_id: 1 cluster_id: 1280 command: single args: [] params: {} origin: LOCAL time_fired: "2023-01-04T20:07:16.646759+00:00" context: id: 01GNZ6A9X6QZHBA42GH0MQP32A parent_id: null user_id: null ``` Event 2: ``` event_type: zha_event data: device_ieee: 84:2e:14:ff:fe:f6:d3:9b unique_id: 84:2e:14:ff:fe:f6:d3:9b:1:0x0500 device_id: f461037a8c12c5b0b35b665927357440 endpoint_id: 1 cluster_id: 1280 command: single args: [] params: {} origin: LOCAL time_fired: "2023-01-04T20:07:19.666115+00:00" context: id: 01GNZ6ACVJQJQXJSJCQ1QDDZHV parent_id: null user_id: null ```