Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions intents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,88 @@ HassSetVolume:

# -----------------------------------------------------------------------------

HassMediaPlayerMute:
supported: true
domain: media_player
description: "Mutes a media player"
slots:
name:
description: "Name of a device or entity"
required: false
area:
description: "Name of an area"
required: false
slot_combinations:
default:
description: "Mutes the currently playing media player"
importance: "complete"
slots: []
context_area: true
example: "Mute the television"

# -------------------------------------------------------------------------

name_only:
description: "Mutes a media player by name"
slots:
- "name"
name_domains:
complete:
- "media_player"
example: "Mute the television"

# -------------------------------------------------------------------------

area_only:
description: "Mutes the currently playing media player in an area"
importance: "complete"
slots:
- "area"
example: "Mute the living room"

# -----------------------------------------------------------------------------

HassMediaPlayerUnmute:
supported: true
domain: media_player
description: "Unmutes a media player"
slots:
name:
description: "Name of a device or entity"
required: false
area:
description: "Name of an area"
required: false
slot_combinations:
default:
description: "Unmutes the currently playing media player"
importance: "complete"
slots: []
context_area: true
example: "Unmute the television"

# -------------------------------------------------------------------------

name_only:
description: "Unmutes a media player by name"
slots:
- "name"
name_domains:
complete:
- "media_player"
example: "Unmute the television"

# -------------------------------------------------------------------------

area_only:
description: "Unmutes the currently playing media player in an area"
importance: "complete"
slots:
- "area"
example: "Unmute the living room"

# -----------------------------------------------------------------------------

HassMediaSearchAndPlay:
supported: true
domain: media_player
Expand Down
5 changes: 5 additions & 0 deletions responses/en/HassMediaPlayerMute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: en
responses:
intents:
HassMediaPlayerMute:
default: "Muted the media player"
5 changes: 5 additions & 0 deletions responses/en/HassMediaPlayerUnmute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: en
responses:
intents:
HassMediaPlayerUnmute:
default: "Unmuted the media player"
15 changes: 15 additions & 0 deletions sentences/en/media_player_HassMediaPlayerMute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: en
intents:
HassMediaPlayerMute:
data:
- sentences:
- "mute <name>"
- "[set ]mute on <name>"
requires_context:
domain: media_player
- sentences:
- "[set] mute [on] [the] (music|tv|television|media [player[s]]) in [the] <area>"
- "mute [the] <area> (music|tv|television|media [player[s]])"
requires_context:
area:
slot: true
17 changes: 17 additions & 0 deletions sentences/en/media_player_HassMediaPlayerUnmute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: en
intents:
HassMediaPlayerUnmute:
data:
- sentences:
- "unmute <name>"
- "mute off <name>"
requires_context:
domain: media_player
- sentences:
- "unmute [the] (music|tv|television|media [player[s]]) in [the] <area>"
- "mute off [the] (music|tv|television|media [player[s]]) in [the] <area>"
- "unmute <area> (music|tv|television|media [player[s]])"
- "mute off <area> (music|tv|television|media [player[s]])"
requires_context:
area:
slot: true
22 changes: 22 additions & 0 deletions tests/en/media_player_HassMediaPlayerMute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: en
tests:
- sentences:
- "mute the TV"
- "set mute on TV"
- "mute on TV"
intent:
name: HassMediaPlayerMute
slots:
name: "TV"
response: "Muted the media player"
- sentences:
- "mute the living room TV"
- "set mute on TV in the living room"
- "mute on TV in the living room"
intent:
name: HassMediaPlayerMute
context:
area: Living Room
slots:
area: "Living Room"
response: "Muted the media player"
22 changes: 22 additions & 0 deletions tests/en/media_player_HassMediaPlayerUnmute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: en
tests:
- sentences:
- "unmute the TV"
- "mute off TV"
intent:
name: HassMediaPlayerUnmute
slots:
name: "TV"
response: "Unmuted the media player"
- sentences:
- "unmute the TV in the living room"
- "mute off TV in the living room"
- "unmute the living room TV"
- "mute off the living room TV"
intent:
name: HassMediaPlayerUnmute
context:
area: Living Room
slots:
area: "Living Room"
response: "Unmuted the media player"