diff --git a/bundles/org.openhab.automation.jsscripting/README.md b/bundles/org.openhab.automation.jsscripting/README.md index fee830672a5..158a21ef035 100644 --- a/bundles/org.openhab.automation.jsscripting/README.md +++ b/bundles/org.openhab.automation.jsscripting/README.md @@ -802,10 +802,10 @@ actions.notificationBuilder('Hello World!').logOnly() .withIcon('f7:bell_fill').withTag('important').send(); // Sends a notification about a temperature change ... -actions.notificationBuilder(str).withIcon("oh:temperature").withTag("Temperature change").withReferenceId("living room").send(); -// ... and hides it after 10 minutes +actions.notificationBuilder(str).withIcon('oh:temperature').withTag('Temperature change').withReferenceId('livingRoom').send(); +// ... and hides it again after 10 minutes setTimeout(() => { - actions.notificationBuilder().hide().withReferenceId("living room").send(); + actions.notificationBuilder().hide().withReferenceId('livingRoom').send(); }, 10 * 60 * 1000); ```