Your scene is correct. but Ihost does not have the ability to handle such a complex scene. But you can solve this in such a way that you have to create two additional scenes.
MOTION - Disable automatic scene (yours).
NO MOTION - - enable automatic scene (yours)

