How to use the presence simulation function