mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Implemented suggestions
Signed-off-by: Eric Bodden <eric.bodden@upb.de>
This commit is contained in:
parent
228f6fa916
commit
e4992701cf
@ -802,10 +802,10 @@ actions.notificationBuilder('Hello World!').logOnly()
|
|||||||
.withIcon('f7:bell_fill').withTag('important').send();
|
.withIcon('f7:bell_fill').withTag('important').send();
|
||||||
|
|
||||||
// Sends a notification about a temperature change ...
|
// Sends a notification about a temperature change ...
|
||||||
actions.notificationBuilder(str).withIcon("oh:temperature").withTag("Temperature change").withReferenceId("living room").send();
|
actions.notificationBuilder(str).withIcon('oh:temperature').withTag('Temperature change').withReferenceId('livingRoom').send();
|
||||||
// ... and hides it after 10 minutes
|
// ... and hides it again after 10 minutes
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
actions.notificationBuilder().hide().withReferenceId("living room").send();
|
actions.notificationBuilder().hide().withReferenceId('livingRoom').send();
|
||||||
}, 10 * 60 * 1000);
|
}, 10 * 60 * 1000);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user