Probably due to the normal reason, you are trying to use a device as the trigger. If you use state and the entity instead it will probably work as expected. I am just guessing as you gave no real info.
Anyhow see this especially the second bit in the automation section.