#Explanation of built-in intents

1 messages · Page 1 of 1 (latest)

narrow yarrow
#

Hey, I have one question related with build-in intents. I preparing translations for Polish language (I was reading documentation https://developers.home-assistant.io/docs/intent_builtin/) and I don't fully understand some command related with timer. Below I share with you english intent:

  - sentences:
      - "remove 5 minutes from 1 hour timer"
      - "remove 5 minutes from timer for 1 hour"
      - "decrease 1 hour timer by 5 minutes"
      - "decrease timer for 1 hour by 5 minutes"
    intent:
      name: HassDecreaseTimer
      slots:
        minutes: 5
        start_hours: 1
    response: Timer updated

I don't fully understand these sentences. I also don't understand ideas of slots:

  • start_hours - Hours the timer was started with
  • start_minutes - Minutes the timer was started with
  • start_seconds - Seconds the timer was started with

Can someone explain to me when this command is useful? How should it be used (some context for using this command)? 🙂

glacial comet
#
  1. (mis)reads frozen pizza instructions
  2. "hey Nabu, set a timer for 1 hour"
  3. reads instructions again, realizes it's only a 40m job
  4. "hey Nabu, remove 20 minutes from my 1 hour timer"

in the second sentence ("hey Nabu, remove 20 minutes from my 1 hour timer"), we have the slots:

start_hours: 1
start_minutes: 0
start_seconds: 0
#

and

hours: 0
minutes: 20
seconds: 0
#

unless there are any bugs I am unaware of, the end result of the second sentence is that the initial timer will no longer be a 1h timer, but a 40m timer, without altering the time that has already passed

narrow yarrow
#

Oh @glacial comet thanks, it's much clearer now... but what if 5 minutes have passed and then I realise that I should update timer? Do we still refer to our timer as my 1 hour timer?

umbral plume