forked from home-assistant/intents
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SL] added weather_HassGetWeather (home-assistant#1688)
* [SL] added weather_HassGetWeather, sentences, test, responses, common, fixtures * [SL] added weather_HassGetWeather
- Loading branch information
Showing
5 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
language: sl | ||
responses: | ||
intents: | ||
HassGetWeather: | ||
default: > | ||
{% set weather_condition = { | ||
'jasno': 'in jasno', | ||
'jasno': 'in jasno', | ||
'oblačno': 'in oblačno', | ||
'izjemno': 'in izjemno', | ||
'megla': 'z meglo', | ||
'toča': 's točo', | ||
'strela': 'bliskovito', | ||
'bliskovito deževno': 'bliskovito in deževno', | ||
'delno oblačno': 'in delno oblačno', | ||
'nalivi': 'in nalivi', | ||
'deževno': 'in deževno', | ||
'sneženje': 'in sneženje', | ||
'snežno deževno': 's snegom in dežjem', | ||
'sončno': 'in sončno', | ||
'vetrovno': 'in vetrovno', | ||
'vetrovna varianata': 'z vetrom in oblaki' | ||
} %} | ||
{{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: sl | ||
intents: | ||
HassGetWeather: | ||
data: | ||
- sentences: | ||
- "<kakšno_je> vreme [[ v| na] <name>]" | ||
requires_context: | ||
domain: weather |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: sl | ||
tests: | ||
- sentences: | ||
- "kakšno je vreme v Mariboru?" | ||
|
||
intent: | ||
name: HassGetWeather | ||
slots: | ||
name: v Mariboru | ||
response: 21 stopinj in deževno | ||
|
||
- sentences: | ||
- "kakšno je vreme v Benetkah" | ||
intent: | ||
name: HassGetWeather | ||
slots: | ||
name: v Benetkah | ||
response: 28 stopinj in jasno |