Hi hbeers! I know im stepping in a bit late here, but I have just had my first encounter with the need for a case switch, and I found a solution that might be useful for you as well, so I’ll share it anyway
My challenge was to find a way for the lights in the living room to “adapt” to the time of day. Im operating with 3 cases: “day”, “evening” and “night”. In addition i wanted the solution not only to trigger the correct flow when i turn the lights on, but also to change the lights if it changes from day to evening while the lights are on.
so, I created a logical text variabel called “flow_name”, and a script called “Start Flow”.
“flow_name” should contain the name of a flow, set manually or by an other flow (or script).
The script reads the flow-name in “flow_name” and triggers the flow.
This setup allows me to have one set of flows that maintains the time of days in terms of updating the “flow_name” with the name of one of the 3 flows: “light_day”, “light_evening” or “light_night”. Then, when i need to turn the lights on (or change the light) i simply call the script.
If your still in here, I’m curious to hear what you think of my solution, and if you have any suggestions for improvements!