[ { "id": "Office Door Light", "result": { "structured": "TRIGGER: When toggl task running [input_boolean.toggl_task_running] turns on OR When toggl task running [input_boolean.toggl_task_running] turns off. CONDITIONS: None. ACTIONS: If the trigger was toggl task running [input_boolean.toggl_task_running] turning on, then check if toggl task meeting [input_boolean.toggl_task_meeting] is on. If it is on, turn on atom matrix door alert m5 [light.atom_matrix_dooralertm5] to red with full brightness. If it is off, turn on atom matrix door alert m5 [light.atom_matrix_dooralertm5] to green with full brightness. If the trigger was toggl task running [input_boolean.toggl_task_running] turning off, then turn off atom matrix door alert m5 [light.atom_matrix_dooralertm5].", "natural_language": { "trigger": "When the toggl task running [input_boolean.toggl_task_running] is switched on or off.", "conditions": "There are no conditions that must be met for the automation to run.", "action": "If a task starts running, the automation checks if a meeting is in progress via toggl task meeting [input_boolean.toggl_task_meeting]. If a meeting is active, it turns on the office door light, atom matrix door alert m5 [light.atom_matrix_dooralertm5], to a bright red color. If no meeting is active, it turns the same light to a bright green color. If the task stops running, the automation simply turns off the atom matrix door alert m5 [light.atom_matrix_dooralertm5]." }, "human_like": "Controls the office door light to show a red or green status based on whether a work task is running and if it's a meeting, turning the light off when no task is active.", "complexity": "medium" } }, { "id": "Toggl Webhook Handler", "result": { "structured": "TRIGGER: When a webhook request is received at the endpoint 'toggl-webhook-handler-' using POST or PUT methods. CONDITIONS: None. ACTIONS: Extract payload data and set toggl task name [input_text.toggl_task_name] to the description from the payload (or 'No Description' if missing). Set toggl task duration min [input_number.toggl_task_duration_min] to the duration in minutes since the task started (or 0 if no start). If the task is running (payload does not have stop), turn on toggl task running [input_boolean.toggl_task_running]; otherwise turn it off. If the payload tags contain 'meeting', turn on toggl task meeting [input_boolean.toggl_task_meeting]; otherwise turn it off.", "natural_language": { "trigger": "When a webhook request is sent to the specified endpoint 'toggl-webhook-handler-' using either POST or PUT.", "conditions": "There are no conditions; the automation runs immediately upon receiving the webhook.", "action": "Extracts information from the webhook payload: updates toggl task name [input_text.toggl_task_name] with the task description (or a default text if missing), sets toggl task duration min [input_number.toggl_task_duration_min] to the elapsed minutes since the task started, turns on toggl task running [input_boolean.toggl_task_running] if the task is active, and turns on toggl task meeting [input_boolean.toggl_task_meeting] if the task is tagged as a meeting." }, "human_like": "Updates Home Assistant with current Toggl task details, such as name, duration, and status, whenever a Toggl webhook is received.", "complexity": "medium" } } ]