AgentSkillsCN

sensibo

通过 Sensibo API 检查并控制家用空调设备。适用于被询问空调状态、室内温度、湿度,或需要开关空调、调节设定温度时使用。

SKILL.md
--- frontmatter
name: sensibo
description: Check and control home AC units via Sensibo API. Use when asked about AC status, room temperature, humidity, or to turn AC on/off/set temperature.
license: MIT
metadata:
  author: qron
  version: "1.0.0"

Sensibo AC Control

Check status and control AC units via the Sensibo API.

Setup

  1. Get your API key from Sensibo account settings
  2. Create a .env file in the skill directory with SENSIBO_API_KEY=your_key, or export it in your shell

Script

Use {baseDir}/sensibo.sh for all operations:

bash
{baseDir}/sensibo.sh                      # Show all AC units status
{baseDir}/sensibo.sh status bedroom        # Show specific room
{baseDir}/sensibo.sh on bedroom            # Turn on AC
{baseDir}/sensibo.sh off bedroom           # Turn off AC
{baseDir}/sensibo.sh set bedroom 24        # Set temperature to 24°C
{baseDir}/sensibo.sh devices               # List all device IDs

Interpreting Results

  • Status ON: AC is actively running — shows mode, target temp, fan level, and current sensor readings
  • Status OFF: AC is off but device is connected
  • Connected: No: Device hasn't reported in >1 hour (likely unplugged or offline)

Answering User Questions

When the user asks about AC status, run the script and present results conversationally:

  • "Is the AC on?" → Run status, report which units are on/off
  • "What's the temperature?" → Run status, report current temperature and humidity
  • "Turn off the AC" → If only one device is connected, act on it. If ambiguous, ask which room
  • "Set AC to 24" → Use the set command on the active/connected device