20.06.2017, 19:16
(This post was last modified: 20.06.2017, 19:29 by Erwin van der Zwart.)
Hi,
Use this as custom javascript on object bit 1/1/1 in both controllers:
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
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);
}
});
BR,
Erwin