Device triggers vs states in Z2M

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: