]> git.basschouten.com Git - openhab-addons.git/commitdiff
[jsscripting] Fix notification builder examples (#16999)
authorFlorian Hotze <florianh_dev@icloud.com>
Fri, 5 Jul 2024 08:50:39 +0000 (10:50 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jul 2024 08:50:39 +0000 (10:50 +0200)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
bundles/org.openhab.automation.jsscripting/README.md

index 688072d98f261a6ba5186c188ecede6b97415ff9..156d131af76cd1e6162be88964634edbb17ec246 100644 (file)
@@ -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();