05.07.2021, 08:11
The whole script can be written much shorter, but for this to work the object value must be binary (true/false).
Code:
$(function(){
grp.listen('1/1/1', function(object, state) {
$(".hidebyknx").toggleClass("hide", object.value);
}, true);
});