The States section of the Developers Console shows the conflict
switch.switch off value_index: 0
new_entity_id: switch.kitchen_side_pots_switch
value_instance: 1
node_id: 27
friendly_name: kitchen_side_pots Switch
value_id: 72057594495713280
old_entity_id: switch.kitchen_side_pots_switch_27_0
the entity_id switch.switch does not match the new entity_id switch.kitchen_side_pots_switch. Automations work with the name switch.switch. The Front End shows the friendly name. But why the mismatch between the “new entity_id” and the actual entity_id? More importantly, how do I fix it?