Contact Input — contact v1
A single dry-contact sense input. Devices with a bank of inputs expose one binding per input.
Consumed by drivers that declare a contact control connection — a garage door driver reading
its own limit switch, for example — and usable directly as an automation trigger.
Capabilities
Declared in the driver manifest under [[proxy]] capabilities. Anything not declared takes the default below.
| Capability | Type | Default | Meaning |
|---|
has_debounce | bool | false | Debounce interval is configurable |
supports_voltage_sense | bool | false | Reports analog voltage as well as open/closed |
voltage_max_mv | u32 | 0 | |
Commands
set_debounce
Only present when has_debounce is declared true.
| Parameter | Type | Notes |
|---|
ms | u32 0–10000 | |
Notifications
| Parameter | Type | Notes |
|---|
closed | bool | |
online_changed
| Parameter | Type | Notes |
|---|
online | bool | |
voltage_changed
Only present when supports_voltage_sense is declared true.
State
Last-known values core keeps for a binding of this proxy.
| Key | Type | Meaning |
|---|
closed | bool | |
mv | u32 | |
online | bool | |