Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to use assist or conversation process to trigger automation. #139214

Open
limitless-code opened this issue Feb 24, 2025 · 1 comment

Comments

@limitless-code
Copy link

limitless-code commented Feb 24, 2025

The problem

Error in logs when I try to use assist to trigger an automation or use "conversation process" to trigger automation with sentence as a trigger. Used to work but no longer working.

The same automation works when using voice PE assistant device, when using key words announce, tell or forecast.

What version of Home Assistant Core has the issue?

core-2025.2.5

What was the last working version of Home Assistant Core?

core-2025.1.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Conversation

Link to integration documentation on our website

https://www.home-assistant.io/integrations/conversation/

Diagnostics information

No response

Example YAML snippet

Snippet from automation 1

action: conversation.process
metadata: {}
data:
  agent_id: conversation.home_assistant
  text: Announce, " {{ (var_message) }} "

Automation 2

alias: "Announce, Tell or Forecast "
description: ""
triggers:
  - trigger: conversation
    command:
      - Announce {sentence}
      - Notify {sentence}
      - Tell {sentence}
    id: Announce
  - trigger: conversation
    command: Forecast {sentence}
    id: Forecast
conditions: []
actions:
  - variables:
      current_volume_level_1: " {{ state_attr('media_player.home_assistant_voice_090503_dining_room_assistant', 'volume_level') }}"
      current_volume_level_2: " {{ state_attr('media_player.home_assistant_voice_0974ab_small_bedroom_assistant', 'volume_level') }}"
    enabled: true
  - wait_template: " {{ is_state('binary_sensor.piper_running', 'on') }} "
    continue_on_timeout: true
    timeout: "00:05:00"
  - action: media_player.volume_set
    metadata: {}
    data:
      volume_level: 0.6
    target:
      entity_id:
        - media_player.home_assistant_voice_0974ab_small_bedroom_assistant
        - media_player.home_assistant_voice_090503_dining_room_assistant
  - action: assist_satellite.announce
    metadata: {}
    data:
      message: " {{ (announce) }} "
    target:
      label_id: home
  - action: media_player.volume_set
    metadata: {}
    data:
      volume_level: " {{ (current_volume_level_1) }} "
    target:
      entity_id: media_player.home_assistant_voice_090503_dining_room_assistant
  - if:
      - condition: not
        conditions:
          - condition: state
            entity_id: media_player.home_assistant_voice_0974ab
            state: unavailable
    then:
      - action: media_player.volume_set
        metadata: {}
        data:
          volume_level: " {{ (current_volume_level_2) }} "
        target:
          entity_id: media_player.home_assistant_voice_0974ab_small_bedroom_assistant
  - if:
      - condition: trigger
        id:
          - Announce
    then:
      - action: notify.mobile_app_poco_f2_pro
        data:
          message: " {{ (announce) }} "
  - action: notify.living_room_tv
    data:
      message: " {{ (announce) }} "
  - action: notify.html5
    data:
      message: " {{ (announce) }} "
variables:
  media_player_id: " {{ trigger.device_id }} "
  media_player: " {{ device_entities(media_player_id) |select('search','^media_player.')|first }} "
  friendly_name: " {{ states[media_player]['attributes']['friendly_name'] }} "
  prepend: media_player.
  voice_assistant_device: " {{ media_player }} "
  announce_sentence: " {{ trigger.sentence }} "
  announce: " {{ (announce_sentence) | regex_replace(find='(^Announce|Notify|Tell|Forecast),?', replace='', ignorecase=True) }} "
mode: single

Anything in the logs that might be useful for us?

Error rendering variables: TemplateError: Invalid domain name ''

Additional information

No response

@home-assistant
Copy link

Hey there @home-assistant/core, @synesthesiam, mind taking a look at this issue as it has been labeled with an integration (assist_satellite) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of assist_satellite can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign assist_satellite Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


assist_satellite documentation
assist_satellite source
(message by IssueLinks)

@limitless-code limitless-code changed the title Error when trying to use assistant to trigger automation. Error when trying to use assist or conversation process to trigger automation. Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants