Closed drueppela closed 1 year ago
I tried to implement
I created the directory:
/config/zha_custom_quirks
Added
zha:
database_path: /config/zigbee.db
enable_quirks: true
custom_quirks_path: /config/zha_custom_quirks/
to
/config/configuration.yaml
Added
__init__.py
https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/__init__.py
to the directory:
/config/zha_custom_quirks
Added
const.py
https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/const.py
to the directory:
/config/zha_custom_quirks
Added directory
paulmann
https://github.com/zigpy/zha-device-handlers/tree/dev/zhaquirks/paulmann
to the directory:
/config/zha_custom_quirks
Added
__init__.py
https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/paulmann/__init__.py
to the directory:
/config/zha_custom_quirks/paulmann
Added
fourbtnremote.py
https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/paulmann/fourbtnremote.py
to the directory:
/config/zha_custom_quirks/paulmann
https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/paulmann/fourbtnremote.py
Disconnected Paulmann Licht GmbH Wall Switch 501.34
Factory reset Paulmann Licht GmbH Wall Switch 501.34
Restart Home Assistant
Pairing Paulmann Licht GmbH Wall Switch 501.34
As before I can see events fired, but Paulmann 501.34 Wall Switch (sw_build_id (id: 0x4000) 2.7.6_r25) cannot be used in HASSIO automations.
Where can I see if the quirk is running?
Logger: zhaquirks
Source: components/zha/__init__.py:122
First occurred: 19:34:30 (1 occurrences)
Last logged: 19:34:30
Loaded custom quirks. Please contribute them to https://github.com/zigpy/zha-device-handlers
I cannot find a hint at
https://github.com/zigpy/zha-device-handlers/pull/2419 https://github.com/zigpy/zha-device-handlers/blob/dev/README.md
and
Add guide for adding a custom quirk to ZHA #2419
Can you listen to zha_event
in the Home Assistant "developer tools" -> "events" section and see if you get any events when pressing the buttons?
Also, see if there's anything in the logbook when pressing buttons.
@TheJulianJES & @dmulcahey & @MattFromGer & @javicalle
zha_event
zha_event
zha_event
zha_event
zha_event
zha_event
zha_event
zha_event
zha_event
zha_event
zha_event
zha_event
Just noticed that your device signature is:
"manufacturer": "Paulmann Licht GmbH",
"model": "501.34",
While the quirk is using the value: https://github.com/zigpy/zha-device-handlers/blob/d1a1b599da44c471b52a616c320aab1d5491e163/zhaquirks/paulmann/__init__.py#L3
Have you tried to add your signature to quirk? it would be something like:
class PaulmannRemote4Btn(CustomDevice):
"""Custom device representing Paulmann 4-button 501.34 remote control."""
signature = {
# <SimpleDescriptor endpoint=1 profile=260 device_type=1
# device_version=0
# input_clusters=[0, 1, 3, 2821, 4096]
# output_clusters=[3, 4, 5, 6, 8, 25, 768, 4096]>
MODELS_INFO: [
(PAULMANN, "501.34"),
("Paulmann Licht GmbH", "501.34"),
],
ENDPOINTS: {
1: {
.../...
Good catch @javicalle. I'll prepare a PR
@javicalle : 🥇
All Device Triggers are available now. MANY THANKS.
Is there a chance to make the Device Triggers available as Entities?
Is there a chance to change the Device Trigger Names
Button 1
==> Button a1
and
"First button"
pressed to "Button a1"
pressed?
like the Paulmann description?
@drueppela Thanks for this very well written guide. It's great that you put a lot of work into your posts, it really contributes to the community! Also, I had the same problem and now I can use the newer switches too!
I think it's still too much work to create the automations for this switch and I'd like to create a blueprint to make it easier. I've never done this before and need to learn, but that's the fun of Home Assistant!
@redfusion83 @drueppela @MattFromGer @TheJulianJES
Hi guys, I have issues with button A0 and B0 (or button 2 and 4) all button presses work except long press and press and realease on these 2 buttons. hope someone can support me.
Button 2 long press & release
Button 2 long press
Button 4 long press & release
Button 4 long press
I'm really struggling and don't know what to do.
References:
https://github.com/zigpy/zha-device-handlers/pull/1678#issuecomment-1771660070 https://community.home-assistant.io/t/paulmann-501-34-wall-switch/418414/7?u=ajd_ht https://de.paulmann.com/p/wandschalter-smart-home-zigbee-3.0-on-off-dimm-weiss/50134
Bug description
I paired
Paulmann 501.34 Wall Switch (Wandschalter Smart Home Zigbee 3.0 On/Off/Dimm Weiß)
with
Home Assistant 2023.10.3 Supervisor 2023.10.0 Operating System 11.0 Frontend 20231005.0 - latest
and
ZHA
I cannot find any possibility to integrate the Paulmann 501.34 Wall Switch in any automation.
I only find 1 device
with 4 entities
Steps to reproduce
Expected behavior
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.10.3", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.5", "docker": true, "arch": "aarch64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "6.1.21-v8", "supervisor": "2023.10.0", "host_os": "Home Assistant OS 11.0", "docker_version": "24.0.6", "chassis": "embedded", "run_as_root": true }, "custom_components": { "hacs": { "version": "1.33.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "zha_toolkit": { "version": "v1.1.2", "requirements": [ "pytz" ] }, "govee_lan": { "version": "1.0.0", "requirements": [ "govee-led-wez>=0.0.15" ] }, "govee": { "version": "0.2.2", "requirements": [ "govee-api-laggat==0.2.2", "dacite==1.6.0" ] }, "nodered": { "version": "3.0.1", "requirements": [] }, "gardena_smart_system": { "version": "1.0.0", "requirements": [ "py-smart-gardena==1.3.7" ] }, "virtual": { "version": "0.8.0b1", "requirements": [] }, "petkit": { "version": "0.1.0", "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.5", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.104", "zigpy-deconz==0.21.1", "zigpy==0.57.2", "zigpy-xbee==0.18.3", "zigpy-zigate==0.11.0", "zigpy-znp==0.11.5", "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": 13767, "manufacturer": "Paulmann Licht GmbH", "model": "501.34", "name": "Paulmann Licht GmbH 501.34", "quirk_applied": false, "quirk_class": "zigpy.device.Device", "manufacturer_code": 4644, "power_source": "Battery or Unknown", "lqi": 255, "rssi": -53, "last_seen": "2023-10-20T09:18:09", "available": true, "device_type": "EndDevice", "signature": { "node_descriptor": "NodeDescriptor(logical_type=Logs
Logs
```python [Paste the logs here] ```Additional information
No response