Diming LED Stripe with tranisition

Hello,
I was trying to user this tutorial:

I wanted to do the same with an ordinary white LED Stripe and a Wifi Controller
This is my config:

light:
   - platform: flux_led
     devices:
       192.168.1.43:
         name: LED-TV
         mode: "w"
         
scene:
  - name: Livingroom normal
    entities:
        light.ledtv:
            state: on
            transition: 2
            brightness: 255
  - name: Livingroom dim
    entities:
        light.ledtv:
            state: on
            transition: 2
            brightness: 50

It works so far, except the transition part. The light dims instantly, not smooth.
Is there something missing/wrong with the syntax?

Thanks,
Philipp

Your spacing is a bit up the creek, for consistency (and yaml pickiness) your spaces should be two spaces, not 3 or 4.

On the flux led page it mentions this…

Some devices such as the Ledenet RGBW controller use a slightly different protocol for communicating the brightness to each color channel. If your device is only turning on or off but not changing color or brightness try adding the LEDENET protocol.

light:
  - platform: flux_led
    devices:
      192.168.1.10:
        name: NAME
        protocol: 'ledenet'

I don’t know if it will make a difference but maybe worth a try.

Also I noticed you are using absolute values rather that a %age like in the link you specified, so might be worth changing that as well.

I tried it with the “ledenet” protocol, but then I can´t control the brightness at all.

Is “transition” the right parameter for this action at all? I mean, there´s no transition to another color or such. Just reducing the brightness in a smooth way.

I found something with light fade in here, but that looks quite complicated:

You can only use transistion if your lights are set up as a flux switch i think…

You can use the fade_white with flux_led so maybe try that…

  - name: Livingroom Normal
    entities:
      light.ledtv:
        state: on
        effect: white_fade
        brightness: 255

I have no idea if this will work with a scene tho’.

Thanks for the hint, I will try it later. For now I´m glad if anything would work…:frowning_face:

I just wanted it like the “Dim Lights when playing media” How-to, but it simply doesn´t work, meaning the automation will not be executed and I don´t know why. The only thing that works is that the lights turn off after the AV Receiver is powered off, so no need for posting that code.
This is my config for each section:

1, The Lights turn on when the AV Receiver starts, only after sunset

- id: '1533571739969'
  hide_entity: true
  alias: light-turn-on
  trigger:
  - entity_id: media_player.yamaha_receiver
    platform: state
    from: 'off'
    to: 'on'
  condition:
  - condition: state
    entity_id: sun.sun
    state: below.horizon
  action:
  - service: light.turn_on
    data:
      entity_id: light.ledtv
  1. When playing media within kodi, the lights should be dimmed to 15%, and when pausing/stopping back to 100% (Sorry for the formatting. It just don´t get better for some reasons)

    • id: ‘1533406774348’
      hide_entity: true
      alias: kodi-led-idle
      trigger:
      • platform: state
        entity_id: media_player.kodilivingroom
        from: playing
        to: idle
        condition:
      • condition: state
        entity_id: sun.sun
        state: below.horizon
        action:
        service: scene.turn_on
        entity_id: scene.livingroom_normal
    • id: ‘1533407071843’
      hide_entity: true
      alias: kodi-led-dim
      trigger:
      • platform: state
        entity_id: media_player.kodilivingroom
        from: idle
        to: playing
        condition:
      • condition: state
        entity_id: sun.sun
        state: below.horizon
        action:
        service: scene.turn_on
        entity_id: scene.livingroom_dim

And the Light/Scene part from the configuration.yaml

light:
   - platform: flux_led
     devices:
       192.168.1.43:
         name: LED-TV
         mode: "w"
         
scene:
  - name: Livingroom normal
    entities:
      light.ledtv:
        state: on
        transition: 5
        brightness_pct: 100
  - name: Livingroom dim
    entities:
      light.ledtv:
        state: on
        transition: 5
        brightness_pct: 15

Did you read the link I provided?

switch:
  - platform: flux
    lights:
      - light.desk
      - light.lamp

To use transition it needs to be setup as a switch not a light.

sorry, I must have missed that.
Will try it tonight after work, thanks

No worries, let us know if you get it working :slight_smile:

hm, same effect with the switch. No transition, maybe the controller doesn´t support that.

Possibly :frowning:

Hi

Did you finally solve it?
I’m trying to do the same, but no way somehow with this flux_led platform.

I also tried to use FLUX plafrotm as switch (ass addition to “light” with flux_led) and it’s just sets new brightness to 200 (which I have in setup for SWITCH).

light:

  • platform: flux_led
    devices:
    192.168.1.170:
    name: AkwaLedWhite
    mode: “w”

switch:

  • platform: flux
    lights:
    • light.akwaledwhite
      name: Aqua
      start_time: ‘08:00’
      stop_time: ‘23:59’
      brightness: 200

Yeah, im looking to do this within an automation.

Can anyone help with some code examples?

Thanks

  - service: light.turn_on
    data:
      transition: 300
      brightness: 0
    entity_id: light.leftbedlamp

Does that look right, and how can I set an initial brightness?

Thanks!!