Closed Xantafel closed 4 weeks 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.
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!
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
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
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?
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!!!
can you post the signature for this device please?
Is it that?
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:
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.
This should be fixed in .2 which was released yesterday.
Yes. After updating to version 2024.8.2, switch entities are visible again. Thank you.
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