query_history
Query local event history of smart home devices to answer questions about past events, such as door openings or appliance status changes.
Instructions
查询本地事件历史,回答"今天门开过几次""洗衣机几点跑完"这类问题。
事件在 mijia-home-mcp watch 运行期间、以及每次 get_home_changes
调用时记录,保留 30 天;记录之外的时段没有数据。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prop | No | 属性名过滤,支持 glob(如 "door-state")。 | |
| limit | No | 最多返回条数,默认 100,上限 500。 | |
| since | No | 起始时间(ISO 格式,如 2026-07-12T14:00);默认 24 小时前。 | |
| until | No | 截止时间;默认现在。 | |
| device | No | 设备名过滤,支持 glob(如 "门锁*")。 | |
| event_type | No | 事件类型过滤。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||