VH
Size: a a a
VH
VH
VH
var modus, obj_state, obj_switch, i;
// Список лампочек
obj_state = ['zigbee.0.00178801043de586.state', 'zigbee.0.ec1bbdfffea8de08.state'];
// Выключатель
obj_switch = 'zigbee.0.680ae2fffe14f19e.state';
on({id: obj_switch, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
for (var i_index in obj_state) {
i = obj_state[i_index];
setStateDelayed(i, getState(obj_switch).val, false, 0, false);
console.log('vkl');
}
});
VH
VS
VH
VS
VH
VH
VH
VH
VS
М
VS
VH
VS
М
VS
VS