Use snapshot assertion in homekit_controller diagnostics tests (#105647)
This commit is contained in:
parent
485a02c89d
commit
0694ff8965
2 changed files with 644 additions and 526 deletions
|
@ -0,0 +1,635 @@
|
||||||
|
# serializer version: 1
|
||||||
|
# name: test_config_entry
|
||||||
|
dict({
|
||||||
|
'config-entry': dict({
|
||||||
|
'data': dict({
|
||||||
|
'AccessoryPairingID': '00:00:00:00:00:00',
|
||||||
|
}),
|
||||||
|
'title': 'test',
|
||||||
|
'version': 1,
|
||||||
|
}),
|
||||||
|
'config-num': 0,
|
||||||
|
'devices': list([
|
||||||
|
dict({
|
||||||
|
'entities': list([
|
||||||
|
dict({
|
||||||
|
'device_class': None,
|
||||||
|
'disabled': False,
|
||||||
|
'disabled_by': None,
|
||||||
|
'entity_category': 'diagnostic',
|
||||||
|
'icon': None,
|
||||||
|
'original_device_class': None,
|
||||||
|
'original_icon': None,
|
||||||
|
'original_name': 'Koogeek-LS1-20833F Identify',
|
||||||
|
'state': dict({
|
||||||
|
'attributes': dict({
|
||||||
|
'friendly_name': 'Koogeek-LS1-20833F Identify',
|
||||||
|
}),
|
||||||
|
'entity_id': 'button.koogeek_ls1_20833f_identify',
|
||||||
|
'state': 'unknown',
|
||||||
|
}),
|
||||||
|
'unit_of_measurement': None,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'device_class': None,
|
||||||
|
'disabled': False,
|
||||||
|
'disabled_by': None,
|
||||||
|
'entity_category': None,
|
||||||
|
'icon': None,
|
||||||
|
'original_device_class': None,
|
||||||
|
'original_icon': None,
|
||||||
|
'original_name': 'Koogeek-LS1-20833F Light Strip',
|
||||||
|
'state': dict({
|
||||||
|
'attributes': dict({
|
||||||
|
'brightness': None,
|
||||||
|
'color_mode': None,
|
||||||
|
'friendly_name': 'Koogeek-LS1-20833F Light Strip',
|
||||||
|
'hs_color': None,
|
||||||
|
'rgb_color': None,
|
||||||
|
'supported_color_modes': list([
|
||||||
|
'hs',
|
||||||
|
]),
|
||||||
|
'supported_features': 0,
|
||||||
|
'xy_color': None,
|
||||||
|
}),
|
||||||
|
'entity_id': 'light.koogeek_ls1_20833f_light_strip',
|
||||||
|
'state': 'off',
|
||||||
|
}),
|
||||||
|
'unit_of_measurement': None,
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'hw_version': '',
|
||||||
|
'manfacturer': 'Koogeek',
|
||||||
|
'model': 'LS1',
|
||||||
|
'name': 'Koogeek-LS1-20833F',
|
||||||
|
'sw_version': '2.2.15',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'entity-map': list([
|
||||||
|
dict({
|
||||||
|
'aid': 1,
|
||||||
|
'services': list([
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'Name',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 2,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000023-0000-1000-8000-0026BB765291',
|
||||||
|
'value': 'Koogeek-LS1-20833F',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Manufacturer',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 3,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000020-0000-1000-8000-0026BB765291',
|
||||||
|
'value': 'Koogeek',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Model',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 4,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000021-0000-1000-8000-0026BB765291',
|
||||||
|
'value': 'LS1',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Serial Number',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 5,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000030-0000-1000-8000-0026BB765291',
|
||||||
|
'value': '**REDACTED**',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Identify',
|
||||||
|
'format': 'bool',
|
||||||
|
'iid': 6,
|
||||||
|
'perms': list([
|
||||||
|
'pw',
|
||||||
|
]),
|
||||||
|
'type': '00000014-0000-1000-8000-0026BB765291',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Firmware Revision',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 23,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000052-0000-1000-8000-0026BB765291',
|
||||||
|
'value': '2.2.15',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 1,
|
||||||
|
'type': '0000003E-0000-1000-8000-0026BB765291',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'On',
|
||||||
|
'format': 'bool',
|
||||||
|
'iid': 8,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
'ev',
|
||||||
|
]),
|
||||||
|
'type': '00000025-0000-1000-8000-0026BB765291',
|
||||||
|
'value': False,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Hue',
|
||||||
|
'format': 'float',
|
||||||
|
'iid': 9,
|
||||||
|
'maxValue': 359,
|
||||||
|
'minStep': 1,
|
||||||
|
'minValue': 0,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
'ev',
|
||||||
|
]),
|
||||||
|
'type': '00000013-0000-1000-8000-0026BB765291',
|
||||||
|
'unit': 'arcdegrees',
|
||||||
|
'value': 44,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Saturation',
|
||||||
|
'format': 'float',
|
||||||
|
'iid': 10,
|
||||||
|
'maxValue': 100,
|
||||||
|
'minStep': 1,
|
||||||
|
'minValue': 0,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
'ev',
|
||||||
|
]),
|
||||||
|
'type': '0000002F-0000-1000-8000-0026BB765291',
|
||||||
|
'unit': 'percentage',
|
||||||
|
'value': 0,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Brightness',
|
||||||
|
'format': 'int',
|
||||||
|
'iid': 11,
|
||||||
|
'maxValue': 100,
|
||||||
|
'minStep': 1,
|
||||||
|
'minValue': 0,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
'ev',
|
||||||
|
]),
|
||||||
|
'type': '00000008-0000-1000-8000-0026BB765291',
|
||||||
|
'unit': 'percentage',
|
||||||
|
'value': 100,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Name',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 12,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000023-0000-1000-8000-0026BB765291',
|
||||||
|
'value': 'Light Strip',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 7,
|
||||||
|
'type': '00000043-0000-1000-8000-0026BB765291',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'TIMER_SETTINGS',
|
||||||
|
'format': 'tlv8',
|
||||||
|
'iid': 14,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
]),
|
||||||
|
'type': '4AAAF942-0DEC-11E5-B939-0800200C9A66',
|
||||||
|
'value': 'AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 13,
|
||||||
|
'type': '4AAAF940-0DEC-11E5-B939-0800200C9A66',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'FW Upgrade supported types',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 16,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'hd',
|
||||||
|
]),
|
||||||
|
'type': '151909D2-3802-11E4-916C-0800200C9A66',
|
||||||
|
'value': 'url,data',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'FW Upgrade URL',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 17,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pw',
|
||||||
|
'hd',
|
||||||
|
]),
|
||||||
|
'type': '151909D1-3802-11E4-916C-0800200C9A66',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'FW Upgrade Status',
|
||||||
|
'format': 'int',
|
||||||
|
'iid': 18,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'ev',
|
||||||
|
'hd',
|
||||||
|
]),
|
||||||
|
'type': '151909D6-3802-11E4-916C-0800200C9A66',
|
||||||
|
'value': 0,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'FW Upgrade Data',
|
||||||
|
'format': 'data',
|
||||||
|
'iid': 19,
|
||||||
|
'perms': list([
|
||||||
|
'pw',
|
||||||
|
'hd',
|
||||||
|
]),
|
||||||
|
'type': '151909D7-3802-11E4-916C-0800200C9A66',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 15,
|
||||||
|
'type': '151909D0-3802-11E4-916C-0800200C9A66',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'Timezone',
|
||||||
|
'format': 'int',
|
||||||
|
'iid': 21,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
]),
|
||||||
|
'type': '151909D5-3802-11E4-916C-0800200C9A66',
|
||||||
|
'value': 0,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Time value since Epoch',
|
||||||
|
'format': 'int',
|
||||||
|
'iid': 22,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
]),
|
||||||
|
'type': '151909D4-3802-11E4-916C-0800200C9A66',
|
||||||
|
'value': 1550348623,
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 20,
|
||||||
|
'type': '151909D3-3802-11E4-916C-0800200C9A66',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
})
|
||||||
|
# ---
|
||||||
|
# name: test_device
|
||||||
|
dict({
|
||||||
|
'config-entry': dict({
|
||||||
|
'data': dict({
|
||||||
|
'AccessoryPairingID': '00:00:00:00:00:00',
|
||||||
|
}),
|
||||||
|
'title': 'test',
|
||||||
|
'version': 1,
|
||||||
|
}),
|
||||||
|
'config-num': 0,
|
||||||
|
'device': dict({
|
||||||
|
'entities': list([
|
||||||
|
dict({
|
||||||
|
'device_class': None,
|
||||||
|
'disabled': False,
|
||||||
|
'disabled_by': None,
|
||||||
|
'entity_category': 'diagnostic',
|
||||||
|
'icon': None,
|
||||||
|
'original_device_class': None,
|
||||||
|
'original_icon': None,
|
||||||
|
'original_name': 'Koogeek-LS1-20833F Identify',
|
||||||
|
'state': dict({
|
||||||
|
'attributes': dict({
|
||||||
|
'friendly_name': 'Koogeek-LS1-20833F Identify',
|
||||||
|
}),
|
||||||
|
'entity_id': 'button.koogeek_ls1_20833f_identify',
|
||||||
|
'state': 'unknown',
|
||||||
|
}),
|
||||||
|
'unit_of_measurement': None,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'device_class': None,
|
||||||
|
'disabled': False,
|
||||||
|
'disabled_by': None,
|
||||||
|
'entity_category': None,
|
||||||
|
'icon': None,
|
||||||
|
'original_device_class': None,
|
||||||
|
'original_icon': None,
|
||||||
|
'original_name': 'Koogeek-LS1-20833F Light Strip',
|
||||||
|
'state': dict({
|
||||||
|
'attributes': dict({
|
||||||
|
'brightness': None,
|
||||||
|
'color_mode': None,
|
||||||
|
'friendly_name': 'Koogeek-LS1-20833F Light Strip',
|
||||||
|
'hs_color': None,
|
||||||
|
'rgb_color': None,
|
||||||
|
'supported_color_modes': list([
|
||||||
|
'hs',
|
||||||
|
]),
|
||||||
|
'supported_features': 0,
|
||||||
|
'xy_color': None,
|
||||||
|
}),
|
||||||
|
'entity_id': 'light.koogeek_ls1_20833f_light_strip',
|
||||||
|
'state': 'off',
|
||||||
|
}),
|
||||||
|
'unit_of_measurement': None,
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'hw_version': '',
|
||||||
|
'manfacturer': 'Koogeek',
|
||||||
|
'model': 'LS1',
|
||||||
|
'name': 'Koogeek-LS1-20833F',
|
||||||
|
'sw_version': '2.2.15',
|
||||||
|
}),
|
||||||
|
'entity-map': list([
|
||||||
|
dict({
|
||||||
|
'aid': 1,
|
||||||
|
'services': list([
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'Name',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 2,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000023-0000-1000-8000-0026BB765291',
|
||||||
|
'value': 'Koogeek-LS1-20833F',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Manufacturer',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 3,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000020-0000-1000-8000-0026BB765291',
|
||||||
|
'value': 'Koogeek',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Model',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 4,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000021-0000-1000-8000-0026BB765291',
|
||||||
|
'value': 'LS1',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Serial Number',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 5,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000030-0000-1000-8000-0026BB765291',
|
||||||
|
'value': '**REDACTED**',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Identify',
|
||||||
|
'format': 'bool',
|
||||||
|
'iid': 6,
|
||||||
|
'perms': list([
|
||||||
|
'pw',
|
||||||
|
]),
|
||||||
|
'type': '00000014-0000-1000-8000-0026BB765291',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Firmware Revision',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 23,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000052-0000-1000-8000-0026BB765291',
|
||||||
|
'value': '2.2.15',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 1,
|
||||||
|
'type': '0000003E-0000-1000-8000-0026BB765291',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'On',
|
||||||
|
'format': 'bool',
|
||||||
|
'iid': 8,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
'ev',
|
||||||
|
]),
|
||||||
|
'type': '00000025-0000-1000-8000-0026BB765291',
|
||||||
|
'value': False,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Hue',
|
||||||
|
'format': 'float',
|
||||||
|
'iid': 9,
|
||||||
|
'maxValue': 359,
|
||||||
|
'minStep': 1,
|
||||||
|
'minValue': 0,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
'ev',
|
||||||
|
]),
|
||||||
|
'type': '00000013-0000-1000-8000-0026BB765291',
|
||||||
|
'unit': 'arcdegrees',
|
||||||
|
'value': 44,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Saturation',
|
||||||
|
'format': 'float',
|
||||||
|
'iid': 10,
|
||||||
|
'maxValue': 100,
|
||||||
|
'minStep': 1,
|
||||||
|
'minValue': 0,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
'ev',
|
||||||
|
]),
|
||||||
|
'type': '0000002F-0000-1000-8000-0026BB765291',
|
||||||
|
'unit': 'percentage',
|
||||||
|
'value': 0,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Brightness',
|
||||||
|
'format': 'int',
|
||||||
|
'iid': 11,
|
||||||
|
'maxValue': 100,
|
||||||
|
'minStep': 1,
|
||||||
|
'minValue': 0,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
'ev',
|
||||||
|
]),
|
||||||
|
'type': '00000008-0000-1000-8000-0026BB765291',
|
||||||
|
'unit': 'percentage',
|
||||||
|
'value': 100,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Name',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 12,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
]),
|
||||||
|
'type': '00000023-0000-1000-8000-0026BB765291',
|
||||||
|
'value': 'Light Strip',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 7,
|
||||||
|
'type': '00000043-0000-1000-8000-0026BB765291',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'TIMER_SETTINGS',
|
||||||
|
'format': 'tlv8',
|
||||||
|
'iid': 14,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
]),
|
||||||
|
'type': '4AAAF942-0DEC-11E5-B939-0800200C9A66',
|
||||||
|
'value': 'AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 13,
|
||||||
|
'type': '4AAAF940-0DEC-11E5-B939-0800200C9A66',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'FW Upgrade supported types',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 16,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'hd',
|
||||||
|
]),
|
||||||
|
'type': '151909D2-3802-11E4-916C-0800200C9A66',
|
||||||
|
'value': 'url,data',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'FW Upgrade URL',
|
||||||
|
'format': 'string',
|
||||||
|
'iid': 17,
|
||||||
|
'maxLen': 64,
|
||||||
|
'perms': list([
|
||||||
|
'pw',
|
||||||
|
'hd',
|
||||||
|
]),
|
||||||
|
'type': '151909D1-3802-11E4-916C-0800200C9A66',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'FW Upgrade Status',
|
||||||
|
'format': 'int',
|
||||||
|
'iid': 18,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'ev',
|
||||||
|
'hd',
|
||||||
|
]),
|
||||||
|
'type': '151909D6-3802-11E4-916C-0800200C9A66',
|
||||||
|
'value': 0,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'FW Upgrade Data',
|
||||||
|
'format': 'data',
|
||||||
|
'iid': 19,
|
||||||
|
'perms': list([
|
||||||
|
'pw',
|
||||||
|
'hd',
|
||||||
|
]),
|
||||||
|
'type': '151909D7-3802-11E4-916C-0800200C9A66',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 15,
|
||||||
|
'type': '151909D0-3802-11E4-916C-0800200C9A66',
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'characteristics': list([
|
||||||
|
dict({
|
||||||
|
'description': 'Timezone',
|
||||||
|
'format': 'int',
|
||||||
|
'iid': 21,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
]),
|
||||||
|
'type': '151909D5-3802-11E4-916C-0800200C9A66',
|
||||||
|
'value': 0,
|
||||||
|
}),
|
||||||
|
dict({
|
||||||
|
'description': 'Time value since Epoch',
|
||||||
|
'format': 'int',
|
||||||
|
'iid': 22,
|
||||||
|
'perms': list([
|
||||||
|
'pr',
|
||||||
|
'pw',
|
||||||
|
]),
|
||||||
|
'type': '151909D4-3802-11E4-916C-0800200C9A66',
|
||||||
|
'value': 1550348623,
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
'iid': 20,
|
||||||
|
'type': '151909D3-3802-11E4-916C-0800200C9A66',
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
})
|
||||||
|
# ---
|
|
@ -1,5 +1,7 @@
|
||||||
"""Test homekit_controller diagnostics."""
|
"""Test homekit_controller diagnostics."""
|
||||||
from unittest.mock import ANY
|
|
||||||
|
from syrupy import SnapshotAssertion
|
||||||
|
from syrupy.filters import props
|
||||||
|
|
||||||
from homeassistant.components.homekit_controller.const import KNOWN_DEVICES
|
from homeassistant.components.homekit_controller.const import KNOWN_DEVICES
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -15,7 +17,9 @@ from tests.typing import ClientSessionGenerator
|
||||||
|
|
||||||
|
|
||||||
async def test_config_entry(
|
async def test_config_entry(
|
||||||
hass: HomeAssistant, hass_client: ClientSessionGenerator
|
hass: HomeAssistant,
|
||||||
|
hass_client: ClientSessionGenerator,
|
||||||
|
snapshot: SnapshotAssertion,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test generating diagnostics for a config entry."""
|
"""Test generating diagnostics for a config entry."""
|
||||||
accessories = await setup_accessories_from_file(hass, "koogeek_ls1.json")
|
accessories = await setup_accessories_from_file(hass, "koogeek_ls1.json")
|
||||||
|
@ -23,276 +27,14 @@ async def test_config_entry(
|
||||||
|
|
||||||
diag = await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
|
diag = await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
|
||||||
|
|
||||||
assert diag == {
|
assert diag == snapshot(exclude=props("last_updated", "last_changed"))
|
||||||
"config-entry": {
|
|
||||||
"title": "test",
|
|
||||||
"version": 1,
|
|
||||||
"data": {"AccessoryPairingID": "00:00:00:00:00:00"},
|
|
||||||
},
|
|
||||||
"config-num": 0,
|
|
||||||
"entity-map": [
|
|
||||||
{
|
|
||||||
"aid": 1,
|
|
||||||
"services": [
|
|
||||||
{
|
|
||||||
"iid": 1,
|
|
||||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 2,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "Koogeek-LS1-20833F",
|
|
||||||
"description": "Name",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 3,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "Koogeek",
|
|
||||||
"description": "Manufacturer",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 4,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "LS1",
|
|
||||||
"description": "Model",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 5,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "**REDACTED**",
|
|
||||||
"description": "Serial Number",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 6,
|
|
||||||
"perms": ["pw"],
|
|
||||||
"format": "bool",
|
|
||||||
"description": "Identify",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 23,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "2.2.15",
|
|
||||||
"description": "Firmware Revision",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iid": 7,
|
|
||||||
"type": "00000043-0000-1000-8000-0026BB765291",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 8,
|
|
||||||
"perms": ["pr", "pw", "ev"],
|
|
||||||
"format": "bool",
|
|
||||||
"value": False,
|
|
||||||
"description": "On",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000013-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 9,
|
|
||||||
"perms": ["pr", "pw", "ev"],
|
|
||||||
"format": "float",
|
|
||||||
"value": 44,
|
|
||||||
"description": "Hue",
|
|
||||||
"unit": "arcdegrees",
|
|
||||||
"minValue": 0,
|
|
||||||
"maxValue": 359,
|
|
||||||
"minStep": 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "0000002F-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 10,
|
|
||||||
"perms": ["pr", "pw", "ev"],
|
|
||||||
"format": "float",
|
|
||||||
"value": 0,
|
|
||||||
"description": "Saturation",
|
|
||||||
"unit": "percentage",
|
|
||||||
"minValue": 0,
|
|
||||||
"maxValue": 100,
|
|
||||||
"minStep": 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000008-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 11,
|
|
||||||
"perms": ["pr", "pw", "ev"],
|
|
||||||
"format": "int",
|
|
||||||
"value": 100,
|
|
||||||
"description": "Brightness",
|
|
||||||
"unit": "percentage",
|
|
||||||
"minValue": 0,
|
|
||||||
"maxValue": 100,
|
|
||||||
"minStep": 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 12,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "Light Strip",
|
|
||||||
"description": "Name",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iid": 13,
|
|
||||||
"type": "4AAAF940-0DEC-11E5-B939-0800200C9A66",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "4AAAF942-0DEC-11E5-B939-0800200C9A66",
|
|
||||||
"iid": 14,
|
|
||||||
"perms": ["pr", "pw"],
|
|
||||||
"format": "tlv8",
|
|
||||||
"value": "AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
||||||
"description": "TIMER_SETTINGS",
|
|
||||||
}
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iid": 15,
|
|
||||||
"type": "151909D0-3802-11E4-916C-0800200C9A66",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "151909D2-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 16,
|
|
||||||
"perms": ["pr", "hd"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "url,data",
|
|
||||||
"description": "FW Upgrade supported types",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "151909D1-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 17,
|
|
||||||
"perms": ["pw", "hd"],
|
|
||||||
"format": "string",
|
|
||||||
"description": "FW Upgrade URL",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "151909D6-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 18,
|
|
||||||
"perms": ["pr", "ev", "hd"],
|
|
||||||
"format": "int",
|
|
||||||
"value": 0,
|
|
||||||
"description": "FW Upgrade Status",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "151909D7-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 19,
|
|
||||||
"perms": ["pw", "hd"],
|
|
||||||
"format": "data",
|
|
||||||
"description": "FW Upgrade Data",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iid": 20,
|
|
||||||
"type": "151909D3-3802-11E4-916C-0800200C9A66",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "151909D5-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 21,
|
|
||||||
"perms": ["pr", "pw"],
|
|
||||||
"format": "int",
|
|
||||||
"value": 0,
|
|
||||||
"description": "Timezone",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "151909D4-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 22,
|
|
||||||
"perms": ["pr", "pw"],
|
|
||||||
"format": "int",
|
|
||||||
"value": 1550348623,
|
|
||||||
"description": "Time value since Epoch",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"devices": [
|
|
||||||
{
|
|
||||||
"name": "Koogeek-LS1-20833F",
|
|
||||||
"model": "LS1",
|
|
||||||
"manfacturer": "Koogeek",
|
|
||||||
"sw_version": "2.2.15",
|
|
||||||
"hw_version": "",
|
|
||||||
"entities": [
|
|
||||||
{
|
|
||||||
"device_class": None,
|
|
||||||
"disabled": False,
|
|
||||||
"disabled_by": None,
|
|
||||||
"entity_category": "diagnostic",
|
|
||||||
"icon": None,
|
|
||||||
"original_device_class": None,
|
|
||||||
"original_icon": None,
|
|
||||||
"original_name": "Koogeek-LS1-20833F Identify",
|
|
||||||
"state": {
|
|
||||||
"attributes": {
|
|
||||||
"friendly_name": "Koogeek-LS1-20833F Identify"
|
|
||||||
},
|
|
||||||
"entity_id": "button.koogeek_ls1_20833f_identify",
|
|
||||||
"last_changed": ANY,
|
|
||||||
"last_updated": ANY,
|
|
||||||
"state": "unknown",
|
|
||||||
},
|
|
||||||
"unit_of_measurement": None,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"device_class": None,
|
|
||||||
"disabled": False,
|
|
||||||
"disabled_by": None,
|
|
||||||
"entity_category": None,
|
|
||||||
"icon": None,
|
|
||||||
"original_device_class": None,
|
|
||||||
"original_icon": None,
|
|
||||||
"original_name": "Koogeek-LS1-20833F Light Strip",
|
|
||||||
"state": {
|
|
||||||
"attributes": {
|
|
||||||
"friendly_name": "Koogeek-LS1-20833F Light Strip",
|
|
||||||
"supported_color_modes": ["hs"],
|
|
||||||
"supported_features": 0,
|
|
||||||
"brightness": None,
|
|
||||||
"color_mode": None,
|
|
||||||
"hs_color": None,
|
|
||||||
"rgb_color": None,
|
|
||||||
"xy_color": None,
|
|
||||||
},
|
|
||||||
"entity_id": "light.koogeek_ls1_20833f_light_strip",
|
|
||||||
"last_changed": ANY,
|
|
||||||
"last_updated": ANY,
|
|
||||||
"state": "off",
|
|
||||||
},
|
|
||||||
"unit_of_measurement": None,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
async def test_device(
|
async def test_device(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
hass_client: ClientSessionGenerator,
|
hass_client: ClientSessionGenerator,
|
||||||
device_registry: dr.DeviceRegistry,
|
device_registry: dr.DeviceRegistry,
|
||||||
|
snapshot: SnapshotAssertion,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test generating diagnostics for a device entry."""
|
"""Test generating diagnostics for a device entry."""
|
||||||
accessories = await setup_accessories_from_file(hass, "koogeek_ls1.json")
|
accessories = await setup_accessories_from_file(hass, "koogeek_ls1.json")
|
||||||
|
@ -303,263 +45,4 @@ async def test_device(
|
||||||
|
|
||||||
diag = await get_diagnostics_for_device(hass, hass_client, config_entry, device)
|
diag = await get_diagnostics_for_device(hass, hass_client, config_entry, device)
|
||||||
|
|
||||||
assert diag == {
|
assert diag == snapshot(exclude=props("last_updated", "last_changed"))
|
||||||
"config-entry": {
|
|
||||||
"title": "test",
|
|
||||||
"version": 1,
|
|
||||||
"data": {"AccessoryPairingID": "00:00:00:00:00:00"},
|
|
||||||
},
|
|
||||||
"config-num": 0,
|
|
||||||
"entity-map": [
|
|
||||||
{
|
|
||||||
"aid": 1,
|
|
||||||
"services": [
|
|
||||||
{
|
|
||||||
"iid": 1,
|
|
||||||
"type": "0000003E-0000-1000-8000-0026BB765291",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 2,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "Koogeek-LS1-20833F",
|
|
||||||
"description": "Name",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000020-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 3,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "Koogeek",
|
|
||||||
"description": "Manufacturer",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000021-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 4,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "LS1",
|
|
||||||
"description": "Model",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000030-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 5,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "**REDACTED**",
|
|
||||||
"description": "Serial Number",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000014-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 6,
|
|
||||||
"perms": ["pw"],
|
|
||||||
"format": "bool",
|
|
||||||
"description": "Identify",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000052-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 23,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "2.2.15",
|
|
||||||
"description": "Firmware Revision",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iid": 7,
|
|
||||||
"type": "00000043-0000-1000-8000-0026BB765291",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "00000025-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 8,
|
|
||||||
"perms": ["pr", "pw", "ev"],
|
|
||||||
"format": "bool",
|
|
||||||
"value": False,
|
|
||||||
"description": "On",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000013-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 9,
|
|
||||||
"perms": ["pr", "pw", "ev"],
|
|
||||||
"format": "float",
|
|
||||||
"value": 44,
|
|
||||||
"description": "Hue",
|
|
||||||
"unit": "arcdegrees",
|
|
||||||
"minValue": 0,
|
|
||||||
"maxValue": 359,
|
|
||||||
"minStep": 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "0000002F-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 10,
|
|
||||||
"perms": ["pr", "pw", "ev"],
|
|
||||||
"format": "float",
|
|
||||||
"value": 0,
|
|
||||||
"description": "Saturation",
|
|
||||||
"unit": "percentage",
|
|
||||||
"minValue": 0,
|
|
||||||
"maxValue": 100,
|
|
||||||
"minStep": 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000008-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 11,
|
|
||||||
"perms": ["pr", "pw", "ev"],
|
|
||||||
"format": "int",
|
|
||||||
"value": 100,
|
|
||||||
"description": "Brightness",
|
|
||||||
"unit": "percentage",
|
|
||||||
"minValue": 0,
|
|
||||||
"maxValue": 100,
|
|
||||||
"minStep": 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "00000023-0000-1000-8000-0026BB765291",
|
|
||||||
"iid": 12,
|
|
||||||
"perms": ["pr"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "Light Strip",
|
|
||||||
"description": "Name",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iid": 13,
|
|
||||||
"type": "4AAAF940-0DEC-11E5-B939-0800200C9A66",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "4AAAF942-0DEC-11E5-B939-0800200C9A66",
|
|
||||||
"iid": 14,
|
|
||||||
"perms": ["pr", "pw"],
|
|
||||||
"format": "tlv8",
|
|
||||||
"value": "AHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
||||||
"description": "TIMER_SETTINGS",
|
|
||||||
}
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iid": 15,
|
|
||||||
"type": "151909D0-3802-11E4-916C-0800200C9A66",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "151909D2-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 16,
|
|
||||||
"perms": ["pr", "hd"],
|
|
||||||
"format": "string",
|
|
||||||
"value": "url,data",
|
|
||||||
"description": "FW Upgrade supported types",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "151909D1-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 17,
|
|
||||||
"perms": ["pw", "hd"],
|
|
||||||
"format": "string",
|
|
||||||
"description": "FW Upgrade URL",
|
|
||||||
"maxLen": 64,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "151909D6-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 18,
|
|
||||||
"perms": ["pr", "ev", "hd"],
|
|
||||||
"format": "int",
|
|
||||||
"value": 0,
|
|
||||||
"description": "FW Upgrade Status",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "151909D7-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 19,
|
|
||||||
"perms": ["pw", "hd"],
|
|
||||||
"format": "data",
|
|
||||||
"description": "FW Upgrade Data",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iid": 20,
|
|
||||||
"type": "151909D3-3802-11E4-916C-0800200C9A66",
|
|
||||||
"characteristics": [
|
|
||||||
{
|
|
||||||
"type": "151909D5-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 21,
|
|
||||||
"perms": ["pr", "pw"],
|
|
||||||
"format": "int",
|
|
||||||
"value": 0,
|
|
||||||
"description": "Timezone",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "151909D4-3802-11E4-916C-0800200C9A66",
|
|
||||||
"iid": 22,
|
|
||||||
"perms": ["pr", "pw"],
|
|
||||||
"format": "int",
|
|
||||||
"value": 1550348623,
|
|
||||||
"description": "Time value since Epoch",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"device": {
|
|
||||||
"name": "Koogeek-LS1-20833F",
|
|
||||||
"model": "LS1",
|
|
||||||
"manfacturer": "Koogeek",
|
|
||||||
"sw_version": "2.2.15",
|
|
||||||
"hw_version": "",
|
|
||||||
"entities": [
|
|
||||||
{
|
|
||||||
"device_class": None,
|
|
||||||
"disabled": False,
|
|
||||||
"disabled_by": None,
|
|
||||||
"entity_category": "diagnostic",
|
|
||||||
"icon": None,
|
|
||||||
"original_device_class": None,
|
|
||||||
"original_icon": None,
|
|
||||||
"original_name": "Koogeek-LS1-20833F Identify",
|
|
||||||
"state": {
|
|
||||||
"attributes": {"friendly_name": "Koogeek-LS1-20833F Identify"},
|
|
||||||
"entity_id": "button.koogeek_ls1_20833f_identify",
|
|
||||||
"last_changed": ANY,
|
|
||||||
"last_updated": ANY,
|
|
||||||
"state": "unknown",
|
|
||||||
},
|
|
||||||
"unit_of_measurement": None,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"device_class": None,
|
|
||||||
"disabled": False,
|
|
||||||
"disabled_by": None,
|
|
||||||
"entity_category": None,
|
|
||||||
"icon": None,
|
|
||||||
"original_device_class": None,
|
|
||||||
"original_icon": None,
|
|
||||||
"original_name": "Koogeek-LS1-20833F Light Strip",
|
|
||||||
"state": {
|
|
||||||
"attributes": {
|
|
||||||
"friendly_name": "Koogeek-LS1-20833F Light Strip",
|
|
||||||
"supported_color_modes": ["hs"],
|
|
||||||
"supported_features": 0,
|
|
||||||
"brightness": None,
|
|
||||||
"color_mode": None,
|
|
||||||
"hs_color": None,
|
|
||||||
"rgb_color": None,
|
|
||||||
"xy_color": None,
|
|
||||||
},
|
|
||||||
"entity_id": "light.koogeek_ls1_20833f_light_strip",
|
|
||||||
"last_changed": ANY,
|
|
||||||
"last_updated": ANY,
|
|
||||||
"state": "off",
|
|
||||||
},
|
|
||||||
"unit_of_measurement": None,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue