They are both "correct’ in that they will work as intended and device automations appear simpler to new users, however using only entity ids has some major advantages, particularly in the long term. See:
They are both "correct’ in that they will work as intended and device automations appear simpler to new users, however using only entity ids has some major advantages, particularly in the long term. See: