← 返回 Skills 市场
spacesq

S2 Light Perception

作者 MilesXiang · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
149
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install s2-light-perception
功能描述
S2-SP-OS Light Radar. Real LAN UDP discovery and local API calls (Hue/Wiz) to create a 4sqm voxel light memzero. / S2-SP-OS 光之雷达。真实的局域网UDP发现与本地API调用,逆向推算4平米光...
安全使用建议
This skill actively scans your local network and sends UDP broadcasts/SSDP multicasts to discover Hue/Wiz devices and then makes local HTTP/UDP calls to query state. That behavior is expected for its purpose but can be noisy and may violate some network policies. Before installing or running: (1) only run it on trusted/private networks or with permission from your network administrator; (2) review the included light.py yourself — it is the only code that will run and there are no hidden downloads; (3) note that 'mqtt' is advertised but not implemented in the code, and the Hue username is a placeholder (queries to Hue bridges may fail without a real user token); (4) consider whether active device discovery is acceptable for your environment. If you need the agent to avoid any network activity, do not install or run this skill.
能力评估
Purpose & Capability
Name/description describe active LAN discovery and local Hue/Wiz calls; the skill only requires python3 and performs UDP/SSDP and HTTP calls to discovered devices — this matches the stated purpose. Small mismatch: the CLI and README mention 'mqtt' as a protocol, but the code implements only 'hue' and 'wiz' handlers.
Instruction Scope
SKILL.md explicitly instructs the agent to perform active network scans (UDP broadcast to port 38899 and SSDP multicast to 239.255.255.250:1900) and to make local HTTP/UDP calls — this is expected given the purpose but is network-active behavior that will generate traffic on the LAN. The skill enforces a '--consent-granted true' gate for read operations; discovery does not require consent. No instructions attempt to read unrelated local files or exfiltrate data to external endpoints.
Install Mechanism
No install spec; instruction-only with an included Python script. No downloads or archive extraction; low install risk. Execution uses only the standard library (socket, urllib).
Credentials
The skill requests no environment variables or credentials. It does include a hardcoded placeholder Hue username path ('s2-agent-user') noted in comments as a stub — this is not a secret but may cause authentication failures when querying Hue bridges. No unrelated credentials or config paths are requested.
Persistence & Privilege
The skill is not marked 'always' and does not persist or modify other skills or system settings. It performs actions only when executed and does not request elevated or persistent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install s2-light-perception
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /s2-light-perception 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Version 1.0.2 of s2-light-perception is a major update focused on real network-based light discovery and control. - Switched from simulated to 100% real network-active radar using true UDP Broadcast (Port 38899) and SSDP Multicast (Port 1900). - Introduced zero-dependency, native Python implementation for device discovery and state reading (no third-party libraries). - Clarified instructions: device scanning and state fetching now require real network communication. - Added robustness: estimated_lux defaults safely if real network access to a device fails. - Updated documentation to emphasize real network interaction and provide clearer sample usage.
v1.0.1
No major code changes. Documentation improvements and internationalization. - Improved SKILL.md with clearer English/Chinese descriptions and instructions. - Added homepage field in metadata for easy reference. - Enhanced bilingual documentation for all sections, making usage and features more accessible for English and Chinese users. - Streamlined feature list for better readability and user guidance.
v1.0.0
- Initial release of S2-Light-Perception, integrating real-world light sensors and smart lighting states into unified 4㎡ grid light memory (Memzero). - Supports active local network discovery of smart lights (Philips Hue, Wiz) and state extraction (on/off, brightness, color temperature). - Translates light device data into S2 spatial memory grid for environmental awareness. - Includes offline calculation of lighting effects on circadian rhythm and health, with actionable suggestions. - Provides instructions for scanning, grid authorization, and lighting insight phases.
元数据
Slug s2-light-perception
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

S2 Light Perception 是什么?

S2-SP-OS Light Radar. Real LAN UDP discovery and local API calls (Hue/Wiz) to create a 4sqm voxel light memzero. / S2-SP-OS 光之雷达。真实的局域网UDP发现与本地API调用,逆向推算4平米光... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 149 次。

如何安装 S2 Light Perception?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install s2-light-perception」即可一键安装,无需额外配置。

S2 Light Perception 是免费的吗?

是的,S2 Light Perception 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

S2 Light Perception 支持哪些平台?

S2 Light Perception 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 S2 Light Perception?

由 MilesXiang(@spacesq)开发并维护,当前版本 v1.0.2。

💬 留言讨论