недавно обновился на bullseye, но после этого всё работало
сегодня решил обновить прошивки всех устройств
после этого отвалилась логика с датчиком движения
var motion_timer_1_timeout_ms = 20 * 1000;
var motion_timer_1_id = null;
defineRule("wb-msw-v3_194/Current Motion", {
whenChanged: "wb-msw-v3_194/Current Motion",
then: function (newValue, devName, cellName) {
var date = new Date();
if (newValue>50) {
log.info('motion is {}', newValue)
if ((date.getHours() >= 15 || date.getHours() < 6) && !dev["virtual-koridor"]["kartina"] && !dev["virtual-koridor"]["spot"]) {
dev["virtual-koridor"]["pol"] = true;
if (motion_timer_1_id) {
clearTimeout(motion_timer_1_id);
}
motion_timer_1_id = setTimeout(function () {
dev["virtual-koridor"]["pol"] = false;
motion_timer_1_id = null;
}, motion_timer_1_timeout_ms);
}
}
},
});
в логах сервиса wb-rules вижу такое
мар 12 16:28:33 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '41.23', passing raw, error: This control is incomplete
мар 12 16:28:33 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '40.09', passing raw, error: This control is incomplete
мар 12 16:28:33 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '38.76', passing raw, error: This control is incomplete
мар 12 16:28:34 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Max Motion: failed to convert value '233', passing raw, error: This control is incomplete
мар 12 16:28:34 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Current Motion: failed to convert value '362', passing raw, error: This control is incomplete
мар 12 16:28:34 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Humidity: failed to convert value '33.7', passing raw, error: This control is incomplete
мар 12 16:28:34 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '36.7', passing raw, error: This control is incomplete
мар 12 16:28:34 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '37.37', passing raw, error: This control is incomplete
мар 12 16:28:35 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Max Motion: failed to convert value '374', passing raw, error: This control is incomplete
мар 12 16:28:35 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Current Motion: failed to convert value '461', passing raw, error: This control is incomplete
мар 12 16:28:35 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '39.12', passing raw, error: This control is incomplete
мар 12 16:28:35 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '40.68', passing raw, error: This control is incomplete
мар 12 16:28:36 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Max Motion: failed to convert value '465', passing raw, error: This control is incomplete
мар 12 16:28:36 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Current Motion: failed to convert value '327', passing raw, error: This control is incomplete
мар 12 16:28:36 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Humidity: failed to convert value '33.8', passing raw, error: This control is incomplete
мар 12 16:28:36 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '47.66', passing raw, error: This control is incomplete
мар 12 16:28:36 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '45.71', passing raw, error: This control is incomplete
мар 12 16:28:36 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '43.71', passing raw, error: This control is incomplete
мар 12 16:28:37 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Current Motion: failed to convert value '236', passing raw, error: This control is incomplete
мар 12 16:28:37 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '35.78', passing raw, error: This control is incomplete
мар 12 16:28:37 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '35.51', passing raw, error: This control is incomplete
мар 12 16:28:38 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Max Motion: failed to convert value '397', passing raw, error: This control is incomplete
мар 12 16:28:38 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Current Motion: failed to convert value '263', passing raw, error: This control is incomplete
мар 12 16:28:38 wirenboard-AFYS6PYF wb-rules[1747]: WARNING: wb-msw-v3_194/Sound Level: failed to convert value '47.59', passing raw, error: This control is incomplete
то есть до моего логирования не доходит даже
log.info('motion is {}', newValue)
что следует предпринять?
Wirenboard release staging.07768.cf98af374eb4 (as testing), target wb7/bullseye
You can get this info in scripts from /usr/lib/wb-release.