[ { "id": "Home mood change", "result": { "structured": "TRIGGER: When home mood input [input_text.home_mood] changes state OR when home mood change automation [automation.home_mood_change] turns on (state changes from off to on). CONDITIONS: mood set script [script.mood_set] is not running (state is off). ACTIONS: Execute mood set script [script.mood_set] with parameters: mood set to the current state of home mood input [input_text.home_mood] and transition_time set to 30.", "natural_language": { "trigger": "The automation is triggered whenever the text value of home mood input [input_text.home_mood] changes, or when the automation itself, home mood change automation [automation.home_mood_change], is manually or otherwise turned on from an off state.", "conditions": "The automation will only proceed if the mood set script [script.mood_set] is currently not running, which is indicated by its state being 'off'. This condition is in place to prevent a potential infinite loop where the script could trigger itself.", "action": "It runs the mood set script [script.mood_set], passing it the current text value from home mood input [input_text.home_mood] as the 'mood' parameter and a 'transition_time' of 30." }, "human_like": "Updates the home's lighting or ambiance mood whenever the mood setting is changed, ensuring the mood script isn't already running to prevent loops.", "complexity": "medium" } } ]