I can’t figure out when this started, or how to aptly describe what happened, but… what the hell is up with these entity IDs like “12bf71c48991ce9af8d997974dd376c4”? It seems like it barfed them into my scripts when it got confused and lost connection to the device.entity_name entities they previously belonged to. I’d never seen these IDs before, and everything I built was based on entity_names as such.
The entire system seems to make no reference to these gibberish entity IDs, so I don’t know how I could have ever picked them. But once the devices broke (by trying to replace one blown-out Tasmota board with another), everything about my automations - across multiple devices and probably 12 different scripts/automations - fell completely to hell.
I’ve repaired/recovered from breakdowns like this before, but never with this level of confusion, where I can’t even infer what device it was previously referring to. Worse, when I try to edit them to target the proper replacement “entity_id” for things I can recognize & know what it should be targeting, the editor complains that I need to provide a “device_id” as well as the “entity_id”. WHAT EVEN IS A “DEVICE_ID”? Everything in HA has a unique entity ID, so why is it requiring me to provide a “device_id” that isn’t displayed or known anywhere in the entire HA ecosystem except in these scripts that it edited by itself?
Feeling very lost, frustrated, and confused… all my automations are now broken in a way I don’t understand how to reference, how to come back from. Whose decision was it to start putting these cryptic entity IDs in place, or to make silent changes to my automations to inject/replace them? This wasn’t how I wrote them… I would never have used such cryptic IDs.
edit: honestly I can’t see any way to recover from this other than to risk it all and try restoring a backup, hoping that the MQTT database will come with it…
edit: That worked. I’m now back to having things properly associated. What the hell happened? Who on earth decided it was a good idea to give “devices” such precarious, unmanagable device IDs? I read about “oh, use Call Service instead of Device”, but why? The context there doesn’t make sense - I’m not “calling a service”, I’m referring to the state of a device. A device with a specific entity ID. A globally unique, human-readable entity ID. Why is it so difficult for the device picker to use THAT instead of these cryptic, unmanageable gibberish string IDs?