[BUG] NodOn on_off light switch seen as a dimmer
See original GitHub issueIs your feature request related to a problem? Please describe. NodON SIN-4-2-20 light switch is quite well supported but ZHA offers dimming capability for it, while the module is only an on_off switch (confirmed with tech specs, and also tested with a dimming capable light, which didn’t work).
The problem is that there is an in_cluster 0x0008 twice in its signature one for each relay.
Describe the solution you’d like A quirck should be added for this device with a replacement, removing those 2 entries.
Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.
{ "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4747, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 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": 260, "device_type": "0x0100", "in_clusters": [ "0x0000", "0x0003", "0x0004", "0x0005", "0x0006", "0x0007", "0x0008", "0x1000", "0xfc57" ], "out_clusters": [ "0x0003", "0x0006", "0x0019" ] }, "2": { "profile_id": 260, "device_type": "0x0100", "in_clusters": [ "0x0000", "0x0003", "0x0004", "0x0005", "0x0006", "0x0007", "0x0008" ], "out_clusters": [ "0x0003", "0x0006" ] }, "242": { "profile_id": 41440, "device_type": "0x0066", "in_clusters": [ "0x0021" ], "out_clusters": [ "0x0021" ] } }, "manufacturer": "NodOn", "model": "SIN-4-2-20", "class": "zigpy.device.Device" }
Additional context
{ “node_descriptor”: “NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4747, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 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”: 260, “device_type”: “0x0100”, “in_clusters”: [ “0x0000”, “0x0003”, “0x0004”, “0x0005”, “0x0006”, “0x0007”, “0x0008”, ### HERE ### “0x1000”, “0xfc57” ], “out_clusters”: [ “0x0003”, “0x0006”, “0x0019” ] }, “2”: { “profile_id”: 260, “device_type”: “0x0100”, “in_clusters”: [ “0x0000”, “0x0003”, “0x0004”, “0x0005”, “0x0006”, “0x0007”, “0x0008” ### HERE ### ], “out_clusters”: [ “0x0003”, “0x0006” ] }, “242”: { “profile_id”: 41440, “device_type”: “0x0066”, “in_clusters”: [ “0x0021” ], “out_clusters”: [ “0x0021” ] } }, “manufacturer”: “NodOn”, “model”: “SIN-4-2-20”, “class”: “zigpy.device.Device” }
Here is the problem. I would have write it myself, had I been proficient enough in python, which isn’t the case… I would need a bit of help 😉 Thanks in advance !
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
@TheJulianJES : just did the PR. Thanks again for the help !
Thanks a lot for all this. I’ll try to get the job done. You gave me more than I needed 😉