Condition only valid for one of two triggers

Hello everyone,

thanks for this great communitiy. I found here a lot of helpfull topics.

But now I’m stuck and didn’t find what I’m looking for. Or maybe I’m too stupid to search for the right thing.

So maybe you can help me.

I have this automation:

alias: Start working
description: ""
trigger:
  - platform: state
    entity_id:
      - device_tracker.desktop_dominic
    from: not_home
    to: home
    for:
      hours: 0
      minutes: 20
      seconds: 0
  - platform: state
    entity_id:
      - device_tracker.nb1055_2
      - device_tracker.nb1055
    from: not_home
    to: home
condition:
  - condition: time
    before: "10:00:00"
action:
  - device_id: 6ae708ce69c94caa3023fdffd639a9d4
    domain: climate
    entity_id: climate.arbeitszimmer_dominic
    type: set_preset_mode
    preset_mode: comfort
mode: single

It looks if my working Notebook or my Pc appears in the Network and then it should change the temperature of my workroom.

Now the Problem is, that sometimes my Nootebook will restart automaticly or Windows will not shut down gracefull.
Then I will turn off my Notebook, turn down the heat and leave the room. The Notebook will restart and turn on the heat again.

So my idea was to add a time condition. But this should only have an impact of the Notebook entity. Because if I’m using my private PC in the afternoon it should turn on the heat.

Now I don’t get it how to make the condtion only works for the notebook.

I’m pretty sure you could give me a hint.

Regards
Nevyen

Split it into two automations. Or delete the global condition and use a choose action that depends on 1) the trigger and condition or 2) the other trigger.