I have the following code defining the LED:
output:
- platform: ledc
pin: GPIO4
id: led
frequency: 1000 Hz
inverted: false
light:
- platform: monochromatic
name: "Blue LED"
output: led
id: blue_led
restore_mode: ALWAYS_OFF
on_turn_on:
- output.set_level:
id: led
level: 0.25
on_turn_off:
- output.set_level:
id: led
level: 0.0
and from elsewhere I use a lambda and try to turn it on with:
id(blue_led).turn_on();
but nothing happens. It does not light up. If I call id(led).turn_on(); directly, then it turns on, but its full brightness.
How can I turn it on so that its like 25% brightness. I dont care about being able to control it from home assistant. I just want it to never be brighter than 25% . This is a blue LED and its eye piercing!