05.07.2021, 09:27
If you want to do a kind of AND/OR gate then you need this. Change group addresses as needed and you can change && (AND) to || (OR).
Code:
$(function(){
var v1 = false, v2 = false;
function set() {
$(".hidebyknx").toggleClass("hide", v1 && v2);
}
grp.listen('1/1/1', function(object, state) {
v1 = object.value;
set();
}, true);
grp.listen('1/1/2', function(object, state) {
v2 = object.value;
set();
}, true);
});