home-assistant / intents

Intents to be used with Home Assistant
https://developers.home-assistant.io/docs/voice/overview/
Creative Commons Attribution 4.0 International
429 stars 492 forks source link

Timers: add support for "half" and "quarter" #2249

Closed davefx closed 4 weeks ago

davefx commented 1 month ago

At this point we cannot create a timer for "half an hour" or for "3 hours and a half". In Spanish this is a very common case of use, not only for hours, but also for minutes.

I think currently we cannot build these kind of sentences.

synesthesiam commented 1 month ago

Hi @davefx! This is possible using lists as shown here: https://github.com/home-assistant/intents/pull/2252

I have a list like this:

  timer_half:
    values:
      - in: "half"
        out: 30

which can then be used in a sentence like start a timer for {timer_half:minutes} an hour.

Will this work for Spanish?

davefx commented 4 weeks ago

Yes, this definitely works. Closed by #2265