Debian Codegraph @

intents/responses/lb/HassGetCurrentTime.yaml

raw
1 language: lb
2 responses:
3 intents:
4 HassGetCurrentTime:
5 # return both hours and minutes with padded zeros so it is pronounced correctly by TTS
6 # "Es ist 1:02" results in spoken "Es ist eins null zwei"
7 # "Es ist 01:02" results in spoken "Es ist ein Uhr zwei"
8 default: >
9 {% set hour_str = '{0:02d}'.format(slots.time.hour) %}
10 {% set minute_str = '{0:02d}'.format(slots.time.minute) %}
11 Et ass {{ hour_str }}:{{ minute_str }}