Add icon_type as configuration variable for LaMetric (#13700)

This commit is contained in:
Tony Phan 2020-06-11 19:33:28 +10:00 committed by GitHub
parent 26f933e5dd
commit af8592d48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,11 @@ priority:
required: false required: false
type: string type: string
default: warning default: warning
icon_type:
description: Defines the nature of notification.
required: false
type: string
default: info
{% 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!
@ -98,6 +103,7 @@ notify:
icon: a7956 icon: a7956
cycles: 3 cycles: 3
priority: info priority: info
icon_type: none
``` ```
### Changing sounds and icons ### Changing sounds and icons
@ -120,6 +126,7 @@ To add a notification sound, icon, cycles, or priority override, it has to be do
icon: 'i51' icon: 'i51'
cycles: 0 cycles: 0
priority: 'critical' priority: 'critical'
icon_type: 'none'
``` ```
### Only notify specific device ### Only notify specific device