"""Mock data storage for OXII MCP server."""
MOCK_TOKEN = "mock_token_abc123xyz"
MOCK_ROOMS = [
{
"house_id": 121145,
"room_id": 124446,
"room_name": "Ceiling Fan",
"devices": [
{
"name": "Công tắc chữ nhật trắng 4 nút",
"seriNumber": "MCTRF1",
"device_status": "Đang kết nối"
}
],
"buttons": [
{
"buttonId": 1898,
"name": "tắt đèn",
"button_code": "button02",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 225788,
"seriNumber": "MCTRF1",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1900,
"name": "bật đèn",
"button_code": "button04",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 225788,
"seriNumber": "MCTRF1",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1899,
"name": "tắt quạt",
"button_code": "button03",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 225788,
"seriNumber": "MCTRF1",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1897,
"name": "bật quạt mức 6",
"button_code": "button01",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 225788,
"seriNumber": "MCTRF1",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
}
]
},
{
"house_id": 121145,
"room_id": 123672,
"room_name": "Thiết bị chưa gán phòng",
"devices": [],
"buttons": []
},
{
"house_id": 121145,
"room_id": 125095,
"room_name": "Terrace",
"devices": [],
"buttons": []
},
{
"house_id": 121145,
"room_id": 125096,
"room_name": "reading room",
"devices": [],
"buttons": []
},
{
"house_id": 121145,
"room_id": 124538,
"room_name": "Phòng đọc sách",
"devices": [],
"buttons": []
},
{
"house_id": 121145,
"room_id": 124539,
"room_name": "Living room",
"devices": [
{
"name": "Công tắc vuông đen 4 nút",
"seriNumber": "MCT8LYTGT",
"device_status": "Đang kết nối"
}
],
"buttons": [
{
"buttonId": 1943,
"name": "Điều khiển Quạt Livotec",
"button_code": None,
"button_type": 3,
"label": "FAN",
"modelName": "LIVOTEC",
"remoteIRId": 574,
"brandId": 27,
"status": "tắt",
"deviceId": 162297,
"seriNumber": "MCT8LYTGT",
"joinMesh": None,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1942,
"name": "Điều khiển điều hòa KAROFI",
"button_code": None,
"button_type": 3,
"label": "CONDITIONER",
"modelName": "ELECTRA_AC",
"remoteIRId": 573,
"brandId": 1,
"status": "tắt",
"deviceId": 162297,
"seriNumber": "MCT8LYTGT",
"joinMesh": None,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1941,
"name": "Điều khiển TV Samsung",
"button_code": None,
"button_type": 3,
"label": "TV",
"modelName": "SAMSUNG_RM_00741A",
"remoteIRId": 572,
"brandId": 2,
"status": "tắt",
"deviceId": 162297,
"seriNumber": "MCT8LYTGT",
"joinMesh": None,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1933,
"name": "Đèn trần",
"button_code": "button04",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162297,
"seriNumber": "MCT8LYTGT",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1932,
"name": "Đèn tranh",
"button_code": "button03",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162297,
"seriNumber": "MCT8LYTGT",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1931,
"name": "Đèn giá sách",
"button_code": "button02",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162297,
"seriNumber": "MCT8LYTGT",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1930,
"name": "Đèn 1",
"button_code": "button01",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162297,
"seriNumber": "MCT8LYTGT",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
}
]
},
{
"house_id": 121145,
"room_id": 123768,
"room_name": "Bed room",
"devices": [
{
"name": None,
"seriNumber": "DH00000894",
"device_status": "Đang kết nối"
},
{
"name": "Công tắc beacon hình CN, màu trắng",
"seriNumber": "MCTRADA1",
"device_status": "Đang kết nối"
},
{
"name": "Công tắc vuông đen 4 nút",
"seriNumber": "MCTHK5Q2D",
"device_status": "Đang kết nối"
},
{
"name": "Công tắc vuông đen 4 nút",
"seriNumber": "MCT1I1DT9",
"device_status": "Đang kết nối"
}
],
"buttons": [
{
"buttonId": 1905,
"name": "Điều hòa",
"button_code": "air_conditioner",
"button_type": 6,
"label": "CONDITIONER",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 79865,
"seriNumber": "DH00000894",
"joinMesh": None,
"net_Index": None,
"app_Index": None
},
{
"buttonId": 1929,
"name": "Đèn đọc sách",
"button_code": "button04",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162320,
"seriNumber": "MCTHK5Q2D",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1928,
"name": "Đèn giá sách",
"button_code": "button03",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162320,
"seriNumber": "MCTHK5Q2D",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1927,
"name": "Đèn trần",
"button_code": "button02",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162320,
"seriNumber": "MCTHK5Q2D",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1926,
"name": "Đèn ngủ",
"button_code": "button01",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162320,
"seriNumber": "MCTHK5Q2D",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1940,
"name": "Điều khiển Quạt Livotec",
"button_code": None,
"button_type": 3,
"label": "FAN",
"modelName": "LIVOTEC",
"remoteIRId": 571,
"brandId": 27,
"status": "tắt",
"deviceId": 162306,
"seriNumber": "MCT1I1DT9",
"joinMesh": None,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1665,
"name": "Đèn 4",
"button_code": "button04",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162306,
"seriNumber": "MCT1I1DT9",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1664,
"name": "Đèn 3",
"button_code": "button03",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162306,
"seriNumber": "MCT1I1DT9",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1663,
"name": "Đèn 2",
"button_code": "button02",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162306,
"seriNumber": "MCT1I1DT9",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
},
{
"buttonId": 1662,
"name": "Đèn 1",
"button_code": "button01",
"button_type": 1,
"label": "LIGHT",
"modelName": None,
"remoteIRId": None,
"brandId": None,
"status": "tắt",
"deviceId": 162306,
"seriNumber": "MCT1I1DT9",
"joinMesh": 1,
"net_Index": 121145,
"app_Index": 0
}
]
},
{
"house_id": 121145,
"room_id": 123757,
"room_name": "Bed room 32",
"devices": [],
"buttons": []
}
]
MOCK_DEVICE_PROPERTIES = {
201: {
"id": 201,
"seriNumber": "SN001",
"status": 1,
"joinMesh": 1,
"hardwareVersion": "2",
"properties": [
{
"code": "f_cronjob_setting",
"value": '{"sch": []}'
}
]
},
202: {
"id": 202,
"seriNumber": "SN002",
"status": 1,
"joinMesh": 1,
"hardwareVersion": "4",
"properties": [
{
"code": "ble_mesh_f_cronjob",
"value": '[]'
}
]
}
}
# Button state storage (simulates device state changes)
BUTTON_STATES = {
1001: "tắt",
1002: "tắt",
1003: "tắt",
1004: "tắt",
1005: "tắt"
}