Help setting up routines

Hi. I am trying to sort my Philips hue lights to come on if me or the wife come home ( which I have done and works fine) but I am also trying to get it so it doesn’t do this unless it’s after sunset. Can any 1 help me sort this out. Thanks

Wow I never knew any of those apps were there. Thanks

Robin is right, you need a smartapp for that. Smart lighting should do the trick. This app does not do logic like “Do this action if multiple things are true.”

To get around this limitation create a routine that changes the mode of the house to evening, or a mode of your choosing or creation, at sunset each day. Then use Smartlighting to trigger the light to come on when either presence sensor arrives only when house is in evening mode.