Control Sensibo smart AC devices via their REST API. Use when the user asks to turn on/off AC, change temperature, set modes, check room temperature/humidity, or manage climate schedules. Triggers on phrases like "turn on AC", "set bedroom to 22", "how hot is it", "AC off", "cooling mode".
通过 Sensibo REST API 控制智能空调设备。
| 房间 | 设备 ID |
|------|-----------|
| 客厅 | abc123 |
| 卧室 | xyz789 |
基础 URL: https://home.sensibo.com/api/v2
认证: ?apiKey={key} 查询参数
始终使用: --compressed 标志以获得更好的速率限制
bash
curl --compressed -X POST https://home.sensibo.com/api/v2/pods/{device_id}/acStates?apiKey={key} \
-H Content-Type: application/json -d {acState:{on:true}}
bash
curl --compressed -X PATCH https://home.sensibo.com/api/v2/pods/{device_id}/acStates/targetTemperature?apiKey={key} \
-H Content-Type: application/json -d {newValue:23}
选项:cool(制冷)、heat(制热)、fan(送风)、auto(自动)、dry(除湿)
bash
curl --compressed -X PATCH https://home.sensibo.com/api/v2/pods/{device_id}/acStates/mode?apiKey={key} \
-H Content-Type: application/json -d {newValue:cool}
选项:low(低)、medium(中)、high(高)、auto(自动)
bash
curl --compressed -X PATCH https://home.sensibo.com/api/v2/pods/{device_id}/acStates/fanLevel?apiKey={key} \
-H Content-Type: application/json -d {newValue:auto}
bash
curl --compressed -X POST https://home.sensibo.com/api/v2/pods/{device_id}/acStates?apiKey={key} \
-H Content-Type: application/json \
-d {acState:{on:true,mode:cool,targetTemperature:22,fanLevel:auto,temperatureUnit:C}}
| 属性 | 类型 | 值 |
|---|---|---|
| on | 布尔值 | true, false |
| mode |
在字段中包含 measurements:
bash
curl --compressed https://home.sensibo.com/api/v2/pods/{device_id}?fields=measurements&apiKey={key}
响应包含:
json
{measurements: {temperature: 24.5, humidity: 55, time: 2024-01-15T12:00:00Z}}
bash
curl --compressed https://home.sensibo.com/api/v2/pods/{device_id}/historicalMeasurements?days=1&apiKey={key}
bash
curl --compressed -X PUT https://home.sensibo.com/api/v2/pods/{device_id}/smartmode?apiKey={key} \
-H Content-Type: application/json -d {enabled:true}
bash
curl --compressed -X POST https://home.sensibo.com/api/v2/pods/{device_id}/smartmode?apiKey={key} \
-H Content-Type: application/json \
-d {
enabled: true,
lowTemperatureThreshold: 20,
lowTemperatureState: {on: true, mode: heat},
highTemperatureThreshold: 26,
highTemperatureState: {on: true, mode: cool}
}
注意: 定时任务使用 API v1 基础 URL:https://home.sensibo.com/api/v1
bash
curl --compressed https://home.sensibo.com/api/v1/pods/{device_id}/schedules/?apiKey={key}
bash
curl --compressed -X POST https://home.sensibo.com/api/v1/pods/{device_id}/schedules/?apiKey={key} \
-H Content-Type: application/json \
-d {
targetTimeLocal: 22:00,
timezone: Europe/London,
acState: {on: false},
recurOnDaysOfWeek: [sunday,monday,tuesday,wednesday,thursday,friday,saturday]
}
bash
curl --compressed -X DELETE https://home.sensibo.com/api/v1/pods/{deviceid}/schedules/{scheduleid}/?apiKey={key}
设置一次性延迟操作:
bash
curl --compressed -X PUT https://home.sensibo.com/api/v1/pods/{device_id}/timer/?apiKey={key} \
-H Content-Type: application/json \
-d {minutesFromNow: 30, acState: {on: false}}
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 sensibo-1776366550 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 sensibo-1776366550 技能
skillhub install sensibo-1776366550
文件大小: 2.23 KB | 发布时间: 2026-4-17 14:39