From 096f6961a8109d59cb35f6a63b3d1c2f68aa9cd2 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 18 Oct 2022 19:21:14 +0200 Subject: [PATCH] Add message service to LaMetric (#24589) --- source/_integrations/lametric.markdown | 49 +++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/source/_integrations/lametric.markdown b/source/_integrations/lametric.markdown index 911d401e1bd6..8fa0bff1b6f9 100644 --- a/source/_integrations/lametric.markdown +++ b/source/_integrations/lametric.markdown @@ -28,6 +28,53 @@ ha_ssdp: true {% include integrations/config_flow.md %} +## Services + +The LaMetric integration provides services to interact with your LaMetric +device(s). Those service can be called in, for example, automations. + +### Service `lametric.message` + +The {% my developer_call_service service="lametric.message" title="`lametric.message`" %} +service allows you to send a message to your LaMetric. These +messages can be enrichted with icons and sounds. + +{% my developer_call_service badge service="lametric.message" %} + +{% configuration "lametric.message" %} +device_id: + description: The ID of the device to send the message to. + required: true + type: string +message: + description: The message to send to the LaMetric device. + required: true + type: string +icon: + description: "An icon or animation. List of all icons available at [https://developer.lametric.com/icons](https://developer.lametric.com/icons)." + required: false + type: string +cycles: + description: "Defines how long the notification will be displayed. Set to `0` to require manual dismissal." + required: false + type: integer + default: 1 +priority: + description: "Defines the priority of the notification. Allowed values are `info`, `warning`, and `critical`." + required: false + type: string + default: info +icon_type: + description: "Defines the nature of notification. Allowed values are `none`, `info`, and `alert`." + required: false + type: string + default: none +sound: + description: "Defines the sound of the notification. Allowed are listed [below](#list-of-notification-sounds)." + required: false + type: string +{% endconfiguration %} + ## Notifications You can send notifications to your LaMetric device using @@ -41,7 +88,7 @@ called "My LaMetric", the service would become `notify.my_lametric`. The notification service call against an LaMetric device can take the following, additional, optional parameters: -{% configuration %} +{% configuration "notification" %} icon: description: "An icon or animation. List of all icons available at [https://developer.lametric.com/icons](https://developer.lametric.com/icons)." required: false