Skip to content

Commit

Permalink
[EN] Add HassBroadcast (#2877)
Browse files Browse the repository at this point in the history
* Add HassBroadcast

* Fix filename

* Update sentences/en/assist_satellite_HassBroadcast.yaml

Co-authored-by: Tudor Sandu <[email protected]>

---------

Co-authored-by: Tudor Sandu <[email protected]>
  • Loading branch information
synesthesiam and tetele authored Jan 17, 2025
1 parent 4121f84 commit 937c9e7
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions intents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ HassRespond:
description: "Text to respond with"
required: false

HassBroadcast:
supported: true
domain: assist_satellite
description: "Announces a message on other satellites."
slots:
message:
description: "Message to broadcast"
required: true

HassSetPosition:
supported: true
domain: homeassistant
Expand Down
5 changes: 5 additions & 0 deletions responses/en/HassBroadcast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: en
responses:
intents:
HassBroadcast:
default: "Done"
3 changes: 3 additions & 0 deletions sentences/en/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ lists:
timer_command:
wildcard: true

message:
wildcard: true

expansion_rules:
the: "(the|my|our)"
name: "[<the>] {name}"
Expand Down
6 changes: 6 additions & 0 deletions sentences/en/assist_satellite_HassBroadcast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: "en"
intents:
HassBroadcast:
data:
- sentences:
- "(broadcast|announce) [everywhere] [that] {message}"
9 changes: 9 additions & 0 deletions tests/en/assist_satellite_HassBroadcast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: en
tests:
- sentences:
- "broadcast that dinner is ready"
intent:
name: HassBroadcast
slots:
message: "dinner is ready"
response: "Done"

0 comments on commit 937c9e7

Please sign in to comment.