Skip to content

Add functionality to cycle through multiple payloads#31

Open
ce3a wants to merge 1 commit intoLuligu:masterfrom
ce3a:feature/cycle-payloads
Open

Add functionality to cycle through multiple payloads#31
ce3a wants to merge 1 commit intoLuligu:masterfrom
ce3a:feature/cycle-payloads

Conversation

@ce3a
Copy link
Copy Markdown

@ce3a ce3a commented Jan 24, 2026

This introduces a new feature that allows users to define a sequence of payloads to cycle through when an action is triggered.

A use case is, for example, to change light scenes with a button press.

Example configuration:

Living Room Light cycle through colors:
    trigger:
      entity: Living Room Switch
      action: press_1
    action:
      entity: Living Room Light
      cycle:
        - { scene_recall: 1 }
        - { scene_recall: 3 }
        - { scene_recall: 8 }

This commit introduces a new feature that allows users to define a
sequence of payloads to cycle through when an action is triggered.

Example:

```yaml
Living Room Light cycle through colors:
    trigger:
      entity: Living Room Switch
      action: press_1
    action:
      entity: Living Room Light
      cycle:
        - { scene_recall: 1 }
        - { scene_recall: 2 }
        - { scene_recall: 3 }
```
@ce3a ce3a marked this pull request as ready for review January 24, 2026 15:08
@Luligu Luligu self-assigned this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants