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
#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


Messages In This Thread
RE: Passage from one HK/LM to another - by Erwin van der Zwart - 20.06.2017, 19:16

Forum Jump: