Let's not forget this is a dualogic
It add a starter inhibitor into the equation
If it's in gear and not recognising the foot is on the brake, the starter will not activate
If oil is leaking onto the the neutral switch, the starter will not activate
If the diagram has ruptured in the accumulator and the car will struggle to find neutral, the starter will not activate
If the contacts are dirty in the relay the starter will not activate
A dead battery would not normally start unless it's been charged back up first
What gear is shown on the dash when it's failing is a good indication as to whether it's a electrical fault, battery wires starter relay or gearbox/brake switch
If it does not fail if parked in neutral, it will need some diagnostics run on the gearbox, and unfortunately probably an expensive repair
You can get a rough idea on the state of the accumulator by how long the hydraulic pump runs for when the door is opened
We need to diagnose the problem, which is why I asked for more information
Which dash lights come on immediately
Which then go out
What's the gear selection saying in on the dash
How do you get it to work again
How many seconds does the pump run for when you open the door after it's be left for awhile
If you don't already try selecting neutral before switching the engine off and parking up
My guess is you just keep trying and eventually it starts
Which would be earth, relay, selector switch or accumulator