We’ve got a breaking change in recent versions of Home Assistant that drove me nuts until today…
Back a few versions ago, if you renamed a Z-Wave device in Configuration->Z-Wave it would also rename the device’s entity id for purposes of automation. For example, if you added a Hank hkzwdws01 door/window switch it would show up with entity id “sensor.hank_hkzwdws01_doorwindow_sensor_access_control” but if you renamed it “Front Door” it would get new entity id “sensor.front_door_access_control”. Then you could script or automate on that id rather than the long default one.
Now, however, although it shows up in the UI with the new entity id, it doesn’t work. You have to script using the original long entity id name. And that’s kind of hard to find since the UI doesn’t show it when you click on it. But if you look in the States browser you’ll see it and can use that instead.
I think this has to do with the Entity Registry. It appears that anything added to the Registry (including Z-Wave devices) don’t “process” native Z-Wave name changes and keep their old names. Even though the UI still uses the changed names.
Yes, it’s a bug. But it’s also a configuration issue at the moment. Until the Entity Registry allows you to override the entity id (not just the Name), you’ll have to modify your scripts to use the original/long/ugly names.