Assign an Area to a Script

For what it’s worth I ran into this issue today as well. Following the directions here: Google Assistant: Scenes available for main user, but not other household members - #3 by bradymholt I added the room to the entities via entity_config:

google_assistant:
...
  entity_config:
    script.vacuum_kitchen:
      expose: true
      room: "None"
...

I have a strong dislike of this solution as it requires me to explicitly declare each individual script in entity_config then restart every time it changes. I would prefer to be able to use exposed_domains for “script” and then assign rooms to the scripts in Home Assistant. Or, at least be able to configure the google_assistant integration to use a default “room” for all entities that cannot have areas assigned. At it’s core this looks like a Google bug, non-roomed entities should be shared with all household users. Why they would treat these differently I cannot fathom. But it’s a bug I think Home Assistant could give us a more reasonable work around for.

In the meantime, using entity_config: room: seems to be a viable solution, as long as things aren’t changing regularly, and personally I like this better than the one proposed above.

1 Like