Motion sensor/problem in config

Hi all,
Last couple of months have tried so many ways to make the HUE do what I have in mind. It’s a simple routine I want the system to do but I am unable to fix this.
Set up is the following.

  1. Garden with one smart plug which should turn on/off the connected lamps.
  2. Entrance with 4 hue spots and one hue bulb.
  3. In the garden I have a outdoor motion sensor
  4. In the entrance I have a dimmer switch
    Note: All is tested, all is functioning, just not how I want it – am sure I am the problem here.

I would like to have three different time zones:

  1. 06.00 – 20.00 (all lights out, not repons to motion sensor).
  2. 20.00 – 06.00 (when motion sensor detects motion, lights (garden+entrance) on for 10 minutes, after that return to earlier setting)
  3. 20.00 – 23.00 garden on all the time (after 23.00 – earlier mentioned two will apply)

Have tried the LAB automation too. Not successful.
I really hope someone can push me in the right direction.
Kind regards,
Daan

I strongly suggest you to use two motion sensors, one for the entrance and another for the garden. It can be configured with one, but then, from 20.00 to 23.00, if the sensor detects movement (e.g. you are in the garden and the sensor detects it), the entrance lights will constantly keep switching on and off every 10 minutes, which I guess you won’t like it.
NOTE: if you leave the garden between 20.00 and 23.00 (e.g. 22:00) you will have to manually switch off the garden lights, and if a movement is detected (e.g. because of a stray animal), between that moment you left (22:00) and 23:00, the garden lights will remain on until 23.00 (no automatic switch off after 10 minutes; this will only happen from 23.00 to 06.00). And of course, if you remain in the garden beyond 03:00, the lights will start switching off and on every 10 minutes.

Having all this in mind, I think the following configuration would work (3 motion sensor configuration + 2 automations)

motion sensor config 1:
when this happens:
select device - the motion sensor (whatever name you set)
act on - motion
wait 0 seconds - 00:00:00
under the conditions
group on state - garden
state - only if the lights are off
time: 20:00 to 23:00
what should take place?
activate scene - garden - bright (or whatever scene you want)

motion sensor config 2:
when this happens:
select device - the motion sensor (whatever name you set)
act on - motion
wait 0 seconds - 00:00:00
under the conditions
group on state - garden
state - only if the lights are off
time: 23:00 to 06:00
what should take place?
activate scene - garden - bright (or whatever scene you want)
wait 10 minutes
toggle group - garden - switch off

motion sensor config 3:
when this happens:
select device - the motion sensor (whatever name you set)
act on - motion
wait 0 seconds - 00:00:00
under the conditions
group on state - entrance
state - only if the lights are off
time: 20:00 to 06:00
what should take place?
activate scene - entrance - bright (or whatever scene you want)
wait 10 minutes
toggle group - entrance - switch off

In addition, the following automations should be added:
automation 1:
when this happens
every day at 23.01
under the conditions (optional)
(empty)
what should take place
garden - switch off

automation 2:
when this happens
every day at 06.01
under the conditions (optional)
(empty)
what should take place
entrance - switch off
garden - switch off