Digital Inputs
victron_digital_inputsRead digital input states (open/closed/running/stopped) and alarm status from a Victron GX device. Monitor door, bilge, alarm, or generator inputs.
Instructions
Read digital input data from the GX device. On Cerbo GX, this reads the primary digital input. Includes state (open/closed/running/stopped), input type (door, bilge, alarm, generator), alarm status, and pulse count. Unit ID is always 100.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | GX device IP address or hostname | |
| port | No | Modbus TCP port | |
| mqttHost | No | MQTT broker host. Defaults to the "host" parameter or VICTRON_HOST env var. | |
| mqttPort | No | MQTT broker port. Defaults to VICTRON_MQTT_PORT env var or 1883. | |
| portalId | No | Venus OS portal ID for MQTT topics. Use victron_mqtt_discover to find it. Defaults to VICTRON_PORTAL_ID env var. | |
| transport | No | Transport protocol. Defaults to VICTRON_TRANSPORT env var or "modbus". | |
| deviceInstance | No | MQTT device instance number. If omitted, uses wildcard subscribe to find the first matching device. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| readings | Yes | ||
| serviceInstance | No |