I have a new idea that will "Almost Work". I can use 2 sensors and get close to the functionality that I am looking for. Set the first sensor to 10 minutes and only use it for the unoccupied functionality. Set the second sensor to a 1 minute window and use it for the occupied actions.
When I walk into the room the 2nd sensor should turn on the lights and they should remain on until the 1st sensor times out at least 10 minutes later.
If I leave with the lights on and return < 10 minutes later then lights should still be on and both timers should restart their countdown, if I return > 10 minutes later then both sensors should be in the unoccupied state and we restart the process.
If I leave and turn the lights off on my way out then return > 1 in but < 10 min later, then 2nd sensor which has by this time reverted to its unoccupied state should turn the lights on for me and the 1st sensor should restart its 10 minute countdown.
If I return > 10 minutes later, both sensors have gone to the unoccupied state and we restart the process.
I still have a problem if I leave and turn the lights off then return < 1 min later as the 2nd sensor has not yet timed out to its unoccupied state as such it doesn't know to turn the lights back on for me.
Everything works as expected if I don't turn the lights off when I leave the room, but if I was willing to have this restriction I could accomplish this with only 1 sensor.
This solution is close, but not perfect.