Update LaMetric notify documentation (#5358)

This documents home-assistant/home-assistant/pull/14414
This commit is contained in:
Philip Rosenberg-Watt 2018-05-14 15:39:14 -06:00 committed by Martin Hjelmare
parent 980d0219ad
commit e4048b69ae

View File

@ -43,6 +43,11 @@ cycles:
required: false required: false
type: int type: int
default: 1 default: 1
priority:
description: Defines the priority of the notification.
required: False
type: string
default: warning
{% endconfiguration %} {% endconfiguration %}
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! 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!
@ -59,11 +64,12 @@ notify:
lifetime: 20 lifetime: 20
icon: a7956 icon: a7956
cycles: 3 cycles: 3
priority: info
``` ```
### {% linkable_title Changing sounds and icons %} ### {% linkable_title Changing sounds and icons %}
To add a notification sound or an icon override, it has to be done via service data. To add a notification sound, icon, cycles, or priority override, it has to be done via service data.
```yaml ```yaml
- alias: "Send notification on arrival at school" - alias: "Send notification on arrival at school"
@ -79,4 +85,6 @@ To add a notification sound or an icon override, it has to be done via service d
data: data:
sound: 'notification' sound: 'notification'
icon: 'i51' icon: 'i51'
cycles: 0
priority: 'critical'
``` ```