Transition not working with nooie (tuya) smart bulb

Having the same issues w/ these FEIT bulbs from Costco. Got them setup ok in HA, but no transition is an issue. Built a script to change these over time (trying to emulate a sunrise effect), but the transitions aren’t that smooth. Haven’t tried reducing below 10 seconds changes yet. Here’s the script at 10 second intervals fwiw:

sunrise_wake_up:
  alias: Sunrise wake-up
  sequence:
  - variables:
      start_temp: 153
      end_temp: 370
      duration_pds: 180
      delay_secs: 10
      red_start: 255
      green_start: 63
      blue_start: 0
  - service: light.turn_on
    data:
      rgb_color:
        - '{{ red_start }}'
        - '{{ green_start }}'
        - '{{ blue_start }}'
      brightness: 1
    entity_id: '{{ entity }}'
  - delay: '1'
  - repeat:
      count: '{{ duration_pds }}'
      sequence:
      - service: light.turn_on
        data:
          brightness: '{{ (repeat.index / duration_pds * 255) | int }}'
          rgb_color:
            - '255'
            - '{{ ( (255 - green_start) / (duration_pds) * repeat.index + green_start)|int }}'
            - '{{ ( (255 - blue_start)  / (duration_pds) * repeat.index + blue_start )|int }}'
        entity_id: '{{ entity }}'
      - delay: '{{ delay_secs }}'
  mode: single

NOTE: I trigger this with an automation that has:

entity: light.xxxxx

Which passes the entity_id of the bulb to use in the script. You can hard code this if you prefer.

1 Like