Door Open Close Switch light on off

Hi, This Is my baby steps to try my home assistant work. I try to make my first automation.

I find blueprints hire on the forum and scrip switch light to on-off when door sensor open close.

blueprint:
name: Door Sensor-activated Light
description: Turn on a light when the door is opened.
domain: automation
input:
doorsensor_entity:
name: Door Sensor
selector:
entity:
domain: binary_sensor

My sensors has device_class opening but it’s commented

for now since not every sensor uses ‘opening’ as default

device_class: opening

light_target:
  name: Light
  selector:
    target:
      entity:
        domain: light
door_closed_wait:
  name: Wait time
  description: Time to leave the light on after door is closed
  default: 120
  selector:
    number:
      min: 0
      max: 3600
      unit_of_measurement: seconds

mode: single
max_exceeded: silent

But the device that I use understood is a different class not light?

I can’t add this device from the blueprint

first is LED strip connected to outled sonoff sj26
I can add this only like
condition: state
entity_id: switch.sonoff_1000b84ca0

and second is
condition: state
entity_id: switch.sonoff_1000af5502_2

How do I need to modify this blueprint to switch on my lights or is it a possible way to HA see these like devices not only like Entities? If my question silly sorry as I mentioned before I just start to learn and this is my first steps

Or if somebody knows a good Youtube tutorial because I don’t know what I need to find what category.