Skip to content

Add option to bulk rename entities via regex #407

@malorezzanzo64

Description

@malorezzanzo64

I'm currently using this simple script to do it:

#!/bin/bash
for entity in $(hass-cli --no-headers --columns="ENTITY=entity_id" entity list $1)
do
hass-cli entity rename $entity ${entity//$2/$3}
done

But having a command directly in hass-cli would be better

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions