mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[jsscripting] Fix notification builder examples (#16999)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This commit is contained in:
parent
2d412023a9
commit
5487b9c05d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user