I had for some reason dead Z-Wave nodes which I had to restore to the system. I just removed the dead and added them again and gave them the same name. My dashboard just continued to work because the newly added devices had the same name (id).
Unfortunately this didn’t applied to automations and scripts because they use (not always) a numeric ID which had changed with the new devices. It was a cumbersome action to fix this.
If automations/scripts also uses for device_id and entity_id the name and not the unique ID number it would be much easier to replace a failed node (either Z-Wave or any other).
My suggestion is to fix this in the Automation/Script builder to use names and not numbers.
I agree with avoiding device ids, but entity ids are no longer used in the UI either. They use a unique identifier now. I’m sure it was introduced to fix something but it has made helping people and replacing entities so much more difficult. So this FR should exist.
That shouldn’t be called an entity_id, as it is only valid as it relates to that device_id.
I don’t think it has to be unique in HA, just unique under that device_id.
I don’t even think of that an an entity_id really.Should be called unit or sub-device or something.
Entity_id’s are what I show above, not related to device_id except in a databse in HA somewhere. IMO.
Giving it a different name should be something that I would think the core team would want. So confusing now.
It’s like the users are caught over infighting between device_id trigger people and entity_id trigger people on the core team. More is not always better.
When you use the UI, you get all the UI stuff. That way, if you change the entity_id, it doesn’t matter for your trigger, action, or condition.
This FR is basically requesting to undo all the work that was put in place to make it so people didn’t need to update automations when they change device names and entity_ids. FYI this was a long standing WTH and a major pain point for beginners.
This FR should really ask for a way to substitute a device with a new device, otherwise I never see it happening.