/resettimer¶
Provided by a script
/lua run resettimer
/resettimer <zone_id> and /resetalltimers. It can also be run
one-shot: /lua run resettimer <zone_id> or /lua run resettimer all
(issues the reset, answers the confirm popup, then exits).
Syntax¶
/resettimer <zone_id>
/resetalltimers
Description¶
Relay receiver that resets a
zone instance's reuse-lockout timer — or every eligible zone's, via
/resetalltimers — through the client's internal command queue, then answers
the resulting confirmation popup automatically.
Options¶
- <zone_id> — The numeric zone identifier visible in
cmdspyoutput. The same value across every client in a group, since it identifies the zone instance, not the client. Issuesreset_zone_timer <zone_id>viaeq2.cmdqueue. - /resetalltimers — No argument. Issues
reset_all_zone_timers, matching what the client's own "Reset All" button in the zone info window pushes onto its internal command queue — there is no per-zone id in that path.
Confirmation and dedup¶
Both forms arm a lib.choice listener for
the confirm popup before issuing the command, and answer "yes" within a
6-second window. /resettimer dedups per zone id — a repeat within 15
seconds is skipped and logged rather than re-issued. /resetalltimers dedups
globally, on the same 15-second window, since there is no id to key on.
Not queued like /travelto//dialogreply
Unlike the lib.resident-based receivers, this script keeps only the
most recently arrived pending job per command, not a queue. If a
second /resettimer <id> (or a second /resetalltimers) lands before
the previous one is picked up by the 150ms poll tick, it silently
overwrites it. In practice this rarely matters — resets are infrequent,
and the dedup window above already absorbs accidental repeats — but it is
a different failure mode than the burst-safe receivers elsewhere in this
batch.
Examples¶
/lua run resettimer
/resettimer 2189539952
/resetalltimers
Across the group:
/dge /resettimer 2189539952
See also¶
- Writing a peer-relay receiver
lib.choice— the confirm-popup listener this script arms.eq2.cmdqueue— the internal command-queue binding this script drives.