home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.15k stars 29.83k forks source link

After update core to 2024.8 relay card (PTVO firmware) lost switch entities #123387

Closed Xantafel closed 4 weeks ago

Xantafel commented 1 month ago

The problem

I use a relay card based on Ebyte E72 module (c2652p chip) with PTVO firmware to control the floor heating. In the ZHA it is visible as: ptvo.switch, manufacturer ptvo.info. So far the card has provided binary_sensor and switch entities. After updating Core to version 2024.8 all switch entities disappeared, only binary_sensor is visible. Removing and re-adding the device does not change anything. After restoring from a backup of version 2024.7.4, the card reports all entities again.

What version of Home Assistant Core has the issue?

core-2024.8.0

What was the last working version of Home Assistant Core?

core-2024.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

No response

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

dmulcahey commented 1 month ago

please put ZHA in debug mode then reload the integration. Once everything has settled down disable debug mode and attach the downloaded log here please.

home-assistant[bot] commented 1 month ago

Hey there @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)

Xantafel commented 1 month ago

I made two debug records. One from version 2024.7.4 where the relay card is recognized correctly, the other from version 2024.8 where the switch entity is missing. I have two identical ptvo.switch cards. Both should have 6 switch entities (and 6 binary sensor entities) and two with temperature measurement.

Debug log from 2024.8 home-assistant_(2024-800)_zha_2024-08-09T20-23-23.810Z.log

Debug log from 2024.7.4 home-assistant_(2024-7-4)_zha_2024-08-09T20-07-28.116Z.log

dmulcahey commented 1 month ago

image

I am missing something... here is the discovery info for the device. 2024.08 on the left with the lib and 2024.7 on the right. You can tell from the cluster handler class names. There are no switch entities in either version?

dmulcahey commented 1 month ago

image

I am missing something... here is the discovery info for the device. 2024.08 on the left with the lib and 2024.7 on the right. You can tell from the cluster handler class names. There are no switch entities in either version?

2024-08-09 22:23:06.058 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40e17ec0>, unique id '00:12:4b:00:30:c7:69:56-1-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf59180c20>
2024-08-09 22:23:06.058 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:69:56-1-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=1, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='1:0x0006', unique_id='00:12:4b:00:30:c7:69:56:1:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:69:56, endpoint_id=1, available=True, group_id=None)
2024-08-09 22:23:06.058 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1c0b0>, unique id '00:12:4b:00:30:c7:69:56-2-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf591809e0>
2024-08-09 22:23:06.058 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:69:56-2-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=2, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='2:0x0006', unique_id='00:12:4b:00:30:c7:69:56:2:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:69:56, endpoint_id=2, available=True, group_id=None)
2024-08-09 22:23:06.058 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1c260>, unique id '00:12:4b:00:30:c7:69:56-3-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf59180740>
2024-08-09 22:23:06.059 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:69:56-3-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=3, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='3:0x0006', unique_id='00:12:4b:00:30:c7:69:56:3:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:69:56, endpoint_id=3, available=True, group_id=None)
2024-08-09 22:23:06.059 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1c410>, unique id '00:12:4b:00:30:c7:69:56-4-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf59180500>
2024-08-09 22:23:06.059 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:69:56-4-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=4, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='4:0x0006', unique_id='00:12:4b:00:30:c7:69:56:4:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:69:56, endpoint_id=4, available=True, group_id=None)
2024-08-09 22:23:06.059 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1c5c0>, unique id '00:12:4b:00:30:c7:69:56-5-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf591802c0>
2024-08-09 22:23:06.059 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:69:56-5-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=5, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='5:0x0006', unique_id='00:12:4b:00:30:c7:69:56:5:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:69:56, endpoint_id=5, available=True, group_id=None)
2024-08-09 22:23:06.059 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1c770>, unique id '00:12:4b:00:30:c7:69:56-6-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf59181760>
2024-08-09 22:23:06.059 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:69:56-6-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=6, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='6:0x0006', unique_id='00:12:4b:00:30:c7:69:56:6:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:69:56, endpoint_id=6, available=True, group_id=None)
2024-08-09 22:23:06.060 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1c920>, unique id '00:12:4b:00:30:c7:64:6b-1-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf5914dc10>
2024-08-09 22:23:06.060 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:64:6b-1-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=1, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='1:0x0006', unique_id='00:12:4b:00:30:c7:64:6b:1:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:64:6b, endpoint_id=1, available=True, group_id=None)
2024-08-09 22:23:06.060 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1cad0>, unique id '00:12:4b:00:30:c7:64:6b-2-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf5a1ec440>
2024-08-09 22:23:06.060 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:64:6b-2-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=2, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='2:0x0006', unique_id='00:12:4b:00:30:c7:64:6b:2:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:64:6b, endpoint_id=2, available=True, group_id=None)
2024-08-09 22:23:06.060 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1cc80>, unique id '00:12:4b:00:30:c7:64:6b-3-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf59175670>
2024-08-09 22:23:06.060 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:64:6b-3-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=3, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='3:0x0006', unique_id='00:12:4b:00:30:c7:64:6b:3:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:64:6b, endpoint_id=3, available=True, group_id=None)
2024-08-09 22:23:06.060 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1ce30>, unique id '00:12:4b:00:30:c7:64:6b-4-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf40d800b0>
2024-08-09 22:23:06.060 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:64:6b-4-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=4, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='4:0x0006', unique_id='00:12:4b:00:30:c7:64:6b:4:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:64:6b, endpoint_id=4, available=True, group_id=None)
2024-08-09 22:23:06.060 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1cfe0>, unique id '00:12:4b:00:30:c7:64:6b-5-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf40d80140>
2024-08-09 22:23:06.061 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:64:6b-5-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=5, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='5:0x0006', unique_id='00:12:4b:00:30:c7:64:6b:5:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:64:6b, endpoint_id=5, available=True, group_id=None)
2024-08-09 22:23:06.061 DEBUG (MainThread) [zha.application.platforms] Not registering entity <zha.application.platforms.switch.Switch object at 0x7fcf40c1d190>, unique id '00:12:4b:00:30:c7:64:6b-6-6' already exists: <zha.application.platforms.binary_sensor.Opening object at 0x7fcf5913dd30>
2024-08-09 22:23:06.061 DEBUG (MainThread) [zha.application.gateway] Platform entity data: BaseEntityInfo(fallback_name=None, unique_id='00:12:4b:00:30:c7:64:6b-6-6', platform=<Platform.SWITCH: 'switch'>, class_name='Switch', translation_key='switch', device_class=None, state_class=None, entity_category=None, entity_registry_enabled_default=True, cluster_handlers=[ClusterHandlerInfo(class_name='OnOffClusterHandler', generic_id='cluster_handler_0x0006', endpoint_id=6, cluster=ClusterInfo(id=6, name='On/Off', type='server', commands=[ZCLCommandDef(id=0x00, name='off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x40, name='off_with_effect', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.off_with_effect'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x01, name='on', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x41, name='on_with_recall_global_scene', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_recall_global_scene'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x42, name='on_with_timed_off', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.on_with_timed_off'>, is_manufacturer_specific=None), ZCLCommandDef(id=0x02, name='toggle', direction=<Direction.Client_to_Server: 0>, schema=<class 'zigpy.zcl.foundation.toggle'>, is_manufacturer_specific=None)]), id='6:0x0006', unique_id='00:12:4b:00:30:c7:64:6b:6:0x0006', status='CREATED', value_attribute='on_off')], device_ieee=00:12:4b:00:30:c7:64:6b, endpoint_id=6, available=True, group_id=None)

never mind. Thanks a ton for the logs. Very helpful... there is an issue somewhere with unique_ids. We'll get it sorted out. Thanks!!!

dmulcahey commented 1 month ago

can you post the signature for this device please?

Xantafel commented 1 month ago

Is it that? Zrzut ekranu z 2024-08-10 22-16-21 Zrzut ekranu z 2024-08-10 22-16-49

puddly commented 1 month ago

If you're comfortable posting it here, having your /config/zigbee.db file would be very useful (ZIP it first), as it contains everything necessary to have a "copy" of your Zigbee device information. There is no entity information in it, just device attribute information and a backup of your Zigbee network settings. Alternatively, you could email it to me at puddly3@gmail.com.

If not, you can find diagnostics here:

image
Xantafel commented 1 month ago

I am attaching diagnostics downloaded from one device. zha-a10dc443a180e58669037cb47b6af19d-ptvo.info ptvo.switch-ff4e3f7a232c9aba021d37f412813f91.json

I sent the full zigbee.db database to the email address provided.

dmulcahey commented 4 weeks ago

This should be fixed in .2 which was released yesterday.

Xantafel commented 3 weeks ago

Yes. After updating to version 2024.8.2, switch entities are visible again. Thank you.