Automations during certain times?

Ok, so to start off, I have two automation’s, one that turns on the yard light 30mins before sunset, and one that turns it off at 10pm everyday unless my device is away, an which, it won’t turn off. And in-turn it off manually when I get home at midnight, which is about 2 to 3 days a week.

Now, I have tried searching for similar scenario, but couldn’t really find what I was looking for, and this might be out of the realm of home assistant, but is there anyway to program the light, or any switch for that matter to turn off 10 mins after my device turns from away to home, but only during the times of say 10pm to 1am?

Reason being I live in snow country, and if I have this turn off every 10 mins after I manually turn it on when snow blowing, it might get annoying.

This is what i have for the 10 mins, but I havent got it working yet

- action:
  - data:
      entity_id: group.garage
    service: switch.turn_off
  alias: Turn off garage lights 10 minutes after Preston gets home
  condition:
  - condition: state
    entity_id: device_tracker.preston_phone
    state: home
  id: '1520307492079'
  trigger:
  - entity_id: device_tracker.preston_phone
    for:
      minutes: 10
    from: away
    platform: state
    to: home

Thanks for any assistance.
Preston

Yes, it’s certainly doable in HA but probably not with the editor. I find it’s too limited and it’s better to invest a little time reading through the docs.

This is untested and from my phone but give it a try.

- id: '1520307492079'
  alias: Turn off garage lights 10 minutes after 
  trigger:
    - platform: state
      entity_id: device_tracker.preston_phone
      to: 'home'
      for:
        minutes: 10
  condition:
    condition: and 
      conditions:
        - condition: time
          after: '21:59:59'
        - condition: time
          before: '01:00:00'
  action:
    - service: homeassistant.turn_off
      entity_id: group.garage