Help changing modes

Hello, and sorry if there is another thread about this topic but I was not able to find the answer to my question.
I would like to change the mode at sunset with the following conditions.

At sunset if nobody at home change to “Night Away” mode OR
At sunset if there is somebody at home change to “Night at home” mode.

Thanks in advance

Also if after sunset, somebody arrives at home, change to “Night Home” mode.

Look for an smartApp called Hello, home Phase Director. It should do what you are looking for.

Thanks for your help, I will check the app.