I moved your post to the Configuration category as this is a question about the backend (automations, scripts, integrations, etc…) not the frontend (dashboards, cards, UI etc…).
I’ve not seen the official docs on this so thanks for that. I’ve only seen other threads concluding that it should be possible, but I guess they are old or not correct.
I will take a look at the docs you suggested as I didn’t know that was against the best practices. Strange how when I am constructing the automation it says that using a Device is “a great way to start”. Being from a programming background I did notice the hardcoded ID’s and attempted to change them but ended up stopping them from working. But now I know it’s best not to do that I will go through them now and change them,