Renaming Switch Node entity causes issues

Hello,
I have several node-red switch entities and I needed to rename one of them to simplify logic / automation rules. I tried to rename it in Node Red, but that did not seem to work. After several attempts, I have a mismatch between NodeRed and HomeAssistant.

The entity_id was switch.steves_office_switch_heat_set_back
and I tried to rename to switch.steves_office_switch_heat_setback

After a few attempts and rebooting HA Yellow, I still do not have the entity synchronised in HomeAssitant:

The first - switch.steves_office_switch_heat_setbackxxx cannot be found in NodeRed - search.

looking at the settings, the delete option is greyed out.

The other two’s settings show this message:
This entity (‘switch.steves_office_switch_heat_setback’) does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail.

The documentation there does not seem to match the NodeRed case.

How to clean up?

How to rename a NodeRed created entity in the future ?

Where the debug panel is click the info tab. Search for the node by name,

image

You should see an entity config node further down.

image

You have to delete the ones linked to the sensors you created. Restart nodered and ha after removing them. I usually create boolean switchs in HA helpers section rather than in NR.

I think that is a better idea - thanks’

Am I correct in thinking that the input_boolean helpers are the equivalent of switch entities?

Yes boolean, switch, and toggle all refer to the same thing.