SONOFF on at a time when home do I need twin automatons

Hi scenario, I want my SONOFF to come on if we are at home and its after 19:00 hrs

so I can use this

    platform: state
    entity_id: group.all_devices
    to: 'home'
    platform: time
    after: '19:00:00' 
  - service: homeassistant.turn_on
    entity_id: switch.Sonoff_3 

But I also want the SONOFF to come on at 19:00 if we are already at home. so do I need to create a second automation where the trigger is the time and the condition is home.

Or can it be done on one automation.

Re Dave

Add a time trigger for just slightly after 19:00 (you can have multiple triggers)

You will want to add a condition for someone being home also unless you want the light to come on regardless if the house is occupied.

1 Like

Thanks for the reply, did not know about multiple triggers, will give that a try

Re Dave