Bei folgendem Script wird das window icon angezeigt und das fire icon nicht.
das Icon sollte es geben, siehe: https://www.openhab.org/docs/configurat ... s/classic/
Code: Alles auswählen
'use strict';
var logger = Java.type("org.slf4j.LoggerFactory").getLogger("org.openhab.rule." + ctx.ruleUID);
var notifications = Java.type("org.openhab.io.openhabcloud.NotificationAction");
var strMessage;
strMessage = "test fire icon"
logger.info(strMessage);
notifications.sendBroadcastNotification(strMessage, "fire", "high");
strMessage = "test window icon"
logger.info(strMessage);
notifications.sendBroadcastNotification(strMessage, "window", "info");