Automation Lights error

Hello everyone, I have a few simple automations with motion sensor and sets of lights, the problem is sometimes a single light stays on, or a few lights don’t turn on to the correct brightness , I have changed the automation to use scenes but the problem persists, any idea what’s going on? thank you.

Show your automation.

and then another one for off, with the trigger “stopped detecting motion”

Please show it as code, not a screenshot (point 11 in this post)

sorry about that, here you go:

alias: Hallway Entrance Lights on
description: ""
triggers:
  - type: motion
    device_id: 5cfb0c4ed92db569cad456573aff319c
    entity_id: a2160a25c550edbfe36db5edb9932a03
    domain: binary_sensor
    trigger: device
conditions:
  - condition: time
    after: "07:00:00"
    before: "00:30:00"
actions:
  - action: scene.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: scene.hallway_entrance_80
mode: single

and then to turn off:

alias: Hallway Living room lights off
description: ""
triggers:
  - type: no_motion
    device_id: 7d6ea611176ffeb616acdcfc59f38b91
    entity_id: 05376dc2a92b82da3e66e80a4513b674
    domain: binary_sensor
    trigger: device
conditions: []
actions:
  - action: scene.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: scene.hallway_living_room_80_off
mode: single

Try


actions:
  - target:
      entity_id:
        - light.your_light_here
    data:
      brightness_pct: 65 #brightness in percent
    action: light.turn_on

it’s a scene with multiple lights, initially I tried triggering each individual light then moved on to scene to see if it solved the issue but it’s the same.

Can you show the scene? You could also group the lights not using scenes.

I did that as well initially.

it’s not letting me copy it, uploaded an image

Any idea what could be the issue?