I would really prefer if device triggers either had from/to control like state triggers or by default ignored unknown state.
This is particularly a problem with on/off sensors for the most part I find I can’t use the simpler device trigger because when I restart HA or lets say restart Zigbee2mqtt or Zwave2mqtt the state will flip between unknown and on or unknown and off, thus triggering the automation. You can over come this with conditions but then you are not getting any benefit over using a state tigger to begin with.
Device Actions on the other hand are typically great.
Entities arnt much better since you need to fully release them restart rename etc to try and keep them in place.
HA really needs a “replace” function for devices / entities but that is another topic.
This is simply an request to address behaviour of the Device triggers and I’m my opinion it isn’t useful to have them fire on reboot due to unknown state.
You can change a new entity id to match an old one in one place, Configuration / Entities. You cant do this with device ids.
It is also an existing feature request.
Device triggers are simple triggers. They don’t (and probably never will) support advanced options like specifying the from and to states, or support templating. If you want that use one of the other trigger types.