Cycle through scenes with a button?

Try this

Put this into your input_select

input_select:
  yeecolours:
    name: Color Mode
    options:
      - dim
      - bright
    initial: bright

this in your scene

scene:
  - name: Dim
    entities:
      light.yeelight_rgb_7c49eb0ff332:
          state: on
          transition: 2
          brightness_pct: 10
          kelvin: 5000
		  
  - name: Bright
    entities:
      light.yeelight_rgb_7c49eb0ff332:
          state: on
          transition: 2
          brightness_pct: 100
          kelvin: 5000

This is your automations you will need to get your scene id from the states tab in HA and insert below where I have scene.yourscenehere

automation:
  - alias: Yeelight Dim
    trigger:
    - platform: state
      entity_id: input_select.yeecolors
      to: dim
    action:
    - service: scene.yoursceneidhere
	
  - alias: Yeelight Bright
    trigger:
    - platform: state
      entity_id: input_select.yeecolors
      to: bright
    action:
    - service: scene.yoursceneidhere
	
  - alias: Change light scenes
    trigger:
    - platform: event
      event_type: click
      event_data:
        click_type: double
        entity_id: binary_sensor.switch_158d0001d8ea53
    action:
    - service: input_select.select_next
      data: 
        entity_id: input_select.yeecolors
2 Likes