This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Enable/Disable Widget Visualization by an 1bit Object
#1
Hey Guys,  Big Grin

Hope everything´s good on these difficult days.

I write this thread looking for help cuz' I'd like to Show/Hide a Widget on my visualization by using an 1 bit KNX Object

Something like...

If KNXObject="True" then 
//Show Widget
Else
//Hide Widget
end

I know it´s not so easy as that Confused , but it´s kinda the main idea, if anyone can help me with that i'll be grateful

BR....
Reply
#2
https://forum.logicmachine.net/showthrea...41#pid5041
------------------------------
Ctrl+F5
Reply
#3
Hi,

This is the original clean custom JS :
Code:
$(function(){
 grp.listen('1/1/1', function(object, state) {
    if (state == 'value' && object.value == true ) {
        $("#widget-1").removeClass("hide");
   } else if (state == 'value' && object.value == false ) {
        $("#widget-1").addClass("hide");
   }
  }, true);
});
BR,

Erwin
Reply


Forum Jump: