lametric notification platform allows to send notification to a LaMetric device. It needs the LaMetric platform to be configured first.
To enable LaMetric notifications in your installation, add the following to your
# Example configuration.yaml entry notify: name: NOTIFIER_NAME platform: lametric
(string)(Optional)The optional parameter
nameallows multiple notifiers to be created. The notifier will bind to the service
Default value: notify
(int)(Optional)Defines how long the message remains in LaMetric notification queue (in seconds).
Default value: 10
(string)(Optional)An icon or animation.
(int)(Optional)Defines how often the notification is displayed.
Default value: 1
Check out the list of all icons at 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!
# Example configuration.yaml entry notify: name: NOTIFIER_NAME platform: lametric lifetime: 20 icon: a7956 cycles: 3
To add a notification sound or an icon override, it has to be done via service data.
- alias: "Send notification on arrival at school" trigger: platform: state entity_id: device_tracker.son_mobile from: 'not_home' to: 'school' action: service: notify.lametric data: message: "Son has arrived at school!" data: sound: 'notification' icon: 'i51'
If you have more than one La Metric device, you can specify which will recieve the message by adding
target: to the service data:
action: service: notify.lametric data: message: "Son has arrived at school!" target: "Office LaMetric" data: sound: 'notification' icon: 'i51'
If target is not specified, all LaMetric devices will be notified.