Assist unknown target

Hi Guy ! What’s up :smile:

I have something strange, I have an M5 atom well configured with Home Assistant, etc…
It’s configured in satellite mode, associated with a room in the house, and I have other devices (lights, shutters, etc.) associated with this room. If I ask to turn on/off a light in this room, it works fine, but I can’t control a shutter. Assist gives me this error message (no_valid_targets), extracted from RAW:

intent:
  engine: conversation.home_assistant
  language: fr
  intent_input: ouvre le volet
  conversation_id: null
  device_id: affd2117a84a6619c04e295097fd5856
  done: true
  intent_output:
    response:
      speech:
        plain:
          speech: Désolé, je n'ai pas compris
          extra_data: null
      card: {}
      language: fr
      response_type: error
      data:
        code: no_valid_targets
    conversation_id: null

I’d like to point out that I have no problem switching on or off any of the lights in this room.

Poke @jenova70 @piitaya :face_with_peeking_eye: :roll_eyes:

Can you show me the shutter you’re trying to target?

Particularly interested by

  • Its name
  • Its “voice assistant” settings (is it exposed, does it have an alias)
  • Its device class (you’ll find it in the setting on the entity in a field called “Show as”)

Thx.
JLo

  • No name
  • yep, it’s exposed, without alias
  • concerning device class, I see it looks empty:

ok maybe another lead, it’s not a shutter I have to call obviously :
image

I have IKEA “blinds” but the rating doesn’t seem to be understood by HA, does it?

I tried “open the blind” but it didn’t work, it told me there was no blind in the room:

- type: stt-end
    data:
      stt_output:
        text: ouvre le store
    timestamp: "2024-11-07T07:30:08.953710+00:00"
  - type: intent-start
    data:
      engine: conversation.home_assistant
      language: fr
      intent_input: ouvre le store
      conversation_id: null
      device_id: affd2117a84a6619c04e295097fd5856
    timestamp: "2024-11-07T07:30:08.953764+00:00"
  - type: intent-end
    data:
      intent_output:
        response:
          speech:
            plain:
              speech: Désolé, je n'ai pas trouvé de stores dans cette pièce
              extra_data: null
          card: {}
          language: fr
          response_type: error
          data:
            code: no_valid_targets
        conversation_id: null
    timestamp: "2024-11-07T07:30:08.984840+00:00"

“Ouvre le volet” targets all shutter in the current area

Set the “show as” to shutter.
You don’t care about about type of device you have :blush:
Device class can be overriden on home assistant, you can play with it if you like, set it on curtain and ask “ouvre les rideaux” it should work.

If you have multiple shutter, add a name or alias to be able to target that particular one via its name.
But the device class is your current problem

Yep ! I will open an discussion in Z2M for that.

Thank’s @jenova70

No no :joy: What I meant is replace it yourself.

This is a dropdown

This click on it and pick Shutter (Volet)

And BOOM It’s going to magically works.

yes yes, I understood what had to be done, but I was still wondering why the “device_class” field wasn’t filled in, hence my question to Z2M.

what I did was to modify Z2M (at source) to indicate this device_class