This would only become true after the motion sensor had been in a constant state of detection for 8 hours.
Perhaps the easiest approach would be to have an automation trigger on motion detected by this sensor that starts an 8 hour timer. Then your condition card is just if the timer is running.
conditions:
- condition: state
entity: timer.your_timer
state: active