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

HassTurnOn triggered instead of MA play_media #3

Open
ddppddpp opened this issue Jan 8, 2025 · 1 comment
Open

HassTurnOn triggered instead of MA play_media #3

ddppddpp opened this issue Jan 8, 2025 · 1 comment
Labels
local-assist-automation question Further information is requested

Comments

@ddppddpp
Copy link

ddppddpp commented Jan 8, 2025

Experimenting with the DevTools -> Assist I get the following

    {
      "sentence": "Play Nirvana on the Stereo",
      "language": "en",
      "result": {
        "intent": {
          "name": "HassTurnOn"
        },
        "slots": {
          "domain": "scene"
        },
        "details": {
          "domain": {
            "name": "domain",
            "value": "scene",
            "text": ""
          }
        }

on the other hand, when including 'the artist/the band' it seems to work better:

{
      "sentence": "Play the artist NIrvana on the Stereo",
      "language": "en",
      "result": {
        "match": true,
        "source": "trigger",
        "sentence_template": "(play|listen to) [the ](artist|band|group) {media_name} (in|on|using) [the ]{area_or_player_name}[ (with|using) {radio_mode}]"
      }

Besides importing the blueprint and creating an automation w/default media_player, should there be any custom_sentences created?

@marcelveldt
Copy link
Member

That is correct, the intents are very literal now, so you need to include the mediatype.
There is no LLM involved that can auto match what you meant so we need to direct the search a bit

@TheFes TheFes added question Further information is requested local-assist-automation labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
local-assist-automation question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants