Logo
Explore Help
Sign In
Karl/stream_dock_linux
1
0
Fork 0
You've already forked stream_dock_linux
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
stream_dock_linux/StreamDock/FeatrueOption.py

25 lines
495 B
Python
Raw Normal View History

feat: initial implementation of StreamDock Home Assistant integration This commit introduces a complete integration for Mirabox StreamDock devices with Home Assistant, allowing users to control entities and monitor states directly from the hardware. Key features included: - Support for multiple Mirabox models: N1, N3, N4, N4Pro, XL, M3, M18, K1Pro, and various 293 variants. - Home Assistant WebSocket integration for real-time entity updates and service execution. - Dynamic LCD key rendering with support for custom icons, labels, and entity-state aware colors. - Input handling for physical buttons and rotary encoders (knobs). - Multi-page navigation support with configurable cycle keys and knobs. - Cross-platform transport layer using a custom HID library. - Configuration system using YAML with page-based layouts. - Linux udev rules for non-root USB access.
2026-05-07 19:14:07 +01:00
from enum import Enum
class device_type(Enum):
dock_universal = 0
dock_293 = 1
dock_293v3=2
dock_293s=3
dock_293sv3=4
dock_m3=5
dock_m18=6
dock_n1=7
dock_n3=8
dock_n4=9
dock_n4pro=10
dock_xl=11
k1pro=12
class FeatrueOption:
def __init__(self):
self.hasRGBLed = False
self.ledCounts = 0
self.supportConfig = False
self.supportBackgroundImage = True
self.deviceType = device_type.dock_universal
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 34ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API