# 智能家居控制系统 —— 无人值守演示脚本(回放用) # '#' 开头为注释;空行忽略。运行:./build/debug/smart_home --replay scripts/demo.txt help list list 灯 power 1 on dim 1 70 power 3 off # 注:离线设备会被拒绝——#8 阳台灯为离线,power 8 on 返回 SHS_ERR_STATE, # 该负例由 scripts/acceptance.sh 与单元测试断言,回放脚本只走正常路径 # 门锁:解锁 → 带密码上锁(错误密码与冷却路径由 acceptance.sh A9 与单元测试覆盖) lock unlock lock 4 1234 scene 回家 sensors ac 2 24 scene 睡眠 schedule set 0 7 1 schedule set 0 9 2 schedule set 0 18 3 schedule set 0 23 4 schedule show report frame 1 2 1 frame 1 1 0 log 10 save list selftest quit