mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 18:06:54 +00:00
Add message service to LaMetric (#24589)
This commit is contained in:
parent
260d14758a
commit
096f6961a8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user