Homematic Motion Detector

I have an HM motion detector (HMIP SMI55) showing the movements under Hassio. The question is how do I get it that as soon as he detects movement, a lamp is switched on and goes off again after 2 minutes. How can i find out witch singnal will be sed by motion?
Thats wat i tested without function:

platform: state
entity_id: automation.bewegungsmelder
for: '0:00:05'
to: 'on'
from: 'off'

Thereā€˜s a default blueprint that you just need to provide the motion sensor entity and the light entity

where to find?

Einstellungen > Vorlagen

It seems the Homematic IP presence detectors are not showing up correctly as motion detectors in HA. They also cannot be used in the template. Any advice?