Walk through input_select options

I have defined an input_select in my configuration.yaml in home assistant.


My question:
Is it possible to loop through the input_select (option by option) when I press a zigbee button.
I've looked at the action node but can't figure it out.

Can anyone help me?

Welcome to the Node-red forum @hansjeu

Forgive my ignorance but are configuration.yaml or the action node anything to do with Node-red?
Are you looking for a purely Node-red solution?

Can you explain what you mean by "loop through the input_select"? For what purpose?
Can you show us the message that arrives in Node-red and describe what you want to happen?

I have a 4-part ZigBee button. When I press the second button, I want "Warn White" to be selected. When I press it again, "Neutral White" is selected, etc.

I'd like to see all of this happen in Node-Red.

You can use input_select.select_next

Thank you. I've already tried this, but after that, I get stuck.

Sorry i was not looking correct.
How do i get the "new" collor in the payload?

Do you mean the color(option) that it switched to? Click add under output properties. And use $entities('input_select.your_select').state

Yes thank you very much

1 Like