Skip to main content

events

Read the events your driver handled, with their arguments and results, from the terminal, scoped to the controller and the exact version you just deployed.

Usage​

driverforge events [options]

events lists the Control4 callbacks your driver handled (ReceivedFromProxy, OnPropertyChanged, OnTimerExpired, …), oldest first, each with the arguments it was called with, what it returned, its status and how long it took.

It works exactly like driverforge logs: the same scope rules, versions, waiting and following, output and exit statuses.

Prerequisites​

  • You're signed in (driverforge login)
  • Your driver uses the Anvil SDK and the Anvil Agent is installed on the controller

Options​

OptionDescription
--orgOrganization slug, name or id
--projectProject slug, name or id
--deviceController name, hostname, hardware id or id
--versionA version number or latest
--sinceStart of the window: a duration (30s, 10m, 2h) or an RFC 3339 time
--untilEnd of the window, in the same forms
--tailHow many of the newest events to return (default 100, at most 1000)
--beforePage back from the next_cursor of a previous response
--nameOnly events with this name, e.g. ReceivedFromProxy
--grepRegular expression matched against the event's arguments and result
--ignore-case, -iMake --grep case-insensitive
--correlation-idOnly the event with this trace id
--fieldA key=value facet filter; repeatable. Keys: controller, driver, name, status
--until-matchWait until an event matching this regular expression arrives
--min-eventsWait until this many events match
--timeoutLongest wait (default 30s when waiting, at most 10m)
--follow, -fStream events as they arrive, until interrupted or --timeout
--output, -otext, json or jsonl
--max-payload-bytesCap each event's arguments and result (default 65536; 0 for no cap)

What each event carries​

An event's payload is {"args": …, "result": …}, exactly as recorded: structured values stay nested JSON, in the order the driver produced them. Its id is the event's trace id, which the logs and errors raised while handling it carry as their correlation_id:

driverforge logs --correlation-id <event id>

Output​

In a terminal the output is for reading. Under a coding agent, or with DRIVERFORGE_OUTPUT=json, the result is one JSON document on stdout and progress is one JSON object per line on stderr.

scope: org=acme project=poolpump device=Living Room version=20261105.2

2026-11-05T03:12:44.201Z EVENT v20261105.2 ExecuteCommand ok
{
"args": ["PLAY", {}],
"result": null
}

Warnings​

A read that succeeds can still carry warnings, each with a stable code:

CodeMeaning
no_entriesNothing matched the scope and filters.
retention_clamped--since reaches past your plan's retention; only the last details.window_minutes were searched.
tail_clamped--tail is over the maximum; the newest page was returned. Page further with --before.
payload_truncatedSome entries were cut at --max-payload-bytes. Each is listed in details.entries; driverforge get fetches it in full.
device_not_reportingThe controller hasn't reported to Driverforge for 5 minutes or more; details.last_seen_at is when it last did (RFC 3339, UTC). Empty results from a controller that isn't reporting say nothing about the driver: check the controller first.

A wait that times out on a controller that isn't reporting still exits 3; its wait_timeout error carries details.device_not_reporting: true and details.last_seen_at, and its hint says to check the controller and its Anvil agent rather than to wait longer.

Examples​

What the driver received from its proxy since the last deploy:

driverforge events --version 2026110502 --name ReceivedFromProxy

Wait for the next property change:

driverforge events --name OnPropertyChanged --min-events 1 --timeout 2m

Global flags​

Every driverforge command also accepts these global flags: --verbose/-v, --project-dir, --no-tui, --no-update-check, and --help/-h. See the overview for details.