Automation - Turn on ligth if unavailable during scene activation

Hi,

Is it possivel to have a condition based in the time_fired from a specific scene?
I’m trying to create an automation to change the color ligth if one of the ligths are unavailable during the scene activation in the last minutes. If not, anyone have other idea to achieve the same propos?
For example:

automation:
  - alias: 'Turn on ligth if unavailable during scene activation'
    trigger:
      platform: state
      entity_id: ligth.TestA
	  from: 'unavailable'
      to: 'on'
    condition:
        - condition: template
          value_template: "{{ as_timestamp(now()) - as_timestamp(call_service - scene.pc_lights - time_fired) > 300 }}"
    action:
      - service: ligth.turn_on
        entity_id: ligth.TestA
		brightness: 175
		rgb_color: [220, 210, 160]
Event:
> {
>     "event_type": "call_service",
>     "data": {
>         "domain": "scene",
>         "service": "turn_on",
>         "service_data": {
>             "entity_id": "scene.pc_lights"
>         }
>     },
>     "origin": "LOCAL",
>     "time_fired": "2020-12-11T22:40:17.061727+00:00",
>     "context": {
>         "id": "8b82b174ab514c0c02773b425b0f2936",
>         "parent_id": null,
>         "user_id": "693963c7e052448db7c882977c487a63"
>     }
> }