Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SV] support for scenes and persons #2172

Draft
wants to merge 71 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
5814a0e
Added support for persons in Swedish.
danielholm May 14, 2024
555d6f6
Added initial support for scene intents in Swedish.
danielholm May 14, 2024
e8f6ef6
Added inital support for scene intents in Swedish.
danielholm May 14, 2024
12361a5
Resolved filename err and added test file.
danielholm May 14, 2024
2abe23b
Rename person_HassGetState,yaml to person_HassGetState.yaml
danielholm May 15, 2024
f362bd8
Rename scene_HassTurnOn,yaml to scene_HassTurnOn.yaml
danielholm May 15, 2024
b7671d4
Update person_HassGetState.yaml
danielholm May 15, 2024
bcc267a
Added test for scene.
danielholm May 15, 2024
96db56d
Merge branch 'sv-scene' of https://github.com/danielholm/intents into…
danielholm May 15, 2024
935a845
Merge branch 'main' into sv-scene
danielholm May 22, 2024
bec38cd
Update scene_HassTurnOn.yaml
danielholm Jun 28, 2024
30a22c6
Update scene_HassTurnOn.yaml
danielholm Jun 28, 2024
42f3e19
Update scene_HassTurnOn.yaml
danielholm Jun 28, 2024
2039dad
Merge branch 'main' into sv-scene
danielholm Jun 28, 2024
02c9cce
Update person_HassGetState.yaml
danielholm Jun 28, 2024
7d97465
Update scene_HassTurnOn.yaml
danielholm Jun 28, 2024
6aabbad
Update person_HassGetState.yaml
danielholm Jun 28, 2024
abf47f2
Merge branch 'main' into sv-scene
danielholm Jul 2, 2024
5e9ff9b
Merge branch 'home-assistant:main' into sv-scene
danielholm Aug 5, 2024
638701a
Merge branch 'home-assistant:main' into sv-scene
danielholm Aug 5, 2024
5055da1
Added fixtures for scene and person. Did some checking across.
danielholm Aug 5, 2024
9af1e54
Merge branch 'main' into sv-scene
danielholm Aug 7, 2024
d8cd14b
Merge branch 'main' into sv-scene
danielholm Sep 3, 2024
0b5854f
Merge branch 'main' into sv-scene
danielholm Sep 9, 2024
1afd829
Corrected/added responses.
danielholm Sep 10, 2024
54017e4
Added some reponses to test while I was at it.
danielholm Sep 10, 2024
c5343a6
Merge branch 'main' into sv-scene
danielholm Sep 10, 2024
450df8f
Resolved test issues and responses.
danielholm Sep 13, 2024
f9f9d10
Merge branch 'sv-scene' of https://github.com/danielholm/intents into…
danielholm Sep 13, 2024
308e6a1
Removed comments
danielholm Sep 13, 2024
40c470f
Changed part of Scene get state.
danielholm Sep 13, 2024
a2693d7
Merge branch 'main' into sv-scene
danielholm Sep 17, 2024
3eae872
Merge branch 'main' into sv-scene
danielholm Oct 1, 2024
8f64fb8
Rebased with timer
danielholm Oct 1, 2024
9d6047c
Merge branch 'sv-scene' of https://github.com/danielholm/intents into…
danielholm Oct 1, 2024
dc54dc4
Merge branch 'main' into sv-scene
danielholm Oct 2, 2024
054548d
Merge branch 'main' into sv-scene
danielholm Oct 3, 2024
5380705
Merge branch 'main' into sv-scene
danielholm Oct 4, 2024
c687698
Removed moved commented parts in tests.
danielholm Oct 4, 2024
9fbf733
Merge branches 'sv-scene' and 'sv-scene' of https://github.com/daniel…
danielholm Oct 4, 2024
c88385c
Merge branch 'main' into sv-scene
danielholm Oct 8, 2024
6ea0725
Merge branch 'main' into sv-scene
danielholm Oct 10, 2024
3c356f9
Merge branch 'main' into sv-scene
danielholm Oct 14, 2024
0536c42
Merge branch 'main' into sv-scene
danielholm Oct 16, 2024
be26d0c
Merge branch 'main' into sv-scene
danielholm Oct 21, 2024
744b48e
Added more test sentences.
danielholm Oct 22, 2024
a179e34
Merge branch 'sv-scene' of https://github.com/danielholm/intents into…
danielholm Oct 22, 2024
d6e87c4
Merge branch 'main' into sv-scene
danielholm Oct 22, 2024
3a7291e
Lowered capitalization of scene names in test.
danielholm Oct 22, 2024
fbdc97e
Merge branch 'sv-scene' of https://github.com/danielholm/intents into…
danielholm Oct 22, 2024
ad1a655
Merge branch 'main' into sv-scene
danielholm Nov 5, 2024
a41f0ee
Merge branch 'main' into sv-scene
larsdunemark Nov 6, 2024
e82b5e1
Merge branch 'main' into sv-scene
danielholm Nov 6, 2024
cdc7f1b
Added a few more test sentencenes and run vallidate for sv. "All good!"
danielholm Nov 6, 2024
d1af54e
Merge branch 'sv-scene' of https://github.com/danielholm/intents into…
danielholm Nov 6, 2024
028f9b5
Merge branch 'home-assistant:main' into sv-scene
danielholm Nov 7, 2024
ec31e1d
Update climate_HassClimateSetTemperature.yaml
danielholm Nov 7, 2024
51578ba
Merge branch 'main' into sv-scene
danielholm Nov 9, 2024
4fe6d7f
Merge branch 'main' into sv-scene
danielholm Nov 12, 2024
0363f24
Merge branch 'home-assistant:main' into sv-scene
danielholm Nov 13, 2024
40e1ec6
Merge branch 'main' into sv-scene
danielholm Nov 15, 2024
fc49382
Delete tests/sv/homeassistant_HassTurnOff.yaml
danielholm Nov 15, 2024
4b42c9c
Delete tests/sv/climate_HassClimateSetTemperature.yaml
danielholm Nov 15, 2024
1a347f7
Delete tests/sv/climate_HassClimateGetTemperature.yaml
danielholm Nov 15, 2024
2eed782
Delete tests/sv/light_HassLightSet.yaml
danielholm Nov 15, 2024
2947f73
Delete sentences/sv/fan_HassTurnOff.yaml
danielholm Nov 15, 2024
ed41220
Delete sentences/sv/fan_HassTurnOn.yaml
danielholm Nov 15, 2024
133dcf6
Delete tests/sv/fan_HassTurnOff.yaml
danielholm Nov 15, 2024
df1cd21
Delete tests/sv/fan_HassTurnOn.yaml
danielholm Nov 15, 2024
fbfda30
Delete tests/sv/homeassistant_HassTurnOn.yaml
danielholm Nov 15, 2024
52bcd1c
Merge branch 'main' into sv-scene
danielholm Nov 19, 2024
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
44 changes: 44 additions & 0 deletions sentences/sv/person_HassGetState.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
language: sv
intents:
HassGetState:
data:
# https://www.home-assistant.io/integrations/person/
- sentences:
- "<var är> <name>"
response: where
requires_context:
domain: person
slots:
domain: person

