14.04.2020, 08:05
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:
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);
});