Device shows in use by Room Lighting

I have a motion device that says it is in use by a Room Lighting app, but when I checked the app it doesn't show up anywhere. When I clicked on the gear icon to show details, I see it as a Value associated with a setting called "attrDeviceOff" but I don't see anywhere how to change it. This device was previously used in the app but I swapped it for a different motion sensor so it is probably a left-behind ghost. Any way to get rid of it?

How about delete the current app or instant that was previously associated with the problem sensor?

Of course deleting it and recreating it with the new sensor will work. I was hoping for a solution involving no rework. No big deal - it was a simple rule so done.