Z Wave JS Migration - How Do I Find Automations and Scripts Connected To Old Entities

I recently migrated to JS Z Wave Integration and it’s been a painful process. This morning I noticed an automation firing when it was supposed to. It was a motion based trigger, and when I checked it was still using the old device name:

sensor.linear_nortek_security_control_llc_wapirz_1_motion_sensor_alarm_level

I changed it, but this made me wonder if there were any other automations or scripts that I missed. I tried searching for it under ‘entities’, ‘automations’, and ‘scripts’ and found nothing, but I’m not sure I’m doing it right or looking in the right spot.

Where should I be looking, or is there a better way to find these? I have 4 other motion sensors and I’m sure I missed something and there has to be a better way other than me just noticing something didn’t fire.

The Watchman is what you want :wink:

1 Like

You should be able to use a text editor and search for the old device id in the automations.yaml, scripts.yaml files.

but you won’t be able to easily change the automations and scripts there since you are using device automations/scripts and not states.

you should edit the automations/scripts in the respective UI editor for each of those.

you won’t find those devices as entities because they aren’t entities…they are devices.

That is the drawback of using devices instead of entities in your automations and scripts. Changes are harder to do.