Motion detected Light turn on

Hello guys,

i had some pretty “lowlevel” automations scripted to turn the lights in the bathroom on and off.
Since the tuya integration has some massive issues with the turn off part, where my lights randomly just turned off seconds after they were turned on via the motion sensor, i just let the “Turn on” Script alive and deleted the others.

However, i just used the motion light automation blueprint and it works perfectly for the floor.
Now i want to do it for the bathroom, but i have some special points for that room.

I want 2 Versions of the automation, one with

condition:
  - condition: time
    after: "08:00:00"
    before: "20:00:00"

and

condition:
  - condition: time
    after: "20:00:00"
    before: "08:00:00"

it should have brightness_pct in these parts (because i dont want to look in the future with that bright lights if i have to use the bathroom on night).

My Automation for the Daytime looks like this:

alias: Bad - Licht ein - Tagsüber
description: ""
trigger:
  - type: motion
    platform: device
    device_id: dd99d1c0c87f406b7983ce7e88e5f25a
    entity_id: binary_sensor.bad_sensor
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 0
condition:
  - condition: time
    after: "08:00:00"
    before: "20:00:00"
action:
  - type: turn_on
    device_id: 020e4a03e51de4d9d7d0d92ca359634c
    entity_id: light.bad_1
    domain: light
    brightness_pct: 80
  - type: turn_on
    device_id: 1b5e7e27219150da2871a154a01d586b
    entity_id: light.bad_2
    domain: light
    brightness_pct: 80
  - type: turn_on
    device_id: 0e19d74de87b87e7720948f2c607ca63
    entity_id: light.bad_3
    domain: light
    brightness_pct: 80
mode: single

Since the Floor-Automation just relay on the blueprint stored in the homeassistant system, i cant see or modify the code right there.

Is it Possible to use my needs in the automation?