Change physical device assigned to a helper

I need to replace a switch that has an associated helper to change the switch to a light.

Is there a simple way to do this without having to redo all the associated automations? It doesn’t appear there is.

If you avoided the use of device_ids, as is advised often here on the forum, it is as simple as making sure the new entity has the same entity_id as the helper it replaces.All uses of that entity_id will simply start referring to the new helper.

Going to be honest this is where it gets a little hazy for me; is the device_ID the same as the device name? i.e. listed in the devices page (it doesn’t actually say device_id).

I can see this listed (in list of entities) - what does Name refer to? Friendly Name?

switch.sw9 info
image

light.entrance_lamp (this is the helper)
image

There doesn’t seem to be a way of editing the helper. The Entity ID is the end result, not what it is pointing to.

Device name is not the same. Device Id’s is what you get in an automation when you chose device actions, instead of use services like light.turn_on with an entity_id.

If you rename the entity id of this one, or delete the helper (that is what happens when you remove the device) then you can create a new helper, and rename its entity_id if needed. The new helper has then taken the place of the old one.

1 Like