Automation from unavailable state

hi,
I have led strips that can be seen by HA and are powered by the usb on my tv. My issue is when the tv is off they show as unavailable.

Is it possible to have a automation run when HA detects them again like a from unavailable state?

Yes

trigger:
  - platform: state
    entity_id: light.whatever
    from: 'unavailable'
1 Like

Thank you

Thank you for confirming this