Seite 1 von 1

BroadcastNotification Icon wird nicht angezeigt

Verfasst: 22. Jan 2022 11:28
von ML_1982
ich benutze Openhab 3.2.0 und die Android App.

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");   

So sieht das dann auf dem Handy aus:
2022-01-22_11h27_53.png

Re: BroadcastNotification Icon wird nicht angezeigt

Verfasst: 6. Feb 2022 10:04
von ML_1982
ich weiß nicht warum, aber mitlerweile funktioniert es.