Skip to content

Commit

Permalink
Merge pull request #427 from skrashevich/feat-service-ui
Browse files Browse the repository at this point in the history
Feature: ui elements for send_command service
  • Loading branch information
AlexxIT authored Dec 28, 2023
2 parents 893ac1c + df56b0a commit 7899d13
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions custom_components/yandex_station/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,52 @@ reload:

send_command:
description: Send command to Yandex.Station.
target:
entity:
integration: yandex_station
domain: media_player
fields:
command:
description: "Command: sendText, rewind, play, stop, prev, next, playMusic, setVolume"
example: 'sendText'
selector:
text:
text:
description: For sendText command
example: Повтори за мной "Тестовое уведомление"
selector:
text:
position:
description: For rewind command
example: 120
selector:
number:
min: 0
max: 3600
mode: box
id:
description: For playMusic command
example: '2'
selector:
text:
type:
description: For playMusic command (artist, track, album or playlist)
example: 'artist'
select:
options:
- artist
- track
- album
- playlist
volume:
description: For setVolume command
example: 0.5
selector:
number:
min: 0
max: 100
step: 0.1
mode: box

mute:
name: Mute humidifier
Expand Down

0 comments on commit 7899d13

Please sign in to comment.