- sentences:
- "är <name> [i|vid|på] {zone:state}"
response: one_yesno
requires_context:
domain: person
slots:
domain: person

- sentences:
- "är någon [i|vid|på] {zone:state}"
response: any
slots:
domain: person

- sentences:
- "är alla [i|vid|på] {zone:state}"
response: all
slots:
domain: person

- sentences:
- "vem är [i|vid|på] {zone:state}"
response: which
slots:
domain: person

- sentences:
- "hur många är [i|vid|på] {zone:state}"
response: how_many
slots:
domain: person
27 changes: 27 additions & 0 deletions sentences/sv/scene_HassTurnOn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: sv
intents:
HassTurnOn:
data:
- sentences:
- "[aktivera] <name> [scene]"
- "<name> på"
- "<slå på> (<name> [scene])"
- "(ändra) till (<name> [scene]|scene <name>)"
requires_context:
domain: scene
slots:
domain: scene
response: scene
- sentences:
- "[aktivera] <area> <name> [scene]"
- "<area> <name> på"
- "<turn> (<area> <name> [scene];on)"
- "[aktivera] <name> [scene] <in> <area>"
- "<slå på> (<name> [scene] <in> <area>)"
- "(ändra) ([till] <area> <name>|<area> till <name>) [scene]"
- "(ändra) till <name> [scene] <in> <area>"
requires_context:
domain: scene
slots:
domain: scene
response: scene
65 changes: 65 additions & 0 deletions tests/sv/person_HassGetState.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
language: en
danielholm marked this conversation as resolved.
Show resolved Hide resolved
tests:
- sentences:
- "var är Daniel"
intent:
name: HassGetState
slots:
domain: person
name: Daniel
response: "Daniel är hemma"
danielholm marked this conversation as resolved.
Show resolved Hide resolved

- sentences:
- "var är Ola-Conny"
intent:
name: HassGetState
slots:
domain: person
name: Ola-Conny
response: "Ola-Conny är på jobbet"

- sentences:
- "är Judith hemma"
intent:
name: HassGetState
slots:
domain: person
name: Judith
state: home
response: "Nej, jobbet"

- sentences:
- "är någon hemma"
intent:
name: HassGetState
slots:
domain: person
state: home
response: "Ja, Daniel"

- sentences:
- "är alla hemma"
intent:
name: HassGetState
slots:
domain: person
state: home
response: "Nej, Ola-Conny och Judith är inte hemma"

- sentences:
- "vem är hemma"
intent:
name: HassGetState
slots:
domain: person
state: home
response: "Karin"

- sentences:
- "hur många är hemma"
intent:
name: HassGetState
slots:
domain: person
state: home
response: "1"
28 changes: 28 additions & 0 deletions tests/sv/scene_HassTurnOn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: en
danielholm marked this conversation as resolved.
Show resolved Hide resolved
tests:
- sentences:
- "aktivera festläge scene"
- "sätt på festläge"
- "festläge på"
- "ändra till festläge scen"
intent:
name: HassTurnOn
slots:
domain: scene
name: "Festläge"
response: "Activated"
- sentences:
- "aktivera pluggtid scen"
- "sätt på kök pluggtid"
- "aktivera pluggtid i köket"
- "kök pluggtid på"
- "sätt på pluggtid i köket"
- "ändra köket till pluggtid"
- "ändra till pluggtid i köket"
intent:
name: HassTurnOn
slots:
area: Köket
domain: scene
name: "Pluggtid"
response: "Activated"