N.P.
since it seems this is you doing it, you might want to put something next to your bed that will create noise or a bad sensation when walked on - like tinfoil or bubble wrap or some bells on a string. This may make you wake up.
Your husband may want to put some type of lock on the outside doors to keep you from wandering.
You should also request a sleep study be done to find out what is going on.
N.