Beginner needs help with automation (device tracker & tasmota plug)

Hello all,

I´m a beginner with Home Assistant and now I´m looking for help with an automation. I´v read a lot in this community so far, but now I signed in to get some specific help for my problem. I´m pretty sure it´s not complicated, but I just don´t know how to get it working.

Here´s my issue:
I want to create an automation that switches on my tasmota plug when I´m recognized home. As a simple test, I just tried to do this:

Nothing happens when my state changes. Can you tell me what I´m doing wrong?
Switching the plug manually works just fine and the device tracking also works as it should.

Thank you in advance
Johannes

I don´t know why, but now it seems to work. :man_facepalming:
I´ve tried pretty long now and I don´t know what I´ve done different than before, but it works!