Automation with condition "after"

Hi,
Just wonder what is needed to adjust my automation in order to start led strip when i am home and not just at 19.00 (maybe i come home at 19.30). I saw condition after is deprecated long time for triggers.

- id: '1608219603111'
  alias: TurnOnLED
  description: TurnOnLED
  trigger:
  - platform: time
    at: '19:00'
  condition:
  - condition: state
    entity_id: person.adi
    state: home
  - condition: or
    conditions:
    - condition: state
      entity_id: person.mariana
      state: home
  action:
  - type: turn_on
    device_id: 2f199560eb8dec2e323003755ff7f780
    entity_id: light.led_tv
    domain: light
    brightness_pct: 50
  mode: single
...
  trigger:
    - platform: time
      at: '19:00'
    - platform: state
      entity_id: person.adi
      to: home
  condition:
    - condition: time
      after: '19:00'
    - condition: state
      entity_id: person.adi
      state: home
    - condition: or
      conditions:
        - condition: state
          entity_id: person.mariana
          state: home
...

But I think you may have your conditions set up incorrectly.

All conditions are ‘and’ by default.

So the way the conditions are written right now with my changes is:

“after 19:00 AND person.adi is home AND (person.mariana is home OR )”

you have no other OR in the block.

you probaly want the two person entities to be OR so it would look like:

condition:
  - condition: time
    after: '19:00'
  - condition: or
    conditions:
      - condition: state
        entity_id: person.adi
        state: home
      - condition: state
        entity_id: person.mariana
        state: home

then it will be:

“after 19:00 AND (person.adi is home OR person.mariana is home)”

If I’m wrong then…never mind. It just looks strange the way it is now.

i deleted trigger, put your synax as it is and it doens’t allow to save. And message is black, so i don’t have the info with what is wrong.
But you are on the right way. I want that my led strip to turn on if me or my wife are at home after 19.00. It doesn’t need to be both home.

the indentation was off. I edited the post and hopefully it’s OK now.

still same blank message. switched dark theme to light theme to encounter some overlapping of message font, but same thing.

L.E. searched for something similar in automation examples, but nothing. So I think i leave 2 automations with trigger sunset (guess is needed an trigger) , 2 conditions: time after 19 and person state home.
And for every person i make the same automation by duplicate.

Yeah, sorry, but without the error message and seeing the entire automation as you have it there’s no way for me to help.