File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -855,6 +855,13 @@ actions.notificationBuilder('Hello World!').logOnly().send();
855
855
// Sends a simple log notification with icon and tag
856
856
actions .notificationBuilder (' Hello World!' ).logOnly ()
857
857
.withIcon (' f7:bell_fill' ).withTag (' important' ).send ();
858
+
859
+ // Sends a notification about a temperature change ...
860
+ actions .notificationBuilder (' new temperature: xyz' ).withIcon (' oh:temperature' ).withTag (' Temperature change' ).withReferenceId (' livingRoom' ).send ();
861
+ // ... and hides it again after 10 minutes
862
+ setTimeout (() => {
863
+ actions .notificationBuilder ().hide ().withReferenceId (' livingRoom' ).send ();
864
+ }, 10 * 60 * 1000 );
858
865
` ` `
859
866
860
867
See [openhab-js : actions.NotificationBuilder](https://openhab.github.io/openhab-js/actions.html#.notificationBuilder) for complete documentation.
You can’t perform that action at this time.
0 commit comments