Files
python_example/rules/count_and_log.yaml
David Culbreth 57532efabd Convert all schemas to flat format with inline required/secret
All schemas (parameters, output, output_schema, conf_schema) now use the
StackStorm-style flat format expected by Attune:
  { param_name: { type, description, required, secret, ... } }

Instead of the standard JSON Schema format:
  { type: object, properties: { ... }, required: [...] }

Also fix rule template syntax: trigger.payload.* -> event.payload.*
2026-02-23 08:46:05 -06:00

26 lines
741 B
YAML

# Count and Log Rule
# Connects the counter sensor trigger to the read_counter action
#
# When the counter sensor fires, this rule passes the counter value
# and rule reference from the event payload into the read_counter action.
ref: python_example.count_and_log
pack_ref: python_example
label: "Count and Log"
description: "Fires on each counter tick and logs the current counter value"
# Link trigger to action
trigger_ref: python_example.counter
action_ref: python_example.read_counter
# Map event payload fields into action parameters
action_params:
counter: "{{ event.payload.counter }}"
rule_ref: "{{ event.payload.rule_ref }}"
# No conditions — fire on every counter event
conditions: {}
# Active by default
enabled: true