Skip to content

Commit

Permalink
Add message service to LaMetric (home-assistant#24589)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Oct 18, 2022
1 parent 260d147 commit 096f696
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion source/_integrations/lametric.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 096f696

Please sign in to comment.