Skip to main content

Relay — relay v1

A single dry-contact relay output. Devices with a bank of relays expose one binding of this proxy per relay. Consumed by drivers that declare a relay control connection — those drivers never learn what hardware is on the other end.

Capabilities

Declared in the driver manifest under [[proxy]] capabilities. Anything not declared takes the default below.

CapabilityTypeDefaultMeaning
max_pulse_msu3230000Longest pulse the hardware accepts
momentary_onlyboolfalseHardware cannot hold closed; only pulse is valid
normally_closedboolfalseIdle state is closed rather than open
supports_pulsebooltrueCan close for a timed interval and release

Commands

close

Energize — make the contact

No parameters.

open

De-energize — break the contact

No parameters.

pulse

Only present when supports_pulse is declared true.

Close for ms, then open. The canonical way to drive a momentary input like a gate or fireplace.

ParameterTypeNotes
msu32 1–300000

toggle

No parameters.

Notifications

online_changed

ParameterTypeNotes
onlinebool

relay_changed

ParameterTypeNotes
closedbool

State

Last-known values core keeps for a binding of this proxy.

KeyTypeMeaning
closedbool
onlinebool