Assist: Create reminders by voice

Usecase

I wanted a way to replace the voice reminders that I previously used with a Google Nest mini. Now that I have this working I can finally deprecate my Google devices :slight_smile:

Main features

  • Create reminders using HA Assist using a sentence you can configure yourself
  • See the reminders as part of a todo list and optionally show them in your dashboard
  • Use OpenAI integration to parse the reminder time
  • Get the reminders via the HA Companion app when the set time arrives
  • Keep reminders until you dismiss them from the notification

Install guide

  1. Setup the prerequisites as described below.
  2. Import the blueprint
  3. Setup the automation using the blueprint
  4. Test by calling assist with your configured sentence

1. Prerequisites

For this blueprint to work you need a few things to be setup before setting up the blueprint:

2. Import blueprint

Github Gist: voice_reminders.yaml ยท GitHub

Importing

Click the badge to import this Blueprint: (needs Home Assistant Core 2021.3 or higher)

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Or import this Blueprint by using the Gist URL above.

3. Setup blueprint

Navigate to your automations section in HA, add a new automation and select the imported blueprint.
Set it up according to the instructions in the blueprint setup page.

This should result in a configured automation. And example for an automation I have setup myself you can find here:

automation:
  - id: "1703332219266"
    alias: Voice reminder to TTS english
    description: ""
    use_blueprint:
      path: homeassistant/voice_reminders.yaml
      input:
        notify_service: notify.mobile_app
        open_ai_config_entry: 50005158a4b775603223d530315c184f
        todo_list: todo.reminders
        assist_command:
          - Remind me to {reminderDescription} at {reminderTime}
        response_sentence_text: "You will receive a reminder about: {{trigger.slots.reminderDescription}} at {{response_from_ai.response.speech.plain.speech}} o' clock."

Testing

Open an Assist dialog screen and enter your configured sentence, if you follow the example this is:

Remind me to test HA voice reminders at 2

F.A.Q.

I have setup everything a described, but it still does not work

Try to debug your created automation in HA and see which step fails.
Post the debug logs here and I will try to help you.
Posting the generated automation in YAML form also helps.

Changelog

  • 2024-03-22: Initial version
  • 2024-03-23: Used a todo list instead of input helper entities to store the reminders

If you have any issues or questions, please let me know :slight_smile:

1 Like

Thanks for sharing this blueprint. Maybe you can help me with an error I am getting on 2024.7.0

Error: Invalid datetime specified: Sorry, I had a problem talking to OpenAI: Error code: 404 - {'error': {'message': 'The model `pt-3.5-turbo` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}} for dictionary value @ data['due_datetime']
Result:
params:
  domain: todo
  service: add_item
  service_data:
    item: pet the dog
    due_datetime: >-
      Sorry, I had a problem talking to OpenAI: Error code: 404 - {'error':
      {'message': 'The model `pt-3.5-turbo` does not exist or you do not have
      access to it.', 'type': 'invalid_request_error', 'param': None, 'code':
      'model_not_found'}}
    entity_id:
      - todo.reminders
  target:
    entity_id:
      - todo.reminders
running_script: false

It looks like youโ€™ve got a typo in your config and the model is missing a g at the beginning. The error messages says:

The model pt-3.5-turbo does not exist

The name for the model ist gpt-3.5-turbo :slight_smile: