Skip to main content

PyPI version

streamdeckapi

Stream Deck API Library for Home Assistant Stream Deck Integration

Only compatible with separate Stream Deck Plugin or the bundled server.

Server inside docker container

The docker image allows you to use the streamdeckapi server inside a docker container.

Usage

docker run -v /dev/hidraw7:/dev/hidraw7 -v ./data/streamdeckapi:/streamdeckapi/data -p 6153:6153 --privileged ghcr.io/patrick762/streamdeckapi:main

Note: You have to change hidraw7 to the path of your Stream Deck. You can find this path by using lshid (https://pypi.org/project/lshid/).

Limitations

  • No zeroconf discovery
  • No doubleTap event

Server without docker

This library also contains a server to use the streamdeck with Linux or without the official Stream Deck Software.

For this to work, the following software is required:

Cairo Installation for Windows:

pip install pipwin

pipwin install cairocffi

Limitations

  • No doubleTap event

Installation on Linux / Raspberry Pi

Install requirements: sudo apt install -y libudev-dev libusb-1.0-0-dev libhidapi-libusb0 libjpeg-dev zlib1g-dev libopenjp2-7 libtiff5 libgtk-3-dev python3-pip

Allow all users non-root access to Stream Deck Devices:

sudo tee /etc/udev/rules.d/10-streamdeck.rules << EOF
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0fd9", GROUP="users", TAG+="uaccess"
EOF

Reload access rules: sudo udevadm control --reload-rules

Install the package: pip install streamdeckapi

Reboot your system

Start the server: streamdeckapi-server

Example service

To run the server on startup, you can use the following config in the file /etc/systemd/system/streamdeckapi.service:

[Unit]
Description=Stream Deck API Service
Wants=network-online.target
After=network.target

[Service]
WorkingDirectory=/home/pi
ExecStart=/home/pi/.local/bin/streamdeckapi-server
User=pi
StandardOutput=console

[Install]
WantedBy=multi-user.target

To start the service, run sudo systemctl start streamdeckapi.service.

To enable the service, run sudo systemctl enable streamdeckapi.service.

Release files for streamdeckapi 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamdeckapi 0.0.13
File Size Uploaded
streamdeckapi-0.0.13.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamdeckapi 0.0.13
File Interpreter ABI Platform
streamdeckapi-0.0.13-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / streamdeckapi-0.0.13.tar.gz

Download URL streamdeckapi-0.0.13.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fdf9d48464289187938ef63710e5fc917f6d0f0b4619a933217b13741f4b61d6
BLAKE2b-256 checksum
How to use checksums
a583711bb97f0cdae53327d8cab7fad6f6a5b173dcec5188bdf0204da8a9e6db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / streamdeckapi-0.0.13-py3-none-any.whl

Download URL streamdeckapi-0.0.13-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b66c174b8d2afe6668d57ec8403d8dbbb29bea0a293a2302830812b03912dc20
BLAKE2b-256 checksum
How to use checksums
8a2c03e3069a362aa7c9c3d716d26930fa9c09df1c6ebfa8e127fd1dba89f845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.0.13 This release

2 release files

0.0.12

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page