Need help creating flow for HA: Presence activated lights (Aqara FP1 sensor and PR1 motion sensor)

Hi all,

Is anyone perhaps using a Node Red flow for a Aqara FP1 motionsensor in combination with an P1 motionsensor for presence activated lights which I can use as a template to make my own? Please share it.

So far I’m unsuccessful in creating a good flow for this.
Below are some screenshots of the current flow I made and the automation that I used as an example for the flow. I made this automation to duplicate the situation in this video: https://youtu.be/d0zUWrDumHM?si=ukAAfvtatOsog5bB

I made a group helper, binary sensor group) in HA for my FP1 presence sensor and P1 motion sensor that are in the office.

Below a screenshot of the Event state-node which acts as the trigger when presence is detected by the binary sensor of the group-helper I made in HA. I don’t know if this node is the correct one for this flow to be honest.

I can’t figure out how to ‘migrate’ the HA- automation properly to Node Red so that it works. Also adding the ‘Transition’ of 5 seconds is something I can’t quite figure out yet. What am I doing wrong?
Some help would be greatly appeciated!:smiley:

Thanks in advance!