No need for this blueprint, just use a simple automation with time limited actions like this:
description: "Licht Eingangbereich automatisch"
mode: single
triggers:
- trigger: state
entity_id:
- binary_sensor.hue_bwm_eingangsbereich_belegung
to: "on"
id: trig_on
- trigger: state
entity_id:
- binary_sensor.hue_bwm_eingangsbereich_belegung
to: "off"
from: "on"
for:
minutes: 4
seconds: 50
- trigger: state
entity_id:
- binary_sensor.hue_bwm_eingangsbereich_belegung
to:
- unavailable
- unknown
for:
minutes: 30
conditions:
- condition: or
conditions:
- condition: state
entity_id: switch.eingang_switch_0
state: "on"
alias: "Ensure it still switches off when necessary also after 08:00"
- condition: time
after: "14:00:00"
before: "08:00:00"
actions:
- choose:
- conditions:
- condition: trigger
id:
- trig_on
sequence:
- action: switch.turn_on
target:
entity_id: switch.eingang_switch_0
default:
- action: switch.turn_off
target:
entity_id: switch.eingang_switch_0