You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/notify.lametric.markdown
+32-15Lines changed: 32 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -12,38 +12,55 @@ ha_category: Notifications
12
12
ha_release: 0.49
13
13
---
14
14
15
-
This component allows to send notification to a LaMetric device. It needs the LaMetric platform to be configured first.
15
+
The `lametric` notification platform allows to send notification to a LaMetric device. It needs the LaMetric platform to be configured first.
16
+
17
+
To enable LaMetric notifications in your installation, add the following to your `configuration.yaml` file:
16
18
17
19
```yaml
18
20
notify:
19
-
name: lametric1
21
+
name: NOTIFIER_NAME
20
22
platform: lametric
21
23
```
22
24
23
-
- **name** (*Optional*): The name of the LaMetric device. Usually it is "My Lametric".
24
-
- **lifetime** (*Optional*): Defines how long the message remains in LaMetric notification queue (in seconds). Defaults to 10.
25
-
- **icon** (*Optional*): An icon or animation. Check out the list of all icons here: https://developer.lametric.com/icons
26
-
Note that icons always begin with "i" while animations begin with "a". This is part of the name, you can't just use the number!
27
-
- **cycles** (*Optional*): Defines how often the notification is displayed. Defaults to 1.
25
+
{% configuration %}
26
+
name:
27
+
description: "The optional parameter `name` allows multiple notifiers to be created. The notifier will bind to the service `notify.NOTIFIER_NAME`."
28
+
required: false
29
+
type: string
30
+
default: notify
31
+
lifetime:
32
+
description: Defines how long the message remains in LaMetric notification queue (in seconds).
33
+
required: false
34
+
type: int
35
+
default: 10
36
+
icon:
37
+
description: An icon or animation.
38
+
required: false
39
+
type: string
40
+
cycles:
41
+
description: Defines how often the notification is displayed.
42
+
required: false
43
+
type: int
44
+
default: 1
45
+
{% endconfiguration %}
28
46
29
-
Extended functionality:
47
+
Check out the list of all icons at [https://developer.lametric.com/icons](https://developer.lametric.com/icons). Note that icons always begin with "i" while animations begin with "a". This is part of the name, you can't just use the number!
30
48
31
-
To add a notification sound or an icon override, it has to be done via service data.
49
+
## {% linkable_title Example %}
32
50
33
-
Example:
51
+
To add a notification sound or an icon override, it has to be done via service data.
0 commit comments