RLX_logClean/start_monitor.sh

17 lines
586 B
Bash

# 创建场景
tail -f /tmp/tuya.log | grep '\] Rev MQTT:' | grep '"ruleId":' | awk -f ./logDataClean.awk >> /data/SceneLinkage &
# 触发场景
tail -f /tmp/tuya.log | grep 'condition set is ok,then execute action set. scene:' |awk -f >>
# 子设备上报
# 是否有相关场景( dp \d+ match | no dp match)
# 条件判断(conditions check finish. result:true)
# 条件判断结果(condition set is ok,then execute action set. scene:6DAMVviZamUqanPP, 0x8b26d8)
# 动作执行(in work-queue. execute scene:6DAMVviZamUqanPP begin)([scene_linkage_rule_exe.c)
# 子设备上报