LocalTuya And Brightness

When I send brightness_pct in a script or automation to a localTuya connected wi-fi light, it’s hit or miss whether or not the brightness gets set correctly:

- type: turn_on
    device_id: cc917de81f53b486e99be8097b205210
    entity_id: light.outside_perimeter_back
    domain: light
    brightness_pct: 25

I tried adding a delay between multiple turn_on commands since wi-fi is slower; but, it does not help.

The following does work:

 - type: turn_on
    device_id: cc917de81f53b486e99be8097b205210
    entity_id: light.outside_perimeter_back
    domain: light
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 100
  - type: turn_on
    device_id: cc917de81f53b486e99be8097b205210
    entity_id: light.outside_perimeter_back
    domain: light
    brightness_pct: 30

But, I’m having to duplicate the turn_on command, giving it 100ms to first power on the light, then adjust the brightness.

Anyone else had this issue? Or, found (or can see) a more elegant way to do this?