Lamp transition automation is not working as expected

Hello everyone. I have an Aqara E1 two-key switch and TZ3210_r5afgmkl lamps. I am using ZHA and Home Assistant OS 2023.3.3 on RPI 3B+

Problem: I’m trying to do a slow dimming of my lights before I go to sleep through automation. I turn off three lamps with the help of a switch (because there is one non-smart lamp there), I choose the light_turn_off service for the other three and set the transition to 300 seconds. However, the lamps turn off after 40 seconds. Please tell me what I’m doing wrong

alias: Night
description: ""
trigger: []
condition: []
  - service: light.turn_off
    data: {}
      entity_id: light.lumi_lumi_switch_b2lc04_light
  - service: light.turn_off
      transition: 300
        - 1a1af268945ec6d7078ca59af8f71df8
        - 1da2cb1eb5cf156b96c7ca122977fb32
        - 868afe359d9e18f75201f12f7b03ce8d
mode: single

Your smart bulb hardware needs to support a transition of that length. Home assistant just sends the one command to the bulb. It does not continually dim the bulb. That happens in the bulb.

If your lights do not support this you will have to automate it instead.

Thanks for your reply, do you have any ideas on the best way to do this?

A search of the forum turned up this: