From d7c01ea428985f7e888ff03842c7e8d98efcf859 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Fri, 5 Jul 2024 10:50:39 +0200 Subject: [PATCH] [jsscripting] Fix notification builder examples (#16999) Signed-off-by: Florian Hotze Signed-off-by: Ciprian Pascu --- bundles/org.openhab.automation.jsscripting/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.automation.jsscripting/README.md b/bundles/org.openhab.automation.jsscripting/README.md index 688072d98f2..156d131af76 100644 --- a/bundles/org.openhab.automation.jsscripting/README.md +++ b/bundles/org.openhab.automation.jsscripting/README.md @@ -778,7 +778,7 @@ actions.notificationBuilder('Hello World!') actions.notificationBuilder('Hello World!') .withIcon('f7:bell_fill').withTag('important').withTitle('Important Notification') .withOnClickAction('ui:navigate:/page/my_floorplan_page').withMediaAttachmentUrl('http://example.com/image.jpg') - .addActionButton('Turn Kitchen Light ON=command:KitchenLights:ON').addActionButton('Turn Kitchen Light OFF=command:KitchenLights:OFF').send(); + .addActionButton('Turn Kitchen Light ON', 'command:KitchenLights:ON').addActionButton('Turn Kitchen Light OFF', 'command:KitchenLights:OFF').send(); // Send a simple standard notification to two specific users actions.notificationBuilder('Hello World!').addUserId('florian@example.com').addUserId('florian@example.org').send();