Sunrise & sunset routine philips hue when home?

Hi

I want to make a sunrise and sunset routine that turns on and off a hue daylight in my kitchen. The problem is I only want the routine to do this when I am home. When I leave the house I want that light to be turned off but also turned on automatically when I am back home as long as it is no sunset yet. Because at sunset I want the light to be turned off again. So it is a light which only needs to work when there is sun and when I am home… I can not find any way to program this in smartthings. I can find how to let lights go on and off automatically when not home but I cannot add the sunrise and sunset routine to this… Is it possible??