你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 三室两厅 (3BR)
- 重点房间 living_room: 客厅主灯[dimmable_light], 客厅副灯[dimmable_light], 客厅氛围灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘1[window_covering], 客厅窗户传感器1[contact_sensor], ... 共10个设备
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 dining_room: 餐厅灯[dimmable_light], 餐厅运动传感器[occupancy_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kids_room: 儿童房灯[dimmable_light], 儿童房运动传感器[occupancy_sensor], 儿童房窗帘[window_covering], 儿童房窗户传感器[contact_sensor], 儿童房温度传感器[temperature_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher], 厨房漏水传感器[water_leak_detector]
- 房间 master_bathroom: 主卫灯[onoff_light], 主卫运动传感器[occupancy_sensor], 主卫漏水传感器[water_leak_detector]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧床头灯[onoff_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bathroom: 次卫灯[onoff_light], 次卫漏水传感器[water_leak_detector]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧空调[air_conditioner], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ5
- 重点房间: living_room
- 重点设备: kitchen_temp_sensor, living_room_temp_sensor
- 已选事件数: 70

## 跨天活动摘要
- 2026-08-16: living_room=48, dining_room=48, master_bedroom=48, second_bedroom=48, kids_room=48, master_bathroom=48

## 设备事件日志
[2026-08-16T00:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2274
[2026-08-16T00:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2277
[2026-08-16T04:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2399
[2026-08-16T04:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2398
[2026-08-16T08:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2532
[2026-08-16T08:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2539
[2026-08-16T12:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-08-16T12:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2519
[2026-08-16T16:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2399
[2026-08-16T16:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2390
[2026-08-16T16:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2377
[2026-08-16T16:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2385
[2026-08-16T16:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2367
[2026-08-16T16:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2381
[2026-08-16T16:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2379
[2026-08-16T16:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2366
[2026-08-16T16:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2359
[2026-08-16T16:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2378
[2026-08-16T16:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2366
[2026-08-16T16:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2367
[2026-08-16T17:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2352
[2026-08-16T17:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2372
[2026-08-16T17:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T17:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2360
[2026-08-16T17:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2351
[2026-08-16T17:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2345
[2026-08-16T17:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2357
[2026-08-16T17:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2343
[2026-08-16T17:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2358
[2026-08-16T17:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2340
[2026-08-16T17:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2354
[2026-08-16T17:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2336
[2026-08-16T17:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2337
[2026-08-16T17:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2342
[2026-08-16T17:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T17:30:00] dining_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T17:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T17:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T17:30:00] kids_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T17:30:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T17:30:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T17:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2331
[2026-08-16T17:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2339
[2026-08-16T17:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-08-16T17:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2341
[2026-08-16T17:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2334
[2026-08-16T17:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2334
[2026-08-16T17:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2330
[2026-08-16T17:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2333
[2026-08-16T17:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2320
[2026-08-16T18:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2332
[2026-08-16T18:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2331
[2026-08-16T18:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T18:00:00] dining_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T18:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T18:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T18:00:00] kids_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T18:00:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T18:00:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-08-16T18:02:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2840
[2026-08-16T18:04:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2810
[2026-08-16T18:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2317
[2026-08-16T18:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2327
[2026-08-16T18:06:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2960
[2026-08-16T18:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2313
[2026-08-16T18:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2322
[2026-08-16T18:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2323
[2026-08-16T18:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2308
[2026-08-16T18:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2320
[2026-08-16T18:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2313

## 任务
监控系统标记了潜在异常。请分析下面的日志，判断是否需要采取响应措施，并给出建议。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": true,
  "confidence": "medium",
  "threat_type": "fire_risk",
  "threat_description": "多个房间温度同时异常上升",
  "reasoning": [
    "推理步骤1: 客厅和卧室温度同时异常上升",
    "推理步骤2: 厨房也同步升温",
    "推理步骤3: 不是单一热源可解释的局部变化"
  ],
  "key_evidence": [
    "客厅和卧室温度同时异常上升",
    "厨房也同步升温",
    "不是单一热源可解释的局部变化"
  ],
  "recommended_actions": [
    "按全屋热异常处理，建议检查火源或电器过热。"
  ]
}

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "sensor_malfunction",
  "threat_description": "客厅和厨房温度传感器在傍晚时段出现严重的数据跳变和逻辑矛盾，疑似设备故障或信号干扰。",
  "reasoning": [
    "推理步骤 1: 分析时间线发现，在 2026-08-16T17:30:00 时，全屋所有房间（包括客厅、餐厅、卧室等）的运动传感器均报告 Occupancy = 0，表明此时家中无人活动。",
    "推理步骤 2: 在此‘无人’状态下，从 18:02:00 开始，客厅温度传感器读数突然从正常的约 23°C (2332 mK) 剧烈跳变至 28.4°C (2840 mK)，随后在 18:05:00 又瞬间回落到 23.17°C (2317 mK)。这种短时间内几十度的剧烈波动不符合物理规律（除非有极端热源突然出现并立即消失），极大概率是传感器数据异常。",
    "推理步骤 3: 与此同时，厨房温度传感器在 18:06:00 也出现了类似的异常峰值（29.6°C / 2960 mK），且数值与客厅的异常时间点高度重合。考虑到两个不同区域的传感器在同一时间段内同时发生非物理性的数值畸变，这排除了单一环境因素导致的可能性，指向传感器硬件故障、通信丢包导致的乱码或固件 Bug。",
    "推理步骤 4: 虽然存在火灾风险的理论可能性，但鉴于温度并未持续升高且迅速回落，且伴随其他区域无异常，判定为传感器自身故障（Sensor Malfunction）比真实火情更合理。"
  ],
  "key_evidence": [
    "18:02:00 - 18:05:00 期间，客厅温度在 23°C 和 28°C 之间剧烈震荡，而当时全屋无人（Occupancy=0）。",
    "18:06:00 厨房温度传感器同步出现异常高值（29.6°C），随后迅速恢复正常，呈现典型的传感器数据漂移或死锁特征。"
  ],
  "recommended_actions": [
    "立即检查客厅和厨房的温度传感器硬件连接及供电情况，尝试重启设备。",
    "查看智能家居网关日志，确认该时间段是否有网络中断或 Matter 协议通信错误记录。",
    "在维修前，建议人工使用独立温度计测量实际室温，以排除误报并评估是否需要启动空调降温以防万一。"
  ]
}
```


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 两室一厅 (2BR)
- 重点房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher]
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 living_room: 客厅主灯[dimmable_light], 客厅落地灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor], 次卧温度传感器[temperature_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ2
- 重点房间: kitchen
- 重点设备: kitchen_cook_surface, kitchen_temp_sensor
- 已选事件数: 37

## 设备事件日志
[2026-08-21T00:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2269
[2026-08-21T06:47:39] kitchen_cook_surface | OnOff.OnOff = True
[2026-08-21T08:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2535
[2026-08-21T16:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-08-21T17:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-08-21T18:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2326
[2026-08-21T18:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2318
[2026-08-21T18:25:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T18:29:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T18:29:30] kitchen_cook_surface | OnOff.OnOff = True
[2026-08-21T18:30:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-21T18:34:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T18:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2302
[2026-08-21T18:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2296
[2026-08-21T18:49:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T18:50:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T18:54:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T18:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2306
[2026-08-21T19:00:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-21T19:00:00] kitchen_cook_surface | OnOff.OnOff = True
[2026-08-21T19:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2298
[2026-08-21T19:09:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T19:10:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T19:14:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T19:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2279
[2026-08-21T19:20:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-08-21T19:22:30] kitchen_window_contact | BooleanState.StateValue = False
[2026-08-21T19:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3050
[2026-08-21T19:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2274
[2026-08-21T19:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-21T19:34:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T19:35:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T19:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3220
[2026-08-21T19:39:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T19:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2284
[2026-08-21T19:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2277
[2026-08-21T19:54:03] entrance_occupancy | OccupancySensing.Occupancy = 1

## 任务
请分析下面的实时设备事件，判断是否需要将其视为异常安全事件。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": true,
  "confidence": "medium",
  "threat_type": "fire_risk",
  "threat_description": "灶具关闭后温度仍持续上升",
  "reasoning": [
    "推理步骤1: 灶具已关闭",
    "推理步骤2: 厨房温度没有回落反而继续升高",
    "推理步骤3: 升温趋势持续超过一个采样点"
  ],
  "key_evidence": [
    "灶具已关闭",
    "厨房温度没有回落反而继续升高",
    "升温趋势持续超过一个采样点"
  ],
  "recommended_actions": [
    "判为异常余热/火源风险，建议立即复查灶具与周边热源。"
  ]
}

{
  "is_anomaly": false,
  "confidence": "medium",
  "threat_type": "none",
  "threat_description": "这些变化仍可视为正常波动。",
  "reasoning": [
    "推理步骤1: 没有看到必须报警的直接证据。"
  ],
  "key_evidence": [
    "设备状态变化幅度看起来仍在可接受范围内。"
  ],
  "recommended_actions": [
    "保持观察即可。"
  ]
}


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 独居老人 (Elderly Living Alone)
- 重点房间 living_room: 客厅灯[dimmable_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor], 客厅烟雾报警器[smoke_co_alarm]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 bedroom: 卧室灯[dimmable_light], 床头灯[onoff_light], 卧室运动传感器[occupancy_sensor], 卧室窗帘[window_covering], 卧室窗户传感器[contact_sensor], 卧室温度传感器[temperature_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房运动传感器[occupancy_sensor], 厨房漏水传感器[water_leak_detector]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ5
- 重点房间: living_room
- 重点设备: bedroom_temp_sensor, kitchen_temp_sensor, living_room_temp_sensor
- 已选事件数: 70

## 跨天活动摘要
- 2026-08-11: living_room=210, bedroom=241, kitchen=239, entrance=230, bathroom=62

## 设备事件日志
[2026-08-11T00:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2268
[2026-08-11T00:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2275
[2026-08-11T04:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2297
[2026-08-11T08:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2522
[2026-08-11T08:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2538
[2026-08-11T12:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2535
[2026-08-11T16:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2402
[2026-08-11T16:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2390
[2026-08-11T16:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2377
[2026-08-11T16:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2375
[2026-08-11T16:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2367
[2026-08-11T16:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2374
[2026-08-11T16:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2361
[2026-08-11T16:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2368
[2026-08-11T16:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2362
[2026-08-11T16:53:09] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T16:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2271
[2026-08-11T17:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2256
[2026-08-11T17:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2268
[2026-08-11T17:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2250
[2026-08-11T17:13:09] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T17:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2244
[2026-08-11T17:17:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T17:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2255
[2026-08-11T17:21:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T17:23:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T17:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2350
[2026-08-11T17:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2342
[2026-08-11T17:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2253
[2026-08-11T17:33:09] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T17:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2332
[2026-08-11T17:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-08-11T17:42:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T17:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2224
[2026-08-11T17:46:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T17:48:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T17:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2330
[2026-08-11T17:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2333
[2026-08-11T17:53:09] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T17:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2233
[2026-08-11T18:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2321
[2026-08-11T18:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2334
[2026-08-11T18:01:51] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-11T18:02:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2840
[2026-08-11T18:04:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2810
[2026-08-11T18:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-08-11T18:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2329
[2026-08-11T18:06:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2960
[2026-08-11T18:07:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T18:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2220
[2026-08-11T18:11:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T18:13:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T18:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2322
[2026-08-11T18:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2317
[2026-08-11T18:18:09] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T18:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2212
[2026-08-11T18:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2307
[2026-08-11T18:27:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T18:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2203
[2026-08-11T18:31:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T18:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2202
[2026-08-11T18:38:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T18:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2312
[2026-08-11T18:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2295
[2026-08-11T18:43:09] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-11T18:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2208
[2026-08-11T18:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2296
[2026-08-11T18:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2299
[2026-08-11T18:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2289
[2026-08-11T18:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2294

## 任务
请根据以下设备记录评估当前是否需要安全响应；若需要，请说明原因与处置建议。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": true,
  "confidence": "medium",
  "threat_type": "fire_risk",
  "threat_description": "多个房间温度同时异常上升",
  "reasoning": [
    "推理步骤1: 客厅和卧室温度同时异常上升",
    "推理步骤2: 厨房也同步升温",
    "推理步骤3: 不是单一热源可解释的局部变化"
  ],
  "key_evidence": [
    "客厅和卧室温度同时异常上升",
    "厨房也同步升温",
    "不是单一热源可解释的局部变化"
  ],
  "recommended_actions": [
    "按全屋热异常处理，建议检查火源或电器过热。"
  ]
}

{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "fire_risk",
  "threat_description": "多个房间温度同时异常上升",
  "reasoning": [
    "推理步骤1: 日志中出现了不存在的额外报警事件。"
  ],
  "key_evidence": [
    "我假设看到了一个未在日志中出现的 critical 告警。"
  ],
  "recommended_actions": [
    "按全屋热异常处理，建议检查火源或电器过热。"
  ]
}


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 一室一厅 (Studio/1BR)
- 重点房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 bedroom: 卧室灯[dimmable_light], 卧室运动传感器[occupancy_sensor], 卧室窗帘[window_covering], 卧室窗户传感器[contact_sensor], 卧室温度传感器[temperature_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light]
- 房间 living_room: 客厅主灯[dimmable_light], 客厅台灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ5
- 重点房间: kitchen
- 重点设备: kitchen_cook_surface, kitchen_temp_sensor
- 已选事件数: 50

## 跨天活动摘要
- 2026-08-18: kitchen=10, bedroom=220, living_room=110, bathroom=58, entrance=14

## 设备事件日志
[2026-08-18T00:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2268
[2026-08-18T04:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2390
[2026-08-18T08:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2539
[2026-08-18T12:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2529
[2026-08-18T16:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2394
[2026-08-18T17:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2340
[2026-08-18T17:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2330
[2026-08-18T17:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2341
[2026-08-18T17:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2337
[2026-08-18T17:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2323
[2026-08-18T17:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2331
[2026-08-18T18:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-08-18T18:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2333
[2026-08-18T18:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2320
[2026-08-18T18:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2308
[2026-08-18T18:19:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-18T18:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2305
[2026-08-18T18:22:00] front_door_lock | Event: LockOperation(LockOperationType=1, OperationSource=Manual)
[2026-08-18T18:22:00] front_door_lock | DoorLock.LockState = 2
[2026-08-18T18:22:02] front_door_contact | BooleanState.StateValue = False
[2026-08-18T18:22:17] entrance_light | OnOff.OnOff = True
[2026-08-18T18:22:27] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-18T18:22:32] living_room_light_1 | OnOff.OnOff = True
[2026-08-18T18:22:35] living_room_ac | OnOff.OnOff = True
[2026-08-18T18:22:35] living_room_ac | Thermostat.SystemMode = 3
[2026-08-18T18:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2309
[2026-08-18T18:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2319
[2026-08-18T18:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2307
[2026-08-18T18:39:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-18T18:42:27] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-18T18:43:56] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-18T18:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2294
[2026-08-18T18:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2302
[2026-08-18T18:59:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-18T19:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2354
[2026-08-18T19:00:00] kitchen_cook_surface | OnOff.OnOff = True
[2026-08-18T19:02:27] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-18T19:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2413
[2026-08-18T19:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2490
[2026-08-18T19:13:00] kitchen_light | OnOff.OnOff = True
[2026-08-18T19:13:30] kitchen_cook_surface | OnOff.OnOff = True
[2026-08-18T19:13:56] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-18T19:14:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = None
[2026-08-18T19:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-08-18T19:19:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-18T19:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2602
[2026-08-18T19:20:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-08-18T19:22:27] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-18T19:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3050
[2026-08-18T19:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3220

## 任务
请根据以下设备记录评估当前是否需要安全响应；若需要，请说明原因与处置建议。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "fire_risk",
  "threat_description": "厨房灶具关闭后温度传感器读数异常飙升，存在过热或火灾风险。",
  "reasoning": [
    "1. 识别烹饪行为：日志显示在 19:00 至 19:20 期间，厨房灶具 (kitchen_cook_surface) 处于开启状态，且厨房温度从约 2354 上升至 2602（单位通常为厘氏度，即 23.5°C - 26.0°C），符合正常烹饪升温模式。",
    "2. 发现异常断点与恢复：19:14 时温度传感器返回 None（可能因高温导致短暂故障或数据丢失），随后在 19:15 恢复读数 2544，表明设备仍在运行且环境持续受热。",
    "3. 关键异常判定：19:20 灶具关闭 (OnOff=False)，理论上热源消失，温度应开始下降或保持平稳。然而，随后的读数显示温度急剧上升：19:25 达到 3050 (30.5°C)，19:35 达到 3220 (32.2°C)。",
    "4. 排除误报：在短短 15 分钟内，无灶具的情况下温度升高超过 6°C，且数值远超人体舒适区及正常散热范围，这极有可能是灶具未真正切断加热、食物烧焦引发明火/阴燃，或传感器本身发生严重漂移/故障。鉴于安全优先原则，需视为真实火灾风险处理。"
  ],
  "key_evidence": [
    "[2026-08-18T19:20:00] kitchen_cook_surface | OnOff.OnOff = False (灶具已关闭)",
    "[2026-08-18T19:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3050 (温度升至30.5°C)",
    "[2026-08-18T19:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3220 (温度继续升至32.2°C)"
  ],
  "recommended_actions": [
    "立即触发最高级别火灾警报，并通知住户及紧急服务部门。",
    "远程尝试切断厨房区域电源（若支持智能断路器）以消除潜在电气火源。",
    "检查烟雾报警器 (smoke_co_alarm) 状态，确认是否已检测到烟雾或一氧化碳。"
  ]
}
```

{
  "is_anomaly": true,
  "confidence": "low",
  "threat_type": "intrusion",
  "threat_description": "存在异常，但原因更可能属于其他类别。",
  "reasoning": [
    "推理步骤1: 日志里有异常，但我把它归因为另一类威胁。"
  ],
  "key_evidence": [
    "灶具已关闭"
  ],
  "recommended_actions": [
    "建议按该错误类别处理。"
  ]
}


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 两室一厅 (2BR)
- 重点房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher]
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 living_room: 客厅主灯[dimmable_light], 客厅落地灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor], 次卧温度传感器[temperature_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ5
- 重点房间: kitchen
- 重点设备: kitchen_cook_surface, kitchen_temp_sensor
- 已选事件数: 48

## 跨天活动摘要
- 2026-07-26: kitchen=16, living_room=193, bathroom=57, entrance=51, master_bedroom=48, second_bedroom=48

## 设备事件日志
[2026-07-26T00:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2276
[2026-07-26T04:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2408
[2026-07-26T08:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2531
[2026-07-26T09:19:38] kitchen_cook_surface | OnOff.OnOff = True
[2026-07-26T09:50:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-07-26T11:59:30] kitchen_cook_surface | OnOff.OnOff = True
[2026-07-26T12:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2771
[2026-07-26T12:36:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-07-26T16:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-07-26T17:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2345
[2026-07-26T17:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2331
[2026-07-26T17:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-07-26T17:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2342
[2026-07-26T17:49:00] kitchen_light | OnOff.OnOff = True
[2026-07-26T17:49:30] kitchen_cook_surface | OnOff.OnOff = True
[2026-07-26T17:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = None
[2026-07-26T17:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2341
[2026-07-26T17:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2334
[2026-07-26T18:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2321
[2026-07-26T18:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2329
[2026-07-26T18:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2311
[2026-07-26T18:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2310
[2026-07-26T18:18:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-26T18:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2312
[2026-07-26T18:20:14] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-26T18:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2308
[2026-07-26T18:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-26T18:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-26T18:30:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-07-26T18:38:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-26T18:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2299
[2026-07-26T18:50:14] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-26T18:54:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-07-26T18:54:03] kitchen_dishwasher | OnOff.OnOff = True
[2026-07-26T18:54:08] kitchen_dishwasher | OperationalState.OperationalState = 1
[2026-07-26T18:54:30] kitchen_window_contact | BooleanState.StateValue = False
[2026-07-26T18:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = None
[2026-07-26T18:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2295
[2026-07-26T18:58:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-26T19:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2294
[2026-07-26T19:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-26T19:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-26T19:00:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-07-26T19:00:00] kitchen_cook_surface | OnOff.OnOff = True
[2026-07-26T19:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2283
[2026-07-26T19:20:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-07-26T19:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3050
[2026-07-26T19:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3220

## 任务
请根据以下设备记录评估当前是否需要安全响应；若需要，请说明原因与处置建议。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "fire_risk",
  "threat_description": "厨房灶具在关闭后温度传感器读数异常飙升，且随后再次开启，存在极高的火灾风险或设备故障隐患。",
  "reasoning": [
    "1. 识别到关键时间窗口：2026-07-26T19:20:00 厨房灶具 (kitchen_cook_surface) 状态变为 False (关闭)。",
    "2. 监测到异常数据模式：在灶具关闭后的5分钟内（19:25:00），温度传感器读数从正常的 ~2283 急剧上升至 3050；10分钟后（19:35:00）进一步升至 3220。",
    "3. 排除正常烹饪逻辑：通常烹饪结束后温度应逐渐下降。如此剧烈的升温发生在设备已关闭的情况下，极不寻常。这可能意味着：a) 灶具实际未完全关闭或发生短路/故障导致持续发热；b) 传感器本身发生故障（如短路导致读数虚高）；c) 有外部火源或高温物体靠近传感器。",
    "4. 结合后续行为：19:00 时灶具曾短暂开启，但主要风险点在于19:20关闭后的温度异常。若这是真实温度，说明厨房内存在失控的热源，极易引发火灾。即使认为是传感器故障，也属于 'sensor_malfunction'，但在安全分析中，必须优先假设最坏情况（火灾风险）并报警。"
  ],
  "key_evidence": [
    "[2026-07-26T19:20:00] kitchen_cook_surface | OnOff.OnOff = False (灶具关闭)",
    "[2026-07-26T19:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3050 (温度骤升)",
    "[2026-07-26T19:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 3220 (温度持续升高)"
  ],
  "recommended_actions": [
    "立即触发最高级别火灾警报，并通知住户及紧急服务部门。",
    "远程尝试切断厨房区域电源（如果支持智能断路器）。",
    "检查烟雾报警器 (smoke_co_alarm) 是否同时触发，以确认是否存在真实烟雾。",
    "记录此事件供后续维护人员检修温度传感器或灶具控制模块。"
  ]
}
```

{
  "is_anomaly": true,
  "confidence": "low",
  "threat_type": "intrusion",
  "threat_description": "存在异常，但原因更可能属于其他类别。",
  "reasoning": [
    "推理步骤1: 日志里有异常，但我把它归因为另一类威胁。"
  ],
  "key_evidence": [
    "灶具已关闭"
  ],
  "recommended_actions": [
    "建议按该错误类别处理。"
  ]
}


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 一室一厅 (Studio/1BR)
- 重点房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 bedroom: 卧室灯[dimmable_light], 卧室运动传感器[occupancy_sensor], 卧室窗帘[window_covering], 卧室窗户传感器[contact_sensor], 卧室温度传感器[temperature_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light]
- 房间 living_room: 客厅主灯[dimmable_light], 客厅台灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ2
- 重点房间: kitchen
- 重点设备: kitchen_dishwasher
- 已选事件数: 36

## 设备事件日志
[2026-07-09T12:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2513
[2026-07-09T13:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2508
[2026-07-09T13:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2506
[2026-07-09T13:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2490
[2026-07-09T13:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2491
[2026-07-09T13:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2487
[2026-07-09T13:40:30] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-09T13:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2474
[2026-07-09T13:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2471
[2026-07-09T14:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-09T14:00:00] kitchen_dishwasher | OperationalState.OperationalState = 1
[2026-07-09T14:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2462
[2026-07-09T14:14:02] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-09T14:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2455
[2026-07-09T14:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2454
[2026-07-09T14:40:30] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-09T14:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2450
[2026-07-09T15:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-09T15:00:00] kitchen_dishwasher | OperationalState.CountdownTime = 5400
[2026-07-09T15:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-07-09T15:14:02] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-09T15:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2417
[2026-07-09T15:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2425
[2026-07-09T15:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2418
[2026-07-09T15:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-07-09T16:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2392
[2026-07-09T16:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2389
[2026-07-09T16:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-09T16:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2379
[2026-07-09T16:44:02] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-09T16:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2360
[2026-07-09T17:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2356
[2026-07-09T17:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2362
[2026-07-09T17:05:00] kitchen_dishwasher | OperationalState.CountdownTime = 5200
[2026-07-09T17:10:30] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-09T17:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2338

## 任务
系统刚记录到以下一段设备状态变化。请评估这些变化是否已经构成安全风险，并说明原因。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": true,
  "confidence": "medium",
  "threat_type": "fire_risk",
  "threat_description": "电器运行时间异常长",
  "reasoning": [
    "推理步骤1: 设备持续运行超过常规时长",
    "推理步骤2: 倒计时未按预期减少",
    "推理步骤3: 存在过热或故障风险"
  ],
  "key_evidence": [
    "设备持续运行超过常规时长",
    "倒计时未按预期减少",
    "存在过热或故障风险"
  ],
  "recommended_actions": [
    "标记为设备异常长运行，建议停机检查。"
  ]
}

```json
{
  "is_anomaly": false,
  "confidence": "high",
  "threat_type": "none",
  "threat_description": "厨房温度随洗碗机运行呈正常下降趋势，无异常安全威胁。",
  "reasoning": [
    "推理步骤 1: 分析厨房温度传感器数据，数值从 25.13°C (2513 mK) 持续稳定下降至 23.38°C (2338 mK)，符合夏季午后室内自然降温及电器停止加热后的物理规律。",
    "推理步骤 2: 检查洗碗机状态，设备于 14:00 启动，15:00 显示倒计时 5400 秒（90 分钟），17:05 显示倒计时 5200 秒，表明洗碗机正在按计划正常运行中，非故障或卡死状态。",
    "推理步骤 3: 结合 occupancy 传感器日志，卧室、客厅、卫生间均显示无人（Occupancy=0），说明当前为住户外出或休息时段，厨房无人值守是正常场景，且温度未出现因火灾导致的急剧上升，故排除火险和未受监控烹饪风险。"
  ],
  "key_evidence": [
    "kitchen_temp_sensor 读数在 2 小时内呈现线性下降趋势（25.13 -> 23.38）。",
    "kitchen_dishwasher CountdownTime 从 5400 递减至 5200，证明设备处于正常工作循环中。"
  ],
  "recommended_actions": [
    "无需采取紧急措施，系统运行正常。",
    "可继续监控直至洗碗机完成周期并关闭。"
  ]
}
```


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 三室两厅 (3BR)
- 重点房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher], 厨房漏水传感器[water_leak_detector]
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 dining_room: 餐厅灯[dimmable_light], 餐厅运动传感器[occupancy_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kids_room: 儿童房灯[dimmable_light], 儿童房运动传感器[occupancy_sensor], 儿童房窗帘[window_covering], 儿童房窗户传感器[contact_sensor], 儿童房温度传感器[temperature_sensor]
- 房间 living_room: 客厅主灯[dimmable_light], 客厅副灯[dimmable_light], 客厅氛围灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘1[window_covering], 客厅窗户传感器1[contact_sensor], ... 共10个设备
- 房间 master_bathroom: 主卫灯[onoff_light], 主卫运动传感器[occupancy_sensor], 主卫漏水传感器[water_leak_detector]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧床头灯[onoff_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bathroom: 次卫灯[onoff_light], 次卫漏水传感器[water_leak_detector]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧空调[air_conditioner], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ2
- 重点房间: kitchen
- 重点设备: kitchen_dishwasher
- 已选事件数: 34

## 设备事件日志
[2026-08-04T12:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2517
[2026-08-04T13:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2502
[2026-08-04T13:26:06] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T13:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T13:33:33] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T13:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2495
[2026-08-04T13:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2489
[2026-08-04T13:43:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T14:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-04T14:00:00] kitchen_dishwasher | OperationalState.OperationalState = 1
[2026-08-04T14:05:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T14:13:33] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T14:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2471
[2026-08-04T14:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2466
[2026-08-04T14:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2459
[2026-08-04T14:31:06] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T14:45:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T15:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-04T15:00:00] kitchen_dishwasher | OperationalState.CountdownTime = 5400
[2026-08-04T15:03:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T15:11:33] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-04T15:16:06] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T15:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T15:33:33] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T15:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2424
[2026-08-04T15:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2403
[2026-08-04T16:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-08-04T16:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-04T16:34:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T16:41:33] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-04T16:46:06] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T17:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T17:04:04] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-04T17:05:00] kitchen_dishwasher | OperationalState.CountdownTime = 5200

## 任务
请分析下面的实时设备事件，判断是否需要将其视为异常安全事件。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": true,
  "confidence": "medium",
  "threat_type": "fire_risk",
  "threat_description": "电器运行时间异常长",
  "reasoning": [
    "推理步骤1: 设备持续运行超过常规时长",
    "推理步骤2: 倒计时未按预期减少",
    "推理步骤3: 存在过热或故障风险"
  ],
  "key_evidence": [
    "设备持续运行超过常规时长",
    "倒计时未按预期减少",
    "存在过热或故障风险"
  ],
  "recommended_actions": [
    "标记为设备异常长运行，建议停机检查。"
  ]
}

```json
{
  "is_anomaly": false,
  "confidence": "high",
  "threat_type": "none",
  "threat_description": "日志显示正常的家庭日常活动模式，厨房洗碗机运行中且温度传感器读数符合夏季高温环境下的物理规律，未发现安全威胁。",
  "reasoning": [
    "推理步骤 1: 分析时间线与 occupancy 数据。日志记录的时间段为 12:50 至 17:05，期间 dining_room、entrance、kids_room、master_bedroom 等多个房间的运动传感器频繁触发（Occupancy=1），表明家庭成员在正常进行日间活动（如用餐、进出家门、照顾儿童等），不存在长时间无人值守或异常入侵迹象。",
    "推理步骤 2: 分析厨房设备状态。kitchen_dishwasher 在 14:00 启动 (OperationalState=1)，并在后续时间点报告 CountdownTime 分别为 5400 秒和 5200 秒，这表明洗碗机正在按计划运行并倒计时结束，属于正常的家电操作行为，非故障或未授权操作。",
    "推理步骤 3: 分析温度传感器数据。kitchen_temp_sensor 的读数从 25.17°C 逐渐下降至 23.96°C（注意：Matter 协议中温度常以 0.01°C 为单位存储，即 2517 代表 25.17°C）。该数值处于夏季室内正常室温范围，且随时间缓慢变化符合热力学规律，未出现急剧升高（火灾风险）或异常波动（传感器漂移/故障）。",
    "推理步骤 4: 综合判断。所有事件均符合“三室两厅”家庭在白天的典型生活场景，没有检测到入侵、漏水、烟雾、门锁故障或其他预设的安全威胁模式。"
  ],
  "key_evidence": [
    "多个房间（dining_room, entrance, kids_room 等）在白天时段持续有人活动记录。",
    "洗碗机 CountdownTime 正常递减，显示设备处于健康运行状态。",
    "厨房温度传感器读数稳定在 24-25°C 区间，无异常升温趋势。"
  ],
  "recommended_actions": [
    "无需采取紧急措施，系统运行正常。",
    "可继续监控常规日志以维持基线行为模型。"
  ]
}
```


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 三室两厅 (3BR)
- 重点房间 living_room: 客厅主灯[dimmable_light], 客厅副灯[dimmable_light], 客厅氛围灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘1[window_covering], 客厅窗户传感器1[contact_sensor], ... 共10个设备
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 dining_room: 餐厅灯[dimmable_light], 餐厅运动传感器[occupancy_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kids_room: 儿童房灯[dimmable_light], 儿童房运动传感器[occupancy_sensor], 儿童房窗帘[window_covering], 儿童房窗户传感器[contact_sensor], 儿童房温度传感器[temperature_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher], 厨房漏水传感器[water_leak_detector]
- 房间 master_bathroom: 主卫灯[onoff_light], 主卫运动传感器[occupancy_sensor], 主卫漏水传感器[water_leak_detector]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧床头灯[onoff_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bathroom: 次卫灯[onoff_light], 次卫漏水传感器[water_leak_detector]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧空调[air_conditioner], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ4
- 重点房间: living_room
- 重点设备: kitchen_smoke_alarm, living_room_smoke_alarm
- 已选事件数: 131

## 跨天活动摘要
- 2026-08-25: living_room=111, master_bedroom=231, entrance=231, kids_room=230, dining_room=224, master_bathroom=58

## 设备事件日志
[2026-08-25T01:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2307
[2026-08-25T01:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2297
[2026-08-25T01:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2299
[2026-08-25T01:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T01:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2319
[2026-08-25T01:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2324
[2026-08-25T01:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2312
[2026-08-25T01:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2332
[2026-08-25T02:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2329
[2026-08-25T02:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T02:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2318
[2026-08-25T02:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-08-25T02:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2344
[2026-08-25T02:20:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2341
[2026-08-25T02:20:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2343
[2026-08-25T02:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2345
[2026-08-25T02:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2333
[2026-08-25T02:25:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2349
[2026-08-25T02:25:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2330
[2026-08-25T02:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2337
[2026-08-25T02:30:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2347
[2026-08-25T02:30:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2339
[2026-08-25T02:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2346
[2026-08-25T02:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T02:30:00] dining_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T02:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T02:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T02:30:00] kids_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T02:30:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T02:30:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T02:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2347
[2026-08-25T02:35:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2353
[2026-08-25T02:35:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2352
[2026-08-25T02:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2338
[2026-08-25T02:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2346
[2026-08-25T02:40:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2345
[2026-08-25T02:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2350
[2026-08-25T02:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2343
[2026-08-25T02:45:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2361
[2026-08-25T02:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2348
[2026-08-25T02:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2364
[2026-08-25T02:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2350
[2026-08-25T02:50:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2351
[2026-08-25T02:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2357
[2026-08-25T02:55:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2365
[2026-08-25T02:55:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2364
[2026-08-25T02:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2366
[2026-08-25T03:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2365
[2026-08-25T03:00:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2352
[2026-08-25T03:00:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2354
[2026-08-25T03:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2364
[2026-08-25T03:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:00:00] dining_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:00:00] kids_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:00:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:00:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2375
[2026-08-25T03:05:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2356
[2026-08-25T03:05:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2363
[2026-08-25T03:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2363
[2026-08-25T03:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2362
[2026-08-25T03:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2377
[2026-08-25T03:10:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2372
[2026-08-25T03:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2360
[2026-08-25T03:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2373
[2026-08-25T03:15:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2373
[2026-08-25T03:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2376
[2026-08-25T03:16:00] kitchen_smoke_alarm | SmokeCoAlarm.SmokeState = 1
[2026-08-25T03:16:00] living_room_smoke_alarm | SmokeCoAlarm.InterconnectSmokeAlarm = 1
[2026-08-25T03:17:00] living_room_smoke_alarm | SmokeCoAlarm.ExpressedState = 1
[2026-08-25T03:20:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2375
[2026-08-25T03:20:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2381
[2026-08-25T03:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2382
[2026-08-25T03:25:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2384
[2026-08-25T03:25:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2379
[2026-08-25T03:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2380
[2026-08-25T03:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2377
[2026-08-25T03:30:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2379
[2026-08-25T03:30:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2376
[2026-08-25T03:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2384
[2026-08-25T03:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:30:00] dining_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:30:00] kids_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:30:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:30:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T03:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2382
[2026-08-25T03:35:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2386
[2026-08-25T03:35:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2393
[2026-08-25T03:40:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2389
[2026-08-25T03:40:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2389
[2026-08-25T03:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2392
[2026-08-25T03:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-08-25T03:45:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2399
[2026-08-25T03:45:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2394
[2026-08-25T03:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2394
[2026-08-25T03:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2399
[2026-08-25T03:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2394
[2026-08-25T03:50:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2388
[2026-08-25T03:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2397
[2026-08-25T03:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2395
[2026-08-25T03:55:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2390
[2026-08-25T03:55:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2401
[2026-08-25T03:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2387
[2026-08-25T04:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2406
[2026-08-25T04:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2403
[2026-08-25T04:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T04:00:00] dining_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T04:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T04:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T04:00:00] kids_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T04:00:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T04:00:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T04:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2393
[2026-08-25T04:05:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2395
[2026-08-25T04:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2411
[2026-08-25T04:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2411
[2026-08-25T04:10:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-08-25T04:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2400
[2026-08-25T04:15:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2417
[2026-08-25T04:15:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2418
[2026-08-25T04:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2416
[2026-08-25T04:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2418
[2026-08-25T04:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2414
[2026-08-25T04:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-25T04:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2422
[2026-08-25T04:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2426
[2026-08-25T04:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2441

## 任务
你将看到一组跨设备日志。请做综合安全分析，而不是单点判断。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "fire_risk",
  "threat_description": "厨房烟雾报警器触发，且全屋温度在凌晨时段呈现异常持续上升趋势，存在火灾或设备过热风险。",
  "reasoning": [
    "1. 关键告警触发：日志显示在 2026-08-25T03:16:00，kitchen_smoke_alarm 的 SmokeState 变为 1（报警状态），同时 living_room_smoke_alarm 的 InterconnectSmokeAlarm 和 ExpressedState 也变为 1，表明系统已检测到烟雾并联动其他设备进行声光报警或通知。",
    "2. 伴随环境异常：在烟雾报警前后（02:20 - 04:50），所有房间的温度传感器读数均呈现显著的持续上升趋势。例如，客厅温度从 2307 (23.07°C) 上升至 2441 (24.41°C)，厨房温度从 2345 上升至 2411+。虽然绝对值仍在舒适范围内，但在凌晨无人活动（Occupancy=0）的情况下，室内温度不应出现如此快速且持续的攀升，这通常暗示有热源正在释放热量。",
    "3. 排除误报可能性：结合“无人活动”（所有 occupancy_sensor 均为 0）和“温度持续上升”两个特征，排除了烹饪产生的短暂蒸汽或正常人体散热导致的误报。这种模式更符合电气故障、小火源未熄灭或设备过热引发的真实火情前兆。"
  ],
  "key_evidence": [
    "[2026-08-25T03:16:00] kitchen_smoke_alarm | SmokeCoAlarm.SmokeState = 1",
    "[2026-08-25T03:16:00] living_room_smoke_alarm | SmokeCoAlarm.InterconnectSmokeAlarm = 1",
    "Temperature trend: living_room_temp_sensor increased from 2307 to 2441 between 01:20 and 04:50 while occupancy was 0."
  ],
  "recommended_actions": [
    "立即通过智能家居APP查看摄像头画面（如有）或联系住户确认家中情况。",
    "若无法远程确认，建议触发紧急联系人机制或通知物业/消防部门进行排查。",
    "检查厨房灶具(cook_surface)及周围电器状态，确认是否有关闭指令未执行或设备故障。"
  ]
}
```

{
  "is_anomaly": false,
  "confidence": "medium",
  "threat_type": "none",
  "threat_description": "这些变化仍可视为正常波动。",
  "reasoning": [
    "推理步骤1: 没有看到必须报警的直接证据。"
  ],
  "key_evidence": [
    "设备状态变化幅度看起来仍在可接受范围内。"
  ],
  "recommended_actions": [
    "保持观察即可。"
  ]
}


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 三室两厅 (3BR)
- 重点房间 living_room: 客厅主灯[dimmable_light], 客厅副灯[dimmable_light], 客厅氛围灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘1[window_covering], 客厅窗户传感器1[contact_sensor], ... 共10个设备
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 dining_room: 餐厅灯[dimmable_light], 餐厅运动传感器[occupancy_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kids_room: 儿童房灯[dimmable_light], 儿童房运动传感器[occupancy_sensor], 儿童房窗帘[window_covering], 儿童房窗户传感器[contact_sensor], 儿童房温度传感器[temperature_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher], 厨房漏水传感器[water_leak_detector]
- 房间 master_bathroom: 主卫灯[onoff_light], 主卫运动传感器[occupancy_sensor], 主卫漏水传感器[water_leak_detector]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧床头灯[onoff_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bathroom: 次卫灯[onoff_light], 次卫漏水传感器[water_leak_detector]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧空调[air_conditioner], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ5
- 重点房间: living_room
- 重点设备: kitchen_smoke_alarm, living_room_smoke_alarm
- 已选事件数: 41

## 跨天活动摘要
- 2026-08-01: living_room=50, dining_room=48, master_bedroom=48, second_bedroom=48, kids_room=48, master_bathroom=48

## 设备事件日志
[2026-08-01T01:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2318
[2026-08-01T01:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2327
[2026-08-01T02:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T02:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2330
[2026-08-01T02:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2336
[2026-08-01T02:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2346
[2026-08-01T02:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2345
[2026-08-01T02:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T02:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2358
[2026-08-01T02:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2344
[2026-08-01T02:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2363
[2026-08-01T02:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2356
[2026-08-01T03:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:00:00] dining_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:00:00] kids_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:00:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:00:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2375
[2026-08-01T03:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2370
[2026-08-01T03:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2368
[2026-08-01T03:16:00] kitchen_smoke_alarm | SmokeCoAlarm.SmokeState = 1
[2026-08-01T03:16:00] living_room_smoke_alarm | SmokeCoAlarm.InterconnectSmokeAlarm = 1
[2026-08-01T03:17:00] living_room_smoke_alarm | SmokeCoAlarm.ExpressedState = 1
[2026-08-01T03:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2377
[2026-08-01T03:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2381
[2026-08-01T03:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2384
[2026-08-01T03:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:30:00] dining_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:30:00] kids_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:30:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:30:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-08-01T03:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2375
[2026-08-01T03:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2386
[2026-08-01T03:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2391
[2026-08-01T03:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2395
[2026-08-01T03:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2394
[2026-08-01T04:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2400

## 任务
监控系统标记了潜在异常。请分析下面的日志，判断是否需要采取响应措施，并给出建议。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "fire_risk",
  "threat_description": "厨房烟雾报警器触发，且客厅互联烟雾报警系统同步响应，表明检测到潜在火灾或烟雾风险。",
  "reasoning": [
    "1. 核心事件识别：日志显示在 2026-08-01T03:16:00，`kitchen_smoke_alarm` 的 `SmokeState` 变为 1（通常表示检测到烟雾/火警）。",
    "2. 联动验证：紧接着在 03:16:00 和 03:17:00，`living_room_smoke_alarm` 的 `InterconnectSmokeAlarm` 和 `ExpressedState` 也变为 1。这符合 Matter 协议中烟雾报警器互联集群的标准行为，即一个探测器报警会触发其他互联探测器的状态更新，确认为真实的全局警报而非单点误报。",
    "3. 排除误报可能性：虽然此时段（凌晨 3:00-4:00）所有房间的运动传感器均显示无人（Occupancy = 0），但这排除了因住户烹饪疏忽导致的“未看管烹饪”场景，更倾向于设备故障、电气短路或外部因素引发的真实火情风险，或者严重的传感器误报。鉴于烟雾报警的高风险性，必须按真实威胁处理。",
    "4. 温度数据辅助分析：客厅温度传感器读数在 23°C - 24°C 之间波动，属于正常室温范围，未见急剧升温，这可能意味着烟雾是局部产生的（如厨房电器故障），或者传感器对烟雾敏感度高而对热量不敏感。"
  ],
  "key_evidence": [
    "[2026-08-01T03:16:00] kitchen_smoke_alarm | SmokeCoAlarm.SmokeState = 1",
    "[2026-08-01T03:16:00] living_room_smoke_alarm | SmokeCoAlarm.InterconnectSmokeAlarm = 1",
    "[2026-08-01T03:17:00] living_room_smoke_alarm | SmokeCoAlarm.ExpressedState = 1"
  ],
  "recommended_actions": [
    "立即通过智能家居APP或语音助手确认家中是否有烟雾味或火光，若无法远程确认，建议联系物业或紧急救援服务进行排查。",
    "检查厨房区域是否有正在运行的电器（如烤箱、微波炉）或线路异常，并手动复位烟雾报警器以消除警报声（仅在确认无火灾后操作）。"
  ]
}
```

{
  "is_anomaly": false,
  "confidence": "medium",
  "threat_type": "none",
  "threat_description": "这些变化仍可视为正常波动。",
  "reasoning": [
    "推理步骤1: 没有看到必须报警的直接证据。"
  ],
  "key_evidence": [
    "设备状态变化幅度看起来仍在可接受范围内。"
  ],
  "recommended_actions": [
    "保持观察即可。"
  ]
}


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 三室两厅 (3BR)
- 重点房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher], 厨房漏水传感器[water_leak_detector]
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 dining_room: 餐厅灯[dimmable_light], 餐厅运动传感器[occupancy_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kids_room: 儿童房灯[dimmable_light], 儿童房运动传感器[occupancy_sensor], 儿童房窗帘[window_covering], 儿童房窗户传感器[contact_sensor], 儿童房温度传感器[temperature_sensor]
- 房间 living_room: 客厅主灯[dimmable_light], 客厅副灯[dimmable_light], 客厅氛围灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘1[window_covering], 客厅窗户传感器1[contact_sensor], ... 共10个设备
- 房间 master_bathroom: 主卫灯[onoff_light], 主卫运动传感器[occupancy_sensor], 主卫漏水传感器[water_leak_detector]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧床头灯[onoff_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bathroom: 次卫灯[onoff_light], 次卫漏水传感器[water_leak_detector]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧空调[air_conditioner], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ2
- 重点房间: kitchen
- 重点设备: kitchen_smoke_alarm
- 已选事件数: 51

## 设备事件日志
[2026-08-19T06:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2510
[2026-08-19T07:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2506
[2026-08-19T07:23:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-08-19T07:28:00] dining_room_light | OnOff.OnOff = False
[2026-08-19T07:28:27] front_door_lock | Event: LockOperation(LockOperationType=1, OperationSource=Manual)
[2026-08-19T07:28:31] front_door_lock | Event: LockOperation(LockOperationType=0, OperationSource=Manual)
[2026-08-19T07:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2524
[2026-08-19T07:33:09] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-19T07:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2518
[2026-08-19T07:41:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-19T07:48:30] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-19T07:51:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-19T08:00:00] kitchen_smoke_alarm | SmokeCoAlarm.ContaminationState = 1
[2026-08-19T08:01:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-19T08:08:30] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-19T08:11:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-19T08:18:09] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-19T08:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-08-19T08:31:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-19T08:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-08-20T06:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2508
[2026-08-20T07:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2502
[2026-08-20T07:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2516
[2026-08-20T07:27:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T07:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2509
[2026-08-20T07:39:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T07:41:05] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T07:47:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T07:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2521
[2026-08-20T07:56:27] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T08:00:00] kitchen_smoke_alarm | SmokeCoAlarm.ContaminationState = 2
[2026-08-20T08:07:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T08:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2532
[2026-08-20T08:16:27] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T08:24:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T08:26:05] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T08:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-08-20T09:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-21T06:58:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-08-21T07:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2502
[2026-08-21T07:27:36] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-21T07:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2528
[2026-08-21T07:31:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T07:33:19] kids_room_light | OnOff.OnOff = False
[2026-08-21T07:33:30] front_door_contact | BooleanState.StateValue = True
[2026-08-21T07:38:30] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T07:40:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T07:48:07] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T07:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2517
[2026-08-21T07:56:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-21T08:00:00] kitchen_smoke_alarm | SmokeCoAlarm.ContaminationState = 3

## 任务
系统刚记录到以下一段设备状态变化。请评估这些变化是否已经构成安全风险，并说明原因。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "sensor_malfunction",
  "threat_description": "厨房烟雾报警器连续两天在固定时间（08:00）报告污染状态变化，且无伴随的火灾或烹饪异常迹象，极大概率为传感器硬件故障或误报。",
  "reasoning": [
    "1. 观察日志发现，厨房烟雾报警器（kitchen_smoke_alarm）在2026-08-19 08:00:00 和 2026-08-20 08:00:00 均触发了 `ContaminationState` 属性变更。第一天为1（通常表示轻微污染/需清洁），第二天为2（通常表示严重污染/需更换电池或传感器）。",
    "2. 检查同一时间段内的其他关键设备状态：灶具（cook_surface）在07:23已关闭，之后无开启记录；温度传感器读数平稳上升（从~25°C升至~25.4°C），符合早晨室温自然回升规律，未出现火灾导致的急剧升温；漏水传感器、门窗传感器均无异常触发。",
    "3. 排除真实火情或严重烹饪污染：若存在真实烟雾，通常会伴随用户活动（如运动传感器频繁触发）、空调启动（试图排烟）或手动干预。然而，08:00时各房间 occupancy 传感器虽有零星触发（可能是日常走动），但缺乏与火灾相关的紧急行为模式。",
    "4. 结论：在没有任何实际火灾迹象的情况下，烟雾报警器连续两天在同一精确时间点报告污染等级升级，这是典型的传感器内部元件老化、灰尘积聚导致误判或固件逻辑错误的特征，属于传感器故障而非环境威胁。"
  ],
  "key_evidence": [
    "[2026-08-19T08:00:00] kitchen_smoke_alarm | SmokeCoAlarm.ContaminationState = 1",
    "[2026-08-20T08:00:00] kitchen_smoke_alarm | SmokeCoAlarm.ContaminationState = 2",
    "[2026-08-19T07:23:00] kitchen_cook_surface | OnOff.OnOff = False (此后无开启)",
    "Kitchen temperature sensor shows normal gradual increase (2510 -> 2544), no spike indicative of fire."
  ],
  "recommended_actions": [
    "立即通过智能家居App查看烟雾报警器的具体错误代码或维护建议。",
    "尝试对烟雾报警器进行物理清洁（使用吸尘器或压缩空气清理进气口），以排除灰尘堆积导致的误报。",
    "如果清洁后问题依旧，建议联系售后更换烟雾报警器模块，因为连续两天的污染状态升级可能意味着传感器已失效，无法在真正火灾时提供保护。"
  ]
}
```

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "fire_risk",
  "threat_description": "厨房烟雾报警器在连续三天同一时间段（约早上 8:00）检测到污染状态，且伴随厨房温度异常升高，存在严重的火灾风险。",
  "reasoning": [
    "推理步骤 1: 分析关键设备日志，发现 kitchen_smoke_alarm 在 2026-08-19、2026-08-20 和 2026-08-21 的 08:00 左右均报告了 SmokeCoAlarm.ContaminationState 的变化（分别为 1, 2, 3），表明传感器持续检测到烟雾或燃烧产物。",
    "推理步骤 2: 关联厨房温度传感器数据，观察到在烟雾报警触发前后，kitchen_temp_sensor 的温度读数显著高于正常室温（例如 2544, 2551, 2540 等数值对应摄氏度为 25.44°C, 25.51°C 等，虽然绝对值看似不高，但结合上下文需确认单位是否为 mK 或是否存在其他高温源；然而更关键的证据是烟雾报警器的持续激活）。*修正推理：重新审视温度数据，25xx 通常代表毫开尔文 (mK) 或特定协议下的编码值。若按标准 Matter 温度测量，2500 mK = 22.7°C。但在火灾场景下，如果温度传感器同时上报异常高值（如超过 60°C 即 333 K / 333000 mK），则确认为过热。此处温度数值相对稳定在 2500-2550 范围，可能未直接显示极端高温，但烟雾报警器的 ContaminationState 递增（1->2->3）是明确的危险信号，表明污染物浓度在增加或处于持续暴露状态。*",
    "推理步骤 3: 综合判断，尽管温度读数未显示极端爆表（可能是传感器位置或单位问题，或者火情初期），但烟雾报警器连续三天在同一时间点发出污染警报，且状态码递增，这极大概率指向厨房内有持续的微小火灾（如油锅起火初期、燃气泄漏燃烧）或严重的通风不良导致的一氧化碳/烟雾积聚。考虑到这是连续三天的重复事件，属于严重的安全隐患，不能视为误报。",
    "推理步骤 4: 排除其他可能性，入户门锁操作正常，人员活动轨迹符合日常作息，无入侵迹象。核心问题集中在厨房区域的火灾探测设备上。"
  ],
  "key_evidence": [
    "2026-08-19T08:00:00, 2026-08-20T08:00:00, 2026-08-21T08:00:00 三个时间点 kitchen_smoke_alarm 均报告 ContaminationState 变化且数值递增 (1 -> 2 -> 3)。",
    "厨房温度传感器在报警时段内读数波动较大 (2518 -> 2544 -> 2551)，虽未达极高值，但配合烟雾报警提示可能存在局部热源或燃烧过程。"
  ],
  "recommended_actions": [
    "立即通知住户前往厨房检查，关闭所有火源并开窗通风。",
    "建议住户联系专业消防部门或物业进行上门排查，检查灶具及排烟系统。",
    "在问题解决前，暂时禁用厨房自动点火功能或设置烹饪提醒，防止无人看管烹饪。"
  ]
}
```