Switch Component

This section documents the configuration attributes for each built-in switch model. Use these pages when you are writing a JSON configuration, debugging a config validation error, or looking up the default for a specific attribute.

  • For how to add and configure a switch component on your machine, see Switch.
  • For the methods you call on a switch in code, see the Switch API reference.
  • For switch models outside the built-in set, browse the Viam registry. Each registry module’s configuration is documented in its own README on its registry page.

Built-in models

The following switch models ship with viam-server:

ModelDescription
fakeA model used for testing, with no physical hardware.