Show relevant automations/scenes/scripts for a device when using Switch-as-X

I have a device that exposes a switch that I want to show as another entity type (a lock in my case, but I think it’s irrelevant). Of course this is possible via template entities, though Switch-as-X makes it really easy configure, and has a unique feature such that the new entity would be showing on the device page as well! Unfortunately, that does not extend to relevant automations/scenes/scripts. So, in my case, I’ve got a device with the switch that is now marked as hidden, I’ve got a lock entity derived from the switch which shows on the device details page. Finally, I do have several automations related to the lock (and none to the switch), but none of them show up on the device details page.

It’d be great if relevant automations/scenes/scripts were also taking into consideration all of the Switch-as-X helpers!

This actually works as intended and I did not notice the Switch-as-X helper getting a weird entity ID due to name collision.
My apologies, how do I close this?

By marking the solution as you did and explaining the solution for someone else in the future comes across the same situation.

1 Like