Automation not showing up for a device

I have created an automation in which a device is turned on or off in the action block. But, when I go to Configuration → Devices and select this device, in the Automations section, it says that no automations have been added using this device yet. All other devices show the automations in which they appear. Why would only one device not show the associated automation?

Thanks,
Arun

Does the automation pass a configuration check?

Have you reloaded automations or restarted?

Yes, the automation has been working fine for couple of months now. HA has been restarted several times after the automation was created.

In the last live stream I heart them say there are indeed some cases that it happens. How is the device used in the automation? As entity_id, device or area?

It is used as a device.