Logging tripped motion sensor

Hi

I am wondering if someone could help

I am trying to log the times a motion sensor is tripped.

I have included the snips of my config
Am i doing this incorrectly,
Is anyone able to help?

Thanks
Nick

Does this not work for you? What do you see and what do you expect to see?

I would suggest changing the ‘Aggregation By’ to ‘Auto’, and the ‘Aggregation Formula’ to ‘Sum’ - that way you’ll see the number of times it tripped as you zoom out. But it all depends on what you want to see.