Light Turn On always 100% brightness

Hello folks,
I’m trying to turn on a light with a given brightness (not 100%). But for some reasons it does not work.
I know it is a very simple thing to be done.
Here is a piece of the automation with just the action:

alias: TestLight
description: ""
trigger: []
condition: []
action:
  - type: turn_on
    device_id: 2bdfd49bb30720ba6e2957536c1c290e
    entity_id: 4fc12442ec6cc0e64af39bc6cafb708a
    domain: light
    brightness_pct: 40
mode: single

Same result with

action: light.turn_on
metadata: {}
data:
  brightness: 100
target:
  entity_id: light.camera_light

What am I missing?
Fir the sake of completeness, light is an Entity with NetAtmo integration.

Many thanks for support

Maybe this might be happening at the device? For example, I have a samsung dimmer which has settings that can control the start-up behaviour.

Maybe I misunderstand your question. I am unsure why you have two different sets of code.

Hello @phil_xyz
I have two sets of code, because I tried two alternatives.

Let me add I have another light (Shelly Dimmer) which works properly.
The light that does not work can be dimmered manually, but not by an action.
Thanks

If I understand, you have one shelly dimmer which correctly shows a different brightness for these two scripts:


alias: test Script
sequence:
  - action: light.turn_on
    data: 
      brightness: 40
    target:
      entity_id: light.example_light
alias: test Script
sequence:
  - action: light.turn_on
    data: 
      brightness: 100
    target:
      entity_id: light.example_light

However, you have a second shelly dimmer which displays the same brightness for both scripts. Is this the situation?

If so I would definitely look at the device, right? I don’t know the shelly dimmer but maybe check the device settings, especially around anything re starting, is the same for both shellys. Otherwise possibly a problem with the device?

Sorry if I misunderstand and/or state the obvious.

The only solution I found is this:

data:
transition: 2
brightness_step: 40
action: light.turn_on
target:
entity_id: light.camera_light

The difference is “brightness_step” in place of “brightness” or “brightness_pct”
Thanks