mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 21:06:50 +00:00
Rename Services to Actions in integrations: Y (#33834)
This commit is contained in:
parent
213c1a9b1f
commit
0fc9c499df
@ -37,7 +37,7 @@ There is currently support for the following device types within Home Assistant:
|
||||
|
||||
## Alarm control panel
|
||||
|
||||
Services provided are `armed_away`, `armed_home`, and `disarmed`.
|
||||
Actions provided are `armed_away`, `armed_home`, and `disarmed`.
|
||||
|
||||
No code is required to operate the alarm.
|
||||
|
||||
|
@ -61,7 +61,7 @@ Some locks only send push updates when they have an active HomeKit pairing. If y
|
||||
|
||||
One easy way to fix this is to create a new/second home in the Apple Home app and add the lock to that new home. Push updates should occur as intended after the lock is added.
|
||||
|
||||
Alternatively, call the `homeassistant.update_entity` service to force the {% term integration %} to update the lock state, or enable the always connected option.
|
||||
Alternatively, call the `homeassistant.update_entity` action to force the {% term integration %} to update the lock state, or enable the always connected option.
|
||||
|
||||
{% include integrations/option_flow.md %}
|
||||
|
||||
|
@ -70,7 +70,7 @@ zone_names:
|
||||
- Media players created by Yamaha support powering on/off, mute,
|
||||
volume control and source selection. Playback controls, for instance
|
||||
play and stop are available for sources that supports it.
|
||||
- The `play_media` service is implemented for `NET RADIO` source
|
||||
- The `play_media` action is implemented for `NET RADIO` source
|
||||
only. The `media_id` is a `>` separated string of the menu path on
|
||||
the vtuner service. For instance `Bookmarks>Internet>WAMC 90.3 FM`.
|
||||
MusicCast devices use the path `Radio>Favorites>WAMC 90.3 FM`.
|
||||
@ -127,30 +127,30 @@ script:
|
||||
|
||||
```
|
||||
|
||||
### Service `enable_output`
|
||||
### Action `enable_output`
|
||||
|
||||
Enable or disable an output port (HDMI) on the receiver.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
| ---------------------- | -------- | ------------------------------------------------------------------------- |
|
||||
| `entity_id` | yes | String or list of strings that point at `entity_id`s of Yamaha receivers. |
|
||||
| `port` | no | Port to enable or disable, e.g., `hdmi1`. |
|
||||
| `enabled` | no | To enable set true, otherwise set to false. |
|
||||
|
||||
### Service `menu_cursor`
|
||||
### Action `menu_cursor`
|
||||
|
||||
Control the menu cursor.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
| ---------------------- | -------- | ---------------------------------------------------------------------------------- |
|
||||
| `entity_id` | yes | String or list of strings that point at `entity_id`s of Yamaha receivers. |
|
||||
| `cursor` | no | Name of the cursor key to press: `up`, `down`, `left`, `right`, `select`, `return` |
|
||||
|
||||
### Service `select_scene`
|
||||
### Action `select_scene`
|
||||
|
||||
Select a scene on the receiver.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
| ---------------------- | -------- | -------------------------------------------------------------------------------------------------------- |
|
||||
| `entity_id` | yes | String or list of strings that point at `entity_id`s of Yamaha receivers. |
|
||||
| `scene` | no | Scene to select, e.g., `BD/DVD Movie Viewing`, `TV Viewing`, `NET Audio Listening` or `Radio Listening`. |
|
||||
|
@ -27,20 +27,20 @@ Supported devices are listed on their [site](https://usa.yamaha.com/products/con
|
||||
|
||||
## Grouping functionality
|
||||
|
||||
The Yamaha MusicCast {% term integration %} implements the grouping services. There are some limitations in the MusicCast system for grouping:
|
||||
The Yamaha MusicCast {% term integration %} implements the grouping actions. There are some limitations in the MusicCast system for grouping:
|
||||
|
||||
- It is not possible to let mediaplayer entities of the same device (e.g., different zones) be in distinct groups.
|
||||
- If a non-main zone is the master of a group, it is not possible to let other mediaplayers of the same device join this group.
|
||||
|
||||
## Play media functionality
|
||||
|
||||
The MusicCast {% term integration %} supports the Home Assistant media browser for all streaming services, your device supports. For services such as Deezer, you have to log in using the official MusicCast app. In addition, local HTTP URLs can be played back using this service. This includes the Home Assistant text-to-speech services.
|
||||
The MusicCast {% term integration %} supports the Home Assistant media browser for all streaming services, your device supports. For services such as Deezer, you have to log in using the official MusicCast app. In addition, local HTTP URLs can be played back using this action. This includes the Home Assistant text-to-speech actions.
|
||||
|
||||
It is also possible to recall NetUSB presets using the play media service. To do so "presets:<preset_num>" has to be used as `media_content_id` in the service call.
|
||||
It is also possible to recall NetUSB presets using the play media action. To do so "presets:<preset_num>" has to be used as `media_content_id` in the action.
|
||||
|
||||
### Examples:
|
||||
|
||||
This is an example service call that plays an audio file from a web server on the local network (like the Home Assistant built-in webserver):
|
||||
This is an example action that plays an audio file from a web server on the local network (like the Home Assistant built-in webserver):
|
||||
|
||||
```yaml
|
||||
service: media_player.play_media
|
||||
|
@ -27,13 +27,13 @@ During the configuration, you will have to manually set the **Host** and the **A
|
||||
|
||||

|
||||
|
||||
## Services
|
||||
## Actions
|
||||
|
||||
### yardian.start_irrigation
|
||||
|
||||
Start a zone for a given number of minutes. This service accepts an Yardian Zone switch {% term entity %} and allows a given duration.
|
||||
Start a zone for a given number of minutes. This action accepts an Yardian Zone switch {% term entity %} and allows a given duration.
|
||||
|
||||
| Service Data Attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
| ---------------------- | -------- | ----------------------------------------------------- |
|
||||
| `entity_id` | yes | The Yardian Zone switch to turn on. |
|
||||
| `duration` | no | Number of minutes for this zone to be turned on. |
|
||||
|
@ -33,7 +33,7 @@ There is support for the following device types within Home Assistant:
|
||||
|
||||
### Custom effects
|
||||
|
||||
Custom effects can only be set up through YAML configuration. To turn on the effect you can use [light.turn_on](/integrations/light/#service-lightturn_on) service.
|
||||
Custom effects can only be set up through YAML configuration. To turn on the effect you can use [light.turn_on](/integrations/light/#action-lightturn_on) action.
|
||||
|
||||
Possible transitions are `RGBTransition`, `HSVTransition`, `TemperatureTransition`, `SleepTransition`.
|
||||
|
||||
@ -210,84 +210,84 @@ This {% term integration %} is tested to work with the following models. If you
|
||||
| ?, may be `ceilb` | YLXD013-C | Yeelight Arwen Ceiling Light 550C |
|
||||
| `ceilb` | YLXD013 | Yeelight Arwen Ceiling Light 450S |
|
||||
|
||||
## Services
|
||||
## Actions
|
||||
|
||||
### Service `yeelight.set_mode`
|
||||
### Action `yeelight.set_mode`
|
||||
|
||||
Set an operation mode.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on specific lights. |
|
||||
| `mode` | no | Operation mode. Valid values are 'last', 'normal', 'rgb', 'hsv', 'color_flow', 'moonlight'. |
|
||||
|
||||
### Service `yeelight.start_flow`
|
||||
### Action `yeelight.start_flow`
|
||||
|
||||
Start flow with specified transitions
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on specific lights. |
|
||||
| `count` | yes | The number of times to run this flow (0 to run forever). |
|
||||
| `action` | yes | The action to take after the flow stops. Can be 'recover', 'stay', 'off'. Default 'recover' |
|
||||
| `transitions` | no | Array of transitions. See [custom effects](#custom-effects). |
|
||||
|
||||
### Service `yeelight.set_color_scene`
|
||||
### Action `yeelight.set_color_scene`
|
||||
|
||||
Changes the light to the specified RGB color and brightness. If the light is off, it will be turned on.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on specific lights. |
|
||||
| `rgb_color` | no | A list containing three integers between 0 and 255 representing the RGB color you want the light to be. Three comma-separated integers that represent the color in RGB, within square brackets.|
|
||||
| `brightness` | no | The brightness value to set (1-100). |
|
||||
|
||||
### Service `yeelight.set_hsv_scene`
|
||||
### Action `yeelight.set_hsv_scene`
|
||||
|
||||
Changes the light to the specified HSV color and brightness. If the light is off, it will be turned on.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on specific lights. |
|
||||
| `hs_color` | no | A list containing two floats representing the hue and saturation of the color you want the light to be. Hue is scaled 0-360, and saturation is scaled 0-100. |
|
||||
| `brightness` | no | The brightness value to set (1-100). |
|
||||
|
||||
### Service `yeelight.set_color_temp_scene`
|
||||
### Action `yeelight.set_color_temp_scene`
|
||||
|
||||
Changes the light to the specified color temperature. If the light is off, it will be turned on.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on specific lights. |
|
||||
| `kelvin` | no | Color temperature in Kelvin. |
|
||||
| `brightness` | no | The brightness value to set (1-100). |
|
||||
|
||||
### Service `yeelight.set_color_flow_scene`
|
||||
### Action `yeelight.set_color_flow_scene`
|
||||
|
||||
Starts a color flow. Difference between this and [yeelight.start_flow](#service-yeelightstart_flow), this service call uses different a Yeelight API call. If the light was off, it will be turned on. There might be some firmware differences in handling complex flows, etc.
|
||||
Starts a color flow. Difference between this and [yeelight.start_flow](#action-yeelightstart_flow), this action uses different a Yeelight API call. If the light was off, it will be turned on. There might be some firmware differences in handling complex flows, etc.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on specific lights. |
|
||||
| `count` | yes | The number of times to run this flow (0 to run forever). |
|
||||
| `action` | yes | The action to take after the flow stops. Can be 'recover', 'stay', 'off'. Default 'recover' |
|
||||
| `transitions` | no | Array of transitions. See [custom effects](#custom-effects). |
|
||||
|
||||
### Service `yeelight.set_auto_delay_off_scene`
|
||||
### Action `yeelight.set_auto_delay_off_scene`
|
||||
|
||||
Turns the light on to the specified brightness and sets a timer to turn it back off after the given number of minutes. If the light is off, it will be turned on.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on specific lights. |
|
||||
| `minutes` | no | The minutes to wait before automatically turning the light off. |
|
||||
| `brightness` | no | The brightness value to set (1-100). |
|
||||
|
||||
### Service `yeelight.set_music_mode`
|
||||
### Action `yeelight.set_music_mode`
|
||||
|
||||
Enable or disable music_mode.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| Data attribute | Optional | Description |
|
||||
|---------------------------|----------|---------------------------------------------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on specific lights. |
|
||||
| `music_mode` | no | Use 'true' or 'false' to enable / disable music_mode. |
|
||||
|
@ -37,16 +37,16 @@ Integrates [YoLink](https://www.yosmart.com/) Devices into Home Assistant.
|
||||
|
||||
{% details "Using custom application credentials" %}
|
||||
Home Assistant will use account linking provided by Nabu Casa for authenticating with YoLink, this service is provided for free and does not require a Nabu Casa subscription. The steps below are thus not required.
|
||||
If you want to use separate credentials, please contact <service@yosmart.com> to obtain a `client_id` and `client_secret`. Then you can add your credentials via application credentials. Settings > Devices & Services > click the menu (three dots at the top right of the screen) and then **Application Credentials**. Enter your credentials in the pop-up window.
|
||||
If you want to use separate credentials, please contact <service@yosmart.com> to obtain a `client_id` and `client_secret`. Then you can add your credentials via application credentials. Settings > Devices & services > click the menu (three dots at the top right of the screen) and then **Application Credentials**. Enter your credentials in the pop-up window.
|
||||
{% enddetails %}
|
||||
|
||||
## Services
|
||||
## Actions
|
||||
|
||||
### `Play on SpeakerHub`
|
||||
|
||||
With this service, you can convert text to speech for playback on SpeakerHub.
|
||||
With this action, you can convert text to speech for playback on SpeakerHub.
|
||||
|
||||
Service data attribute | Optional | Description
|
||||
Data attribute | Optional | Description
|
||||
-|-|-
|
||||
`target_device` | no| SpeakerHub device ID for audio playback.
|
||||
`message` | no| Text for speech conversion.
|
||||
|
Loading…
x
Reference in New Issue
Block a user