Set timeout for motion (Hue in ZHA)

How can I change the time from motion detected to no motion detected? I think it is set to 10 s as a default.

Does anyone know what the difference between occupancy and the on off sensor is? The on off sensor seems to have a much longer timeout but again I can’t change that.