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.

Passage from one HK/LM to another
#1
Hi,
I would like to know if there is a simple way to switch from viewing one HomeLynk / LM to another without nesting the visualization of the other but really opening up the visualization of the second HK / LM.
Thanks.
Reply
#2
Hi,

Use this as custom javascript on object bit 1/1/1 in both controllers:
Code:
$(function() {
  if (typeof grp != 'undefined') {
     grp.listen('1/1/1', function(object, state) {
         var value = object.value;
         if (state == 'value') {
            if (value == 0) {
              $(location).attr('href', 'http://admin:admin@192.168.0.10/scada-vis');
            } else {
              $(location).attr('href', 'http://admin:admin@192.168.0.11/scada-vis');    
           }
         }
      }, true);  
  }
});
Make sure both controllers have this custom javascript, the object 1/1/1 and can communicate over KNX IP or KNX TP so object value will be always the same in both controllers

BR,

Erwin
Reply
#3
Hi Erwin,
Very good.
Thanks
Reply


Forum Jump: