Debian Codegraph @

intents/responses/ta/HassStartTimer.yaml

raw symbols SCIP
1 language: ta
2 responses:
3 intents:
4 HassStartTimer:
5 default:
6 'TODO: {% set h = slots.hours if slots.hours is defined else none %}
7 {% set m = slots.minutes if slots.minutes is defined else none %} {% set s
8 = slots.seconds if slots.seconds is defined else none %} {% set h_text = h
9 ~ ('' hour'' if h in [ "1", ''one''] else '' hours'') if h else '''' %} {%
10 set m_text = (30 if m in [''half'', ''1/2''] else m) ~ ('' minute'' if m in
11 [ "1", ''one''] else '' minutes'') if m else '''' %} {% set s_text = (30 if
12 s in [''half'', ''1/2''] else s) ~ ('' second'' if s in [ "1", ''one''] else
13 '' seconds'') if s else '''' %} {% set text_list = [ h_text, m_text, s_text]
14 | select() | list %} {% set text = text_list[:-1] | join('', '') ~ '' and
15 '' ~ text_list[-1] if text_list | count > 2 else text_list | join('' and '')
16 %} {% set name = ('' named '' ~ slots.name | trim) if slots.name is defined
17 else '''' %} Timer set for {{ text }}{{ name }}
18
19 '
20 command:
21 'TODO: {% set h = slots.hours if slots.hours is defined else none %}
22 {% set m = slots.minutes if slots.minutes is defined else none %} {% set s
23 = slots.seconds if slots.seconds is defined else none %} {% set h_text = h
24 ~ ('' hour'' if h in [ "1", ''one''] else '' hours'') if h else '''' %} {%
25 set m_text = (30 if m in [''half'', ''1/2''] else m) ~ ('' minute'' if m in
26 [ "1", ''one''] else '' minutes'') if m else '''' %} {% set s_text = (30 if
27 s in [''half'', ''1/2''] else s) ~ ('' second'' if s in [ "1", ''one''] else
28 '' seconds'') if s else '''' %} {% set text_list = [ h_text, m_text, s_text]
29 | select() | list %} {% set text = text_list[:-1] | join('', '') ~ '' and
30 '' ~ text_list[-1] if text_list | count > 2 else text_list | join('' and '')
31 %} Command will be executed in {{ text }}
32
33 '