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.

Alarm system sensor list
#2
All objects that you want to show must have alarm tag attached. Use label element to display this text, set Additional classes to alarm.
Add to custom JavaScript:
Code:
$(function() {
  if (typeof grp != 'object') {
    return;
  }

  function update() {
    var text = [];

    $.each(grp.tag('alarm'), function(id, object) {
      if (object.value) {
        text.push(object.name + ' is ON');
      }
    });

    $('.alarm').css('white-space', 'pre').text(text.join('\n'));
  }

  grp.taglisten('alarm', update, true);
});
Reply


Messages In This Thread
Alarm system sensor list - by Domoticatorino - 12.04.2020, 22:53
RE: Alarm system sensor list - by admin - 14.04.2020, 08:05
RE: Alarm system sensor list - by admin - 15.04.2020, 05:58
RE: Alarm system sensor list - by admin - 15.04.2020, 14:53
RE: Alarm system sensor list - by admin - 20.04.2020, 08:26
RE: Alarm system sensor list - by admin - 20.04.2020, 09:14
RE: Alarm system sensor list - by admin - 20.04.2020, 11:10
RE: Alarm system sensor list - by admin - 20.04.2020, 11:29

Forum Jump: