core icon indicating copy to clipboard operation
core copied to clipboard

ZHA - Legrand / Bticino K4003C switch doesn't support status light

Open m4r1k opened this issue 4 months ago • 3 comments

The problem

The K4003C BTicino switch in ZHA doesn't support three key features:

  • led_in_dark
  • led_if_on
  • identify

Those are fully supported by zigbee2mqtt https://www.zigbee2mqtt.io/devices/K4003C_L4003C_N4003C_NT4003C.html

Today I've confirmed that the status light of the switch cannot be configured with the ZHA integration

This issue was originally reported by @PoVPoV29 but nobody picked it up. https://github.com/home-assistant/core/issues/80720

2024-02-08 13:52:26.312 DEBUG (MainThread) [homeassistant.components.zha.websocket_api] Get bindable devices: source_ieee: [00:04:74:00:00:ca:5c:a9], bindable devices: [[{'ieee': '00:12:4b:00:2a:2e:53:b5', 'nwk': 0x0000, 'manufacturer': 'Texas Instruments', 'model': 'Coordinator', 'name': 'Texas Instruments Coordinator', 'quirk_applied': False, 'quirk_class': 'zigpy_znp.zigbee.device.ZNPCoordinator', 'quirk_id': None, 'manufacturer_code': 0, 'power_source': 'Mains', 'lqi': None, 'rssi': None, 'last_seen': '2024-02-08T13:52:17', 'available': True, 'device_type': 'Coordinator', 'signature': {'node_descriptor': 'NodeDescriptor(logical_type=<LogicalType.Coordinator: 0>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AlternatePanCoordinator|FullFunctionDevice|MainsPowered|RxOnWhenIdle|AllocateAddress: 143>, manufacturer_code=0, maximum_buffer_size=80, maximum_incoming_transfer_size=160, server_mask=11265, maximum_outgoing_transfer_size=160, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=True, *is_coordinator=True, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=False, *is_security_capable=False)', 'endpoints': {2: {'profile_id': '0xc05e', 'device_type': '0x0820', 'input_clusters': ['0x0000'], 'output_clusters': []}, 1: {'profile_id': '0x0104', 'device_type': '0x0400', 'input_clusters': ['0x0000', '0x0006', '0x000a', '0x0019', '0x0501'], 'output_clusters': ['0x0001', '0x0020', '0x0500', '0x0502']}}, 'manufacturer': 'Texas Instruments', 'model': 'Coordinator'}, 'active_coordinator': True, 'entities': [], 'neighbors': [], 'routes': [], 'endpoint_names': [{'name': 'CONTROLLER'}, {'name': 'IAS_CONTROL'}], 'user_given_name': None, 'device_reg_id': 'c8c612b28d44aa7ca98ce41965d9b633', 'area_id': None}, {'ieee': '00:04:74:00:00:ca:5c:a9', 'nwk': 0xF202, 'manufacturer': ' Legrand', 'model': ' Light switch with neutral', 'name': ' Legrand  Light switch with neutral', 'quirk_applied': False, 'quirk_class': 'zigpy.device.Device', 'quirk_id': None, 'manufacturer_code': 4129, 'power_source': 'Mains', 'lqi': 72, 'rssi': None, 'last_seen': '2024-02-08T13:47:47', 'available': True, 'device_type': 'Router', 'signature': {'node_descriptor': 'NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=1, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.FullFunctionDevice|MainsPowered|RxOnWhenIdle|AllocateAddress: 142>, manufacturer_code=4129, maximum_buffer_size=89, maximum_incoming_transfer_size=63, server_mask=10752, maximum_outgoing_transfer_size=63, 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': '0x0104', 'device_type': '0x0100', 'input_clusters': ['0x0000', '0x0003', '0x0004', '0x0005', '0x0006', '0x000f', '0xfc01'], 'output_clusters': ['0x0000', '0x0005', '0x0006', '0x0019', '0xfc01']}, 242: {'profile_id': '0xa1e0', 'device_type': '0x0066', 'input_clusters': ['0x0021'], 'output_clusters': ['0x0021']}}, 'manufacturer': ' Legrand', 'model': ' Light switch with neutral'}, 'active_coordinator': False, 'entities': [{'entity_id': 'binary_sensor.legrand_4_lights_binary_input', 'name': ' Legrand  Light switch with neutral'}, {'entity_id': 'button.legrand_4_lights_identify', 'name': ' Legrand  Light switch with neutral'}, {'entity_id': 'light.legrand_4_lights_light', 'name': ' Legrand  Light switch with neutral'}, {'entity_id': 'binary_sensor.legrand_4_lights_opening', 'name': ' Legrand  Light switch with neutral'}, {'entity_id': 'select.legrand_4_lights_start_up_behavior', 'name': ' Legrand  Light switch with neutral'}], 'neighbors': [], 'routes': [], 'endpoint_names': [{'name': 'ON_OFF_LIGHT'}, {'name': 'COMBO_BASIC'}], 'user_given_name': 'Legrand - 4 Lights', 'device_reg_id': '4c6bbfbabca684c73bfe37ac8b568a62', 'area_id': 'kitchen'}]]

What version of Home Assistant Core has the issue?

core-2024.1.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Zigbee Home Assistant (ZHA)

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

m4r1k avatar Feb 08 '24 13:02 m4r1k

Hey there @dmulcahey, @adminiuga, @puddly, @thejulianjes, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of zha can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign zha Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

home-assistant[bot] avatar Feb 08 '24 13:02 home-assistant[bot]

BTW I'm easily able to test patches to verify the functionality once has been implemented

m4r1k avatar Feb 08 '24 13:02 m4r1k

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 Home Assistant 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.