Skip to content

Commit

Permalink
Lights
Browse files Browse the repository at this point in the history
  • Loading branch information
cvladan committed Dec 28, 2022
1 parent 1c8c046 commit c79d148
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 13 deletions.
56 changes: 52 additions & 4 deletions sentences/sr/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,55 @@ responses:
no_domain: "Просторија {{ area }} не постоји у оквиру подручја {{ domain }}"
no_device_class: "Просторија {{ area }} не садржи {{ device_class }}"
no_entity: "Не постоји ни уређај ни ентитет под именом {{ entity }}"
handle_error: "Дошло је до неочекиване грешке током обраде вашег захтева"
lists: {}
expansion_rules: {}
skip_words: []
handle_error: "Дошло је до неочекиване грешке приликом обраде захтева"
lists:
color:
values:
- in: "бел(а|o|у)"
out: "white"
- in: "црн(а|o|у)"
out: "black"
- in: "црвен(а|o|у)"
out: "red"
- in: "наранџаст(а|o|у)"
out: "orange"
- in: "жут(а|o|у)"
out: "yellow"
- in: "зелен(а|o|у)"
out: "green"
- in: "плав(а|o|у)"
out: "blue"
- in: "љубичаст(а|o|у) | лила"
out: "purple"
- in: "браон | смеђ(а|е|у)"
out: "brown"
- in: "ружичаст(а|o|у) | розе"
out: "pink"
brightness:
range:
type: "percentage"
from: 0
to: 100
temperature:
range:
type: "temperature"
from: 0
to: 100
temperature_unit:
values:
- in: "Ц | [степен[а|и]] (Целзијус[а] | у Целзијусима)"
out: "celsius"
- in: "Ф | [степен[а|и]] (Фаренхајт[а] | у Фаренхајтима)"
out: "fahrenheit"
expansion_rules:
area: "[у просторији] {area}"
brightness: "{brightness:brightness_pct} [посто]"
temperature: "{temperature}"
упали: "(упали[ш|те|мо] | укључи[ш|те|мо])"
угаси: "(угаси[ш|те|мо] | искључи[ш|те|мо])"
подеси: "(подеси | намести | постави | сетуј | промени)"
skip_words:
- "молим [те|вас] [да]"
- "може(ш|те) [ли] [да]"
- "хајде [да]"
- "одмах [да]"
14 changes: 13 additions & 1 deletion sentences/sr/light_HassLightSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@ language: sr
intents:
HassLightSet:
data:
- sentences: []
# brightness
- sentences:
- "<подеси> [осветљење | јачину [светла] | светло] <name> на <brightness> [снаге | јачине | светлине]"
- "<подеси> [[јачину | интензитет] светл(а|о) у] <area> [на] <brightness> [снаге | јачине | светлине]"
slots:
name: "all"
# color
- sentences:
- "<подеси> боју <name> на {color}"
- "<подеси> <name> [на] {color} [боју]"
- "<подеси> [боју] светл(а|о) [у [просторији]] <area> на {color}"
slots:
name: "all"
9 changes: 5 additions & 4 deletions sentences/sr/light_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ language: sr
intents:
HassTurnOff:
data:
- sentences: []
slots:
domain: light
name: all
- sentences:
- "<угаси> [сва] [светл(о|а)] <area>"
slots:
domain: light
name: all
9 changes: 5 additions & 4 deletions sentences/sr/light_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ language: sr
intents:
HassTurnOn:
data:
- sentences: []
slots:
domain: light
name: all
- sentences:
- "<упали> [сва] [светл(о|а)] <area>"
slots:
domain: light
name: all

0 comments on commit c79d148

Please sign in to comment.