ReadonlydeckA human-readable description of the device model (e.g. "Elgato Stream Deck (XL)").
ReadonlyencoderThe number of rotary encoders (Stream Deck Plus only; 0 on other models).
ReadonlyencoderThe total number of encoders (encoderColumns * encoderRows).
ReadonlyencoderThe number of encoder rows (Stream Deck Plus only; 0 on other models).
ReadonlyfirmwareThe device's firmware version. Reads live from the hardware on every access.
ReadonlyidentifierThe unique identifier assigned to this device object.
ReadonlyimageThe pixel dimensions required for button images.
ReadonlykeyThe number of button columns.
ReadonlykeyThe total number of buttons (keyColumns * keyRows).
ReadonlykeyThe number of button rows.
ReadonlyserialThe device's serial number.
Stops delivering events and releases all callbacks. Called automatically when the device is disconnected or the module shuts down.
Sets the callback for button press/release events. Replaces any previously set callback. The callback receives: this device, the button number, and whether it is now pressed.
The function to call on button events
self, for chaining
Sets the callback for encoder press/release/rotation events (Stream Deck Plus only).
Replaces any previously set callback.
The callback receives: this device, the encoder number, whether it is now pressed,
and two booleans indicating rotation direction (at most one is true per call).
The function to call on encoder events
self, for chaining
Sets the callback for LCD touch-screen events (Stream Deck Plus only). Replaces any
previously set callback.
The callback receives: this device, the event type ("shortPress", "longPress", or
"swipe"), and the start/end X/Y coordinates (end coordinates are 0 unless swiping).
The function to call on screen events
self, for chaining
Resets the device to its power-on state (clears all button images).
self, for chaining
Sets the device's brightness.
A whole number 0-100, the percentage brightness level
self, for chaining
Sets a button to a solid color.
The button number, from 1 to keyCount
An HSColor
self, for chaining
Sets a button's image.
The button number, from 1 to keyCount
An HSImage to display on the button. It is resized to fit.
self, for chaining
Sets the LCD strip image above one encoder (Stream Deck Plus only; a no-op on other models).
The encoder number, from 1 to encoderColumns
An HSImage to display. It is resized to fit.
self, for chaining
A Stream Deck device, obtained via
hs.streamdeck.all()or a discovery watcher — do not instantiate directly.