Skip to content

[NE] Added LightSet,Climate, CurrentTime, CurrentDate, Respond, Nevermind and Cover Intent #2894

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

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d71abb5
Added Initial Support for Nepali Language
Rrp13 Dec 2, 2024
91bfd91
Merge branch 'main' into nepali
Rrp13 Dec 2, 2024
a59e526
Merge branch 'main' into nepali
Rrp13 Dec 4, 2024
4c9ae00
Merge branch 'main' into nepali
Rrp13 Dec 4, 2024
e7ab06c
Merge branch 'main' into nepali
Rrp13 Dec 6, 2024
656fe9f
Merge branch 'main' into nepali
Rrp13 Dec 7, 2024
ad20b77
Merge branch 'main' into nepali
Rrp13 Dec 10, 2024
b5deaf7
Merge branch 'main' into nepali
Rrp13 Dec 10, 2024
901a0b2
Added light and fan turn on and off intents.
Rrp13 Dec 11, 2024
46bd6c9
Added HassNeverMind Intent
Rrp13 Dec 11, 2024
1782e8c
Added HassRespond
Rrp13 Dec 11, 2024
6cc82e2
Added light and fan turn on and off intents.
Rrp13 Dec 11, 2024
85ebdee
Merge branch 'main' into nepali-lights-fans
Rrp13 Dec 25, 2024
4aa3792
Added Light_Set Intent
Rrp13 Dec 29, 2024
5e86951
added get current time and date
Rrp13 Dec 29, 2024
aee7d9d
climate get and set
Rrp13 Dec 31, 2024
4f32fdf
Merge branch 'main' into nepali-lights-fans
Rrp13 Jan 1, 2025
bac7481
Merge branch 'home-assistant:main' into nepali-lights-fans
Rrp13 Jan 3, 2025
9183bc4
Merge branch 'nepali-climate-light-ha' into nepali-climate
Rrp13 Jan 3, 2025
32de767
fixed response typo
Rrp13 Jan 20, 2025
918181c
fixed issue
Rrp13 Jan 20, 2025
f2d6ddc
Merge branch 'main' into nepali-climate
Rrp13 Jan 20, 2025
7e601d7
Merge branch 'main' into nepali-climate
Rrp13 Jan 21, 2025
65cb536
Merge branch 'main' into nepali-climate
Rrp13 Jan 23, 2025
57645d4
fixed responses and fixed temperature set intent
Rrp13 Jan 28, 2025
81351e6
Merge branch 'main' into nepali-climate
Rrp13 Jan 28, 2025
8e79017
Merge branch 'main' into nepali-climate
Rrp13 Jan 28, 2025
e1199fe
Merge branch 'nepali-climate-fix' into nepali-climate
Rrp13 Jan 28, 2025
8a6f09a
fix getclimate test
Rrp13 Jan 28, 2025
2c460db
added cover_turnon and cover_turnoff and hasssetpostiton
Rrp13 Feb 9, 2025
bc7f4b5
added cover get state
Rrp13 Feb 9, 2025
eda1a7e
Merge branch 'main' into nepali-climate
Rrp13 Feb 9, 2025
7f2eca3
Merge branch 'main' into nepali-climate
Rrp13 Feb 12, 2025
33676b1
Merge branch 'main' into nepali-climate
Rrp13 Feb 14, 2025
eb9de86
Merge branch 'main' into nepali-climate
Rrp13 Feb 17, 2025
99d054b
Merge branch 'main' into nepali-climate
Rrp13 Feb 19, 2025
22b0ede
Merge branch 'main' into nepali-climate
Rrp13 Feb 23, 2025
b8e4fbd
Merge branch 'main' into nepali-climate
Rrp13 Mar 2, 2025
360a749
Merge branch 'main' into nepali-climate
Rrp13 Mar 8, 2025
b6daace
Merge branch 'main' into nepali-climate
Rrp13 Mar 10, 2025
58c9a2b
Merge branch 'main' into nepali-climate
Rrp13 Mar 12, 2025
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
5 changes: 5 additions & 0 deletions responses/ne/HassClimateGetTemperature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: ne
responses:
intents:
HassClimateGetTemperature:
default: "{{ state_attr(state.entity_id, 'current_temperature') }} डिग्री छ"
5 changes: 5 additions & 0 deletions responses/ne/HassClimateSetTemperature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: ne
responses:
intents:
HassClimateSetTemperature:
default: "{{ slots.temperature }} डिग्री बनाईदिएको छु"
20 changes: 20 additions & 0 deletions responses/ne/HassGetCurrentDate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: ne
responses:
intents:
HassGetCurrentDate:
default: >
{% set months = {
1: 'जनवरी',
2: 'फेब्रुअरी',
3: 'मार्च',
4: 'अप्रिल',
5: 'मे',
6: 'जुन',
7: 'जुलाई',
8: 'अगस्ट',
9: 'सेप्टेम्बर',
10: 'अक्टोबर',
11: 'नोभेम्बर',
12: 'डिसेम्बर',
} %}
{{ slots.date.day }} {{ months[slots.date.month] }} {{ slots.date.year }}
21 changes: 21 additions & 0 deletions responses/ne/HassGetCurrentTime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: ne
responses:
intents:
HassGetCurrentTime:
default: >
{% set minute_str = '{0:02d}'.format(slots.time.minute) %}
{% if slots.time.hour == 0 %}
मध्यरातिको {{ slots.time.hour + 12 }}:{{ minute_str }} बजेको छ
{% elif slots.time.hour < 4 %}
रातिको {{ slots.time.hour }}:{{ minute_str }} बजेको छ
{% elif slots.time.hour < 12 %}
बिहानको {{ slots.time.hour }}:{{ minute_str }} बजेको छ
{% elif slots.time.hour == 12 %}
दिउँसोको {{ slots.time.hour }}:{{ minute_str }} बजेको छ
{% elif slots.time.hour < 17 %}
दिउँसोको {{ slots.time.hour - 12 }}:{{ minute_str }} बजेको छ
{% elif slots.time.hour < 22 %}
बेलुकाको {{ slots.time.hour - 12 }}:{{ minute_str }} बजेको छ
{% else %}
रातिको {{ slots.time.hour - 12 }}:{{ minute_str }} बजेको छ
{% endif %}
76 changes: 76 additions & 0 deletions responses/ne/HassGetState.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
language: ne
responses:
intents:
HassGetState:
default: "{{ state.state_with_unit }}" # used mostly for custom sentences

# the number of names returned is limited to 4, in case there are more, the first 3 names and the remaining count is returned
# with 4 names or less, the names are joined with a comma ", " and the last name is joined with " and "
one: |
{{ slots.name | capitalize }} {{ state.state_with_unit }} छ

one_yesno: |
{% if query.matched %}
{% else %}
छैन
{% endif %}

any: |
{% if query.matched %}
{% set match = query.matched | map(attribute="name") | sort | list %}
{% if match | length > 4 %}
छ, {{ match[:3] | join(", ") }} र अरु {{ (match | length - 3) }} ओटा
{%- else -%}
छ,
{% for name in match -%}
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} र {% endif -%}
{{ name }}
{%- endfor -%}
{% endif %}
{% else %}
छैन
{% endif %}

all: |
{% if not query.unmatched %}
{% else %}
{% set no_match = query.unmatched | map(attribute="name") | sort | list %}
{% if no_match | length > 4 %}
छैन, {{ no_match[:3] | join(", ") }} र अरु {{ (no_match | length - 3) }} ओटा
{%- else -%}
छैन,
{% for name in no_match -%}
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} र {% endif -%}
{{ name }}
{%- endfor %}
{% endif %}
{% endif %}

which: |
{% if not query.matched %}
कुनै पनि छैन
{% else %}
{% set match = query.matched | map(attribute="name") | sort | list %}
{% if match | length > 4 %}
{{ match[:3] | join(", ") }} र अरु {{ (match | length - 3) }} ओटा
{% else %}
{%- for name in match -%}
{% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} र {% endif -%}
{{ name }}
{%- endfor -%}
{% endif %}
{% endif %}

how_many: |
{{ query.matched | length }} ओटा

where: |
{% if state.state == "home" %}
{{ slots.name | capitalize }} घरमा छ
{% elif state == "not_home" %}
{{ slots.name | capitalize }} बाहिर छ
{% else %}
{{ slots.name | capitalize }} {{ state.state }}मा छ
{% endif %}
10 changes: 10 additions & 0 deletions responses/ne/HassLightSet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: ne
responses:
intents:
HassLightSet:
brightness: "{{ slots.name }}को उज्यालोपन {{ slots.brightness }} प्रतिशत बनाईदिएको छु"
brightness_area: "{{ slots.area }}को उज्यालोपन {{ slots.brightness }} प्रतिशत बनाईदिएको छु"
brightness_floor: "{{ slots.floor }}को उज्यालोपन {{ slots.brightness }} प्रतिशत बनाईदिएको छु"
color: "{{ slots.name }}को रंग {{ slots.color }} बनाईदिएको छु"
color_area: "{{ slots.area }}को रंग {{ slots.color }} बनाईदिएको छु"
color_floor: "{{ slots.floor }}को रंग {{ slots.color }} बनाईदिएको छु"
9 changes: 9 additions & 0 deletions responses/ne/HassRespond.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: ne
responses:
intents:
HassRespond:
hello: "नमस्कार"
listening: "होइन, म तपाईंले वेक वोड भन्नु भए पछी मात्र रेकर्ड गर्छु।"
data: "तपाईंको डेटा तपाईंको होम अस्सिस्टेन्ट सर्भरमा पठाईंन्छ।"
commands: "तपाईंले के सोध्न सक्नुहुन्छ भनेर जान्न, होम माईनस अस्सिस्टेन्ट थोप्लो आईओ सल्यास वोईसमा जानुहोस्।"
creator: "मलाई अद्भुत होम अस्सिस्टेन्ट समुदायले सिर्जना गरेको हो, जुन विश्वभरिका रचनात्मक व्यक्तिहरूबाट बनेको छ।"
5 changes: 5 additions & 0 deletions responses/ne/HassSetPosition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: ne
responses:
intents:
HassSetPosition:
default: "बनाइदिएको छु"
28 changes: 15 additions & 13 deletions responses/ne/HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ responses:
"water_heater": "पानी तातो पार्ने यन्त्र",
"weather": "मौसम जानकारी"
} %}
मैले {{ translations.get(state.domain) }} अफ गरिदिएको छु
light: "मैले बत्ती निबाइदिएको छु"
lights_area: "मैले बत्तीहरु निबाइदिएको छु"
lights_floor: "मैले बत्तीहरु निबाइदिएको छु"
light_all: "मैले सम्पूर्ण बत्तीहरु निबाइदिएको छु"
fan: "मैले पंखा बन्द गरिदिएको छु"
fans_area: "मैले पंखाहरु बन्द गरिदिएको छु"
cover: "मैले पर्दा लगाइदिएको छु"
cover_device_class: "मैले {{ slots.device_class }} लगाइदिएको छु"
scene: "मैले सिन बन्द गरिदिएको छु"
script: "मैले स्क्रिप्ट बन्द गरिदिएको छु"
lock: "मैले ताल्चा खोलिदिएको छु"
valve: "मैले भल्भ बन्द गरिदिएको छु"
{{ translations.get(state.domain) }} अफ गरिदिएको छु
light: "बत्ती निबाइदिएको छु"
lights_area: "बत्तीहरु निबाइदिएको छु"
lights_floor: "बत्तीहरु निबाइदिएको छु"
light_all: "सम्पूर्ण बत्तीहरु निबाइदिएको छु"
fan: "पंखा बन्द गरिदिएको छु"
fans_area: "पंखाहरु बन्द गरिदिएको छु"
fans_floor: "पंखाहरु बन्द गरिदिएको छु"
fan_all: "सम्पूर्ण पंखाहरु बन्द गरिदिएको छु"
cover: "लगाइदिएको छु"
cover_device_class: "लगाइदिएको छु"
scene: "सिन बन्द गरिदिएको छु"
script: "स्क्रिप्ट बन्द गरिदिएको छु"
lock: "ताल्चा खोलिदिएको छु"
valve: "भल्भ बन्द गरिदिएको छु"
28 changes: 15 additions & 13 deletions responses/ne/HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ responses:
"water_heater": "पानी तातो पार्ने यन्त्र",
"weather": "मौसम जानकारी"
} %}
मैले {{ translations.get(state.domain) }} अन गरिदिएको छु
light: "मैले बत्ती बलिदिएको छु"
lights_area: "मैले बत्तीहरु बलिदिएको छु"
lights_floor: "मैले बत्तीहरु बलिदिएको छु"
light_all: "मैले सम्पूर्ण बत्तीहरु बलिदिएको छु"
fan: "मैले पंखा चालु गरिदिएको छु"
fans_area: "मैले पंखाहरु चालु गरिदिएको छु"
cover: "मैले पर्दा खोलिदैएको छु"
cover_device_class: "मैले {{ slots.device_class }} खोलिदैएको छु"
scene: "मैले सिन सुरु गरिदिएको छु"
script: "मैले स्क्रिप्ट सुरु गरिदिएको छु"
lock: "मैले तल्चा लगाइदिएको छु"
valve: "मैले भल्भ खोलिदैएको छु"
{{ translations.get(state.domain) }} अन गरिदिएको छु
light: "बत्ती बालिदिएको छु"
lights_area: "बत्तीहरु बालिदिएको छु"
lights_floor: "बत्तीहरु बालिदिएको छु"
light_all: "सम्पूर्ण बत्तीहरु बालिदिएको छु"
fan: "पंखा चालु गरिदिएको छु"
fans_area: "पंखाहरु चालु गरिदिएको छु"
fans_floor: "पंखाहरु चालु गरिदिएको छु"
fan_all: "सम्पूर्ण पंखाहरु चालु गरिदिएको छु"
cover: "खोलिदिएको छु"
cover_device_class: "खोलिदिएको छु"
scene: "सिन सुरु गरिदिएको छु"
script: "स्क्रिप्ट सुरु गरिदिएको छु"
lock: "तल्चा लगाइदिएको छु"
valve: "भल्भ खोलिदैएको छु"
Loading