jacdac.relay

Submodules

Package Contents

Classes

RelayClient

A switching relay.

class jacdac.relay.RelayClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

A switching relay.
  • The contacts should be labelled NO (normally open), COM (common), and NC (normally closed).

  • When relay is energized it connects NO and COM.

  • When relay is not energized it connects NC and COM.

  • Some relays may be missing NO or NC contacts.

  • When relay module is not powered, or is in bootloader mode, it is not energized (connects NC and COM).

Implements a client for the Relay service.

property active Optional[bool]

Indicates whether the relay circuit is currently energized or not.,

property variant Optional[jacdac.relay.constants.RelayVariant]

(Optional) Describes the type of relay used.,

property max_switching_current Optional[int]

(Optional) Maximum switching current for a resistive load., _: mA