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.

Page opening at event
#4
Custom JS:
Code:
localbus.listen('object', '0/0/1', (value) => {
  if (value) {
    Visu.showPlan(12);
  }
  else {
    Visu.showPlan(5);
  }
});
Replace number with visu page id found in URL: http://192.168.0.10/apps/data/visu/#12

Visu.showPlan(12) is when ga 0/0/1 is ON and  Visu.showPlan(5); is when 0/0/1 is OFF

If it is for a doorbell, you can put an event script on 0/0/1 to set it back to OFF after a certain time
Reply


Messages In This Thread
Page opening at event - by Frank68 - 10.09.2025, 08:35
RE: Page opening at event - by Daniel - 10.09.2025, 09:43
RE: Page opening at event - by Frank68 - 10.09.2025, 13:28
RE: Page opening at event - by Frank68 - Yesterday, 12:57
RE: Page opening at event - by Novodk - 10.09.2025, 14:25
RE: Page opening at event - by Daniel - Yesterday, 13:38

Forum Jump: