Update notify.lametric.markdown (#4017)

* Update notify.lametric.markdown

* Keep configuration sample minimal
This commit is contained in:
frittes 2017-11-20 08:37:40 +01:00 committed by Franck Nijhof
parent d6db6affe2
commit 36a2863d10

View File

@ -12,17 +12,39 @@ ha_category: Notifications
ha_release: 0.49
---
This component allows to send notification to a LaMetric device. It need the LaMetric platform to be configured first.
This component allows to send notification to a LaMetric device. It needs the LaMetric platform to be configured first.
```yaml
notify:
name: lametric1
platform: lametric
display_time: 20
icon: i555
```
- **name** (*Optional*): The name of the LaMetric device. Usually it is "My Lametric"
- **display_time** (*Optional*): Defines how long the message should be displayed (in seconds).
- **icon** (*Optional*): An icon or animation. Check out the list of all icons her: 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.
- **name** (*Optional*): The name of the LaMetric device. Usually it is "My Lametric".
- **lifetime** (*Optional*): Defines how long the message remains in LaMetric notification queue (in seconds). Defaults to 10.
- **icon** (*Optional*): An icon or animation. Check out the list of all icons here: 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!
- **cycles** (*Optional*): Defines how often the notification is displayed. Defaults to 1.
Extended functionality:
To add a notification sound or an icon override, it has to be done via service data.
Example:
```
...
- alias: 'Send notification on arrival at school'
trigger:
platform: state
entity_id: device_tracker.son_mobile
from: 'not_home'
to: 'school'
action:
service: notify.lametric1
data:
message: 'Son has arrived at school!'
data:
sound: 'notification'
icon: 'i51'
```