Skip to content
Discussion options

You must be logged in to vote

Thanks for asking. The action does one entity per call, but a repeat loop makes it bulk:

repeat:
  for_each: >
    {{ states | map(attribute='entity_id')
       | select('search', 'living_room_light') | list }}
  sequence:
    - action: homeassistant.update_entity_id
      data:
        entity_id: "{{ repeat.item }}"
        new_entity_id: "{{ repeat.item | replace('living_room_light', 'lounge_light') }}"

It only works on entities with a unique ID. Try it with a notification in place of the action first, so you see what it is going to rename.

Docs: https://spook.boo/entities#update-an-entitys-id

Closing this one, since it is covered now. If something is still missing, feel free to open a …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by frenck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants