Rgb led light strip color cycling

OK, I have seen some other post this but it wasn’t clear if they got things working. I don’t know how to script yet. I have been using Samsung smart things for years and could make my lights color cycle. Told with HA you can. But still having a hard time making it work. My wife has some lights and she wants them to rainbow color cycle. Please can someone make a blueprint I can import or walk me through, if a class for scripting my situation anywhere on here or zoom idk just like to have an idea how to do what I like. Sorry for the noob questions.

1 Like

Hi i just figure out something few days ago. My need was to color cycle till i held the push button and stop it at the wanted color when release. So maybe here u can find some piece of code can help u. Here nbelow only the part for color cycle. This was a test so the number of color are limited, but obv u can add more .

alias: Test
description: ""
trigger: []
condition: []
action:
  - type: turn_on
    device_id: 7570f64a9709a01a5b0fd8f028ac529d
    entity_id: light.faretti_doccia_2
    domain: light
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: red
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: blueviolet
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: purple
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: blue
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: azure
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: green
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: greenyellow
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: yellow
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: orange
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: light.turn_on
    data:
      color_name: orangered
      transition: 2
    target:
      entity_id:
        - light.cromo_1
        - light.cromo_2
        - light.cromo_3
        - light.cromo_4
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
mode: queued
max: 10

This is the entire automation to run in click/hold Bticino myhome pushbutton, using CEN+ event

alias: Rainbow choose test
description: |-
  Click accendi spegni
  Hold acvio giro colori
  Holdrel stop giro colori
use_blueprint:
  path: homeassistant/CEN.yaml
  input:
    button_long:
      - service: automation.trigger
        data: {}
        target:
          entity_id: automation.test
    button_release:
      - service: automation.turn_off
        data: {}
        target:
          entity_id: automation.test
      - service: automation.toggle
        data: {}
        target:
          entity_id: automation.test
    button_short:
      - type: toggle
        device_id: 7570f64a9709a01a5b0fd8f028ac529d
        entity_id: light.faretti_doccia_2
        domain: light
    cen_pushbutton: 8
    cen_adress: 100

Im not an expert so automation above is possible not to be the best, but it work :upside_down_face: