Setup an automatic lights on when arriving

hi all, first post.
I have :
Aeotec Multisensor 6 Z-Wave Plus
Fibaro Single Switch 2 Z-Wave Plus 1850w
I want to configure that when somebody is arriving that the switch will go on and turn the lights on
It detects the motion, puts the switch and the lights for 10 seconds (as programmed). After 10 seconds the lights go off as expected, but I see that that the multisensor remains on for more than 5 min, so when somebody arrives within the 5 mins, no lights are turned on anymore as the multisensor is still as detected.
What happening ? is there a reset to set ?
Thank you very much for helping.

Show us the code you have now.

id: ‘1668508187951’
alias: New Automation testing
description: ‘’

  • platform: state
    • binary_sensor.multisensor_6_motion_detection
      from: ‘off’
      to: ‘on’
      condition: []
  • type: turn_on
    device_id: d3c53b1ab8bb122f27cd806f6cdecc6e
    entity_id: switch.single_switch_2
    domain: switch
  • delay:
    hours: 0
    minutes: 0
    seconds: 5
    milliseconds: 0
  • type: turn_off
    device_id: d3c53b1ab8bb122f27cd806f6cdecc6e
    entity_id: switch.single_switch_2
    domain: switch
  • device_id: c746c970955116436cf8ebbce4962374
    domain: zwave_js
    entity_id: binary_sensor.multisensor_6_motion_detection
    type: refresh_value
    refresh_all_values: true
    mode: single

The sensor remains 5 minutes in detection mode before going to clear

You should be able to change the motion detection time. 5 minutes is very long…

go to configuration - devices - zwave JS - aeotec multisensor - configure device.

change the motion reset timeout

Motion Reset Timeout

Specifies the interval after which the device will clear its status

Min Max Default
30 seconds 3600 seconds 240 seconds

Wake the device to make the change happen.

Hi, welcome to the forum!

You might also have a look at this: How to help us help you - or How to ask a good question

thank you for helping.