Files
Erik MontnemeryGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>frenck
05eeb6a1bc Enable duration support in all entity conditions (#169532)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
2026-04-30 18:13:06 +02:00

41 lines
903 B
YAML

.condition_common: &condition_common
target: &condition_todo_target
entity:
domain: todo
fields:
behavior: &condition_behavior
required: true
default: any
selector:
automation_behavior:
mode: condition
for: &condition_for
required: true
default: 00:00:00
selector:
duration:
.incomplete_threshold_entity: &incomplete_threshold_entity
- domain: input_number
- domain: number
- domain: sensor
.incomplete_threshold_number: &incomplete_threshold_number
min: 0
mode: box
all_completed: *condition_common
incomplete:
target: *condition_todo_target
fields:
behavior: *condition_behavior
for: *condition_for
threshold:
required: true
selector:
numeric_threshold:
entity: *incomplete_threshold_entity
mode: is
number: *incomplete_threshold_number