jacdac.switch
Submodules
Package Contents
Classes
A switch, which keeps its position. |
- class jacdac.switch.SwitchClient(bus: jacdac.bus.Bus, role: str, *, missing_active_value: bool | None = None)
Bases:
jacdac.bus.SensorClient
A switch, which keeps its position. Implements a client for the Switch service.
- property variant: jacdac.switch.constants.SwitchVariant | None
(Optional) Describes the type of switch used.,
- on_on(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn
Emitted when switch goes from off to on.
- on_off(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn
Emitted when switch goes from on to off.