mirror of
https://github.com/home-assistant/core.git
synced 2026-08-31 18:24:50 -05:00
Add fixture for Tuya INTELAR IR288 (#171412)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
epenet
parent
7919330ae0
commit
592154bd27
@@ -0,0 +1,210 @@
|
||||
{
|
||||
"endpoint": "https://apigw.tuyaus.com",
|
||||
"mqtt_connected": true,
|
||||
"disabled_by": null,
|
||||
"disabled_polling": false,
|
||||
"name": "INTELAR IR288",
|
||||
"category": "tzc1",
|
||||
"product_id": "5vlawhjm",
|
||||
"product_name": "INTELAR IR288",
|
||||
"online": false,
|
||||
"sub": false,
|
||||
"time_zone": "-03:00",
|
||||
"active_time": "2024-05-16T01:44:36+00:00",
|
||||
"create_time": "2024-05-16T01:44:36+00:00",
|
||||
"update_time": "2024-05-16T01:44:36+00:00",
|
||||
"function": {
|
||||
"unit_switch": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["kg", "lb", "st"]
|
||||
}
|
||||
},
|
||||
"data_report": {
|
||||
"type": "Raw",
|
||||
"value": {}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"weight": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "kg",
|
||||
"min": 0,
|
||||
"max": 18300,
|
||||
"scale": 2,
|
||||
"step": 1
|
||||
},
|
||||
"report_type": null
|
||||
},
|
||||
"body_r": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "欧姆",
|
||||
"min": 0,
|
||||
"max": 65535,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
},
|
||||
"report_type": null
|
||||
},
|
||||
"realtime_data": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "kg",
|
||||
"min": 0,
|
||||
"max": 18300,
|
||||
"scale": 2,
|
||||
"step": 1
|
||||
},
|
||||
"report_type": null
|
||||
},
|
||||
"data_identification": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["reserve_1"]
|
||||
},
|
||||
"report_type": null
|
||||
},
|
||||
"unit_switch": {
|
||||
"type": "Enum",
|
||||
"value": {
|
||||
"range": ["kg", "lb", "st"]
|
||||
},
|
||||
"report_type": null
|
||||
},
|
||||
"heart_rate": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"min": 1,
|
||||
"max": 300,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
},
|
||||
"report_type": null
|
||||
},
|
||||
"data_report": {
|
||||
"type": "Raw",
|
||||
"value": {},
|
||||
"report_type": null
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"weight": 9090,
|
||||
"body_r": 0,
|
||||
"realtime_data": 8300,
|
||||
"data_identification": "reserve_1",
|
||||
"unit_switch": "kg",
|
||||
"heart_rate": 93,
|
||||
"data_report": "ATE4ZGFhMTcwNzYwMWMwMDABxSBsAF0="
|
||||
},
|
||||
"set_up": false,
|
||||
"support_local": true,
|
||||
"local_strategy": {
|
||||
"1": {
|
||||
"value_convert": "default",
|
||||
"status_code": "weight",
|
||||
"config_item": {
|
||||
"statusFormat": "{\"weight\":\"$\"}",
|
||||
"valueDesc": {
|
||||
"unit": "kg",
|
||||
"min": 0,
|
||||
"max": 18300,
|
||||
"scale": 2,
|
||||
"step": 1
|
||||
},
|
||||
"valueType": "Integer",
|
||||
"enumMappingMap": {},
|
||||
"pid": "5vlawhjm"
|
||||
}
|
||||
},
|
||||
"7": {
|
||||
"value_convert": "default",
|
||||
"status_code": "body_r",
|
||||
"config_item": {
|
||||
"statusFormat": "{\"body_r\":\"$\"}",
|
||||
"valueDesc": {
|
||||
"unit": "欧姆",
|
||||
"min": 0,
|
||||
"max": 65535,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
},
|
||||
"valueType": "Integer",
|
||||
"enumMappingMap": {},
|
||||
"pid": "5vlawhjm"
|
||||
}
|
||||
},
|
||||
"9": {
|
||||
"value_convert": "default",
|
||||
"status_code": "realtime_data",
|
||||
"config_item": {
|
||||
"statusFormat": "{\"realtime_data\":\"$\"}",
|
||||
"valueDesc": {
|
||||
"unit": "kg",
|
||||
"min": 0,
|
||||
"max": 18300,
|
||||
"scale": 2,
|
||||
"step": 1
|
||||
},
|
||||
"valueType": "Integer",
|
||||
"enumMappingMap": {},
|
||||
"pid": "5vlawhjm"
|
||||
}
|
||||
},
|
||||
"10": {
|
||||
"value_convert": "default",
|
||||
"status_code": "data_identification",
|
||||
"config_item": {
|
||||
"statusFormat": "{\"data_identification\":\"$\"}",
|
||||
"valueDesc": {
|
||||
"range": ["reserve_1"]
|
||||
},
|
||||
"valueType": "Enum",
|
||||
"enumMappingMap": {},
|
||||
"pid": "5vlawhjm"
|
||||
}
|
||||
},
|
||||
"11": {
|
||||
"value_convert": "default",
|
||||
"status_code": "unit_switch",
|
||||
"config_item": {
|
||||
"statusFormat": "{\"unit_switch\":\"$\"}",
|
||||
"valueDesc": {
|
||||
"range": ["kg", "lb", "st"]
|
||||
},
|
||||
"valueType": "Enum",
|
||||
"enumMappingMap": {},
|
||||
"pid": "5vlawhjm"
|
||||
}
|
||||
},
|
||||
"12": {
|
||||
"value_convert": "default",
|
||||
"status_code": "heart_rate",
|
||||
"config_item": {
|
||||
"statusFormat": "{\"heart_rate\":\"$\"}",
|
||||
"valueDesc": {
|
||||
"min": 1,
|
||||
"max": 300,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
},
|
||||
"valueType": "Integer",
|
||||
"enumMappingMap": {},
|
||||
"pid": "5vlawhjm"
|
||||
}
|
||||
},
|
||||
"15": {
|
||||
"value_convert": "default",
|
||||
"status_code": "data_report",
|
||||
"config_item": {
|
||||
"statusFormat": "{\"data_report\":\"$\"}",
|
||||
"valueDesc": {},
|
||||
"valueType": "Raw",
|
||||
"enumMappingMap": {},
|
||||
"pid": "5vlawhjm"
|
||||
}
|
||||
}
|
||||
},
|
||||
"warnings": null
|
||||
}
|
||||
@@ -5734,6 +5734,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[mjhwalv51czt]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
'config_entries': <ANY>,
|
||||
'config_entries_subentries': <ANY>,
|
||||
'configuration_url': None,
|
||||
'connections': set({
|
||||
}),
|
||||
'disabled_by': None,
|
||||
'entry_type': None,
|
||||
'hw_version': None,
|
||||
'id': <ANY>,
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'tuya',
|
||||
'mjhwalv51czt',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': 'INTELAR IR288 (unsupported)',
|
||||
'model_id': '5vlawhjm',
|
||||
'name': 'INTELAR IR288',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[mpowx36sgqexmtes2gw]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
|
||||
Reference in New Issue
Block a user