From 36a2863d1077f86ca4647990a17554dad1532501 Mon Sep 17 00:00:00 2001 From: frittes <33233288+frittes@users.noreply.github.com> Date: Mon, 20 Nov 2017 08:37:40 +0100 Subject: [PATCH] Update notify.lametric.markdown (#4017) * Update notify.lametric.markdown * Keep configuration sample minimal --- source/_components/notify.lametric.markdown | 36 +++++++++++++++++---- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/source/_components/notify.lametric.markdown b/source/_components/notify.lametric.markdown index 8adb8c094eb..457af05cbc7 100644 --- a/source/_components/notify.lametric.markdown +++ b/source/_components/notify.lametric.markdown @@ -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' + ```