dali-short-address-commissioner
它能做什么
这个代理可以帮你搭建 DALI 照明系统。它能发现灯具、解决地址冲突,并把灯具整理好。
适用场景
- ✓安装新的 DALI 照明系统时。
- ✓灯具之间出现地址冲突时。
- ✓向已有系统中添加新灯具时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/dali-short-address-commissioner/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我搭建 DALI 照明系统,并分配地址。”
每周 5 个新技能,1 分钟读完。
工作原理
它会按照固定顺序向 DALI 灯具发送特定指令来与之通信。先找到灯具,再解决地址问题,最后把它们整理好。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
DALI Short-Address Commissioner: Deterministic IEC 62386 Bus Provisioning
Systematically discover, resolve address collisions, assign short addresses (0–63), program groups and scenes, configure DT8 color gear, and schedule emergency battery duration tests on DALI and DALI-2 networks per IEC 62386.
When to Use This Skill
Activate this skill when:
- Bringing up, commissioning, or expanding DALI or DALI-2 lighting installations (KNX/DALI gateways, Tridonic, Philips Dynalite, Helvar, Osram, Lunatone).
- The user asks: "How do I commission this DALI bus?", "Fix duplicate DALI short addresses", "Assign DALI addresses without erasing existing fixtures", or "Program DALI groups and DT8 tunable white".
- Resolving address clash loops where multiple ballasts respond simultaneously to broadcast queries.
- Designing or scheduling DALI-2 Part 202 emergency lighting duration and function tests across staggered floor circuits.
Do NOT use this skill when:
- Commissioning DMX512/RDM stage lighting, 0–10V analog dimming, or proprietary wireless RF networks (Zigbee, Bluetooth Mesh, Casambi).
- Diagnosing dead ballasts or physical wiring faults before basic DALI bus voltage (12V–20.5V DC) and current limits (<= 250mA) are confirmed.
- Programming building-wide KNX logic (this skill covers the DALI protocol domain strictly).
Core Mental Models & Non-Negotiable Rules
The 64-Address Bus Capacity Law:
- A single DALI subnet supports strictly 0 to 63 short addresses (64 control gear units maximum).
- Groups are strictly bounded to 0 to 15 (16 groups).
- Scenes are strictly bounded to 0 to 15 (16 scenes).
- If an installation has 65+ ballasts, the physical bus MUST be segmented into multiple DALI subnets with separate line masters or gateways.
The Double-Command 100ms Transmission Invariant:
- Configuration and addressing commands (INITIALISE [cmd 258], RANDOMISE [259], SET SHORT ADDRESS [267], ENABLE WRITE [cmd 32], etc.) MUST be transmitted twice within 100ms to be executed by control gear.
- Sending an addressing command only once will result in silent ignored execution by all IEC 62386 compliant gear.
The 15-Minute Hardware Commissioning Timer:
- Transmitting
INITIALISE(cmd 258) starts a mandatory 15-minute countdown timer inside every ballast's micro-controller. - All discovery, random address binary searching, and short address assignment MUST complete within 15 minutes, or the bus must receive a periodic keep-alive
INITIALISErefresh. - Upon completion, the master MUST transmit
TERMINATE(cmd 257) to lock operational memory and exit programming state.
- Transmitting
24-Bit Random Address Binary Search ($2^{24} = 16,777,216$ Space):
- When gear enters randomizing state (
RANDOMISE), each unit generates a pseudo-random 24-bit integer (0x000000to0xFFFFFF). - The master searches the 24-bit space using
SEARCHADDRH,SEARCHADDRM,SEARCHADDRLandCOMPARE(cmd 265). - If multiple ballasts match, the master performs binary search down to a single device.
- Once isolated, assign short address via
PROGRAM SHORT ADDRESS(cmd 267) and immediately transmitWITHDRAW(cmd 266) so the addressed fixture drops out of remaining search iterations.
- When gear enters randomizing state (
Physical Identify & Non-Destructive Extension Invariant:
- Every assigned short address MUST be verified visually using
IDENTIFYor togglingRECALL MAX LEVEL/OFFbefore committing to lighting schedules. - When adding fixtures to an existing operational line, NEVER broadcast a global
INITIALISE (all); useINITIALISE (without short address)so already-commissioned ballasts (0–63) preserve their programming.
- Every assigned short address MUST be verified visually using
Named Sins & Anti-Patterns (Что категорически ЗАПРЕЩЕНО)
| Anti-Pattern | Manifestation in Code/Workflow | Mandatory Production Counter-Rule |
|---|---|---|
| Single-Shot Addressing Commands | Sending cmd 258 or cmd 267 once without repetition. | Always repeat configuration commands within a strict 100ms window. |
| Exceeding 64 Short Addresses | Attempting to assign address 64 or 65 on one loop. | Partition into Subnet A and Subnet B; enforce 0–63 maximum. |
| Timer Starvation | Letting the 15-minute INITIALISE window expire mid-search. |
Issue keep-alive refresh or optimize binary search loop to < 3 minutes. |
…
常见问题
我最多可以连接多少个灯具?
一个 DALI 系统一次最多支持 64 个灯具。
如果两个灯具的地址相同会怎样?
代理会检测到这种情况,并为每个灯具分配唯一地址,从而解决冲突。
我可以用它来处理其他类型的照明吗?
不可以,这个代理只适用于 DALI 和 DALI-2 照明系统。
详情
作者的原始描述
Commissions DALI and DALI-2 (IEC 62386) lighting buses: short-address assignment (0-63), 24-bit binary search collision resolution, groups, and DT8 color control. Trigger phrases: commission dali, dali short address, dali collision resolution, dali bus addressing, dali-2 setup.
热度
- GitHub 星标
- 48k
- 排名
- #4315
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。