Skip to main content

PHAL Linear LED Plugin

Enables interaction with LEDs in a one-dimensional physical arrangement.

Standard LED Events

There are default LED animations that are shown when certain things happen. Note that some of these behaviors are configurable while others are hard-coded so users can be confident they know the device's state.

Listening

This will always be a breathing animation. The color may be specified in settings or will default to the theme color (same as the screen border when listening).

Sleeping

This will always be a static LED ring color. The color may be specified in settings or will default to Red.

Muted

This will always be a static LED ring color. The color may be specified in settings or will default to Burnt Orange.

Microphone Muted Error

This will flash all LEDs 3 times in the microphone muted color. This happens if the user tries to start listening while the mic is muted.

Speech Input Error

This will flash all LEDs 1 time in the error color (default Red). The color may be specified in settings.

Skill Intent Error

This will flash all LEDs 4 times in the error color (default Red). The color may be specified in settings.

Utterance sent to skills

This is disabled by default, but when enabled will provide an animation in the theme color when an utterance is emitted.

Skill intent handler start

This is disabled by default, but when enabled will provide an animation in the theme color when a skill intent starts.

Configuration

For Neopixel devices, the plugin requires root permissions and must be enabled explicitly in the system configuration in /etc.

PHAL:
  admin:
    neon-phal-plugin-linear-led-neopixel:
      enabled: true

Note: If any other config is present here (i.e. colors), it will override all configuration in PHAL.neon-phal-plugin-linear-led for Neopixel devices. It is recommended to not include config here so that it applies to all linear LED classes.

Colors

By default, the plugin will use theme colors for different events, but these colors may also be overridden in configuration.

PHAL:
  neon-phal-plugin-linear-led:
    listen_color: white
    mute_color: burnt_orange
    sleep_color: red
    error_color: red

Optional Event Animations

There are standard messagebus events that you can choose to show animations for. These are disabled by default, but may be desirable to provide more user feedback or troubleshoot specific error cases.

PHAL:
  neon-phal-plugin-linear-led:
    utterance_animation: refill
    handler_animation: bounce

messagebus API

This plugin exposes messagebus listener neon.linear_led.show_animation to trigger showing an animation. Any skill, plugin, or other integration can request an LED ring animation by emitting a Message:

from mycroft_bus_client import Message

Message("neon.linear_led.show_animation",
        {'animation': 'chase',
         'color': 'green',
         'timeout': 10})

Note that the plugin may enforce a limit to how long the animation is displayed and also may replace the animation with a different one that is triggered.

Metadata

Release files for neon-phal-plugin-linear-led 0.3.0

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

Source distribution (sdist)

Source distribution for neon-phal-plugin-linear-led 0.3.0
File Size Uploaded
neon_phal_plugin_linear_led-0.3.0.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neon-phal-plugin-linear-led 0.3.0
File Interpreter ABI Platform
neon_phal_plugin_linear_led-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.2 kB

Release files / neon_phal_plugin_linear_led-0.3.0.tar.gz

Download URL neon_phal_plugin_linear_led-0.3.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6de1b20c6ef54d43eaf025a1ead9fe2afd6fdd333ce9c569dd22b7d1f6774b1d
BLAKE2b-256 checksum
How to use checksums
514886c1cb538d506de72e2e61842058a346448493876e1ddba249d2515d7dd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release files / neon_phal_plugin_linear_led-0.3.0-py3-none-any.whl

Download URL neon_phal_plugin_linear_led-0.3.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5144a4d38fef32a7974534c5e40b3ce16a8661d4847b821eedbbd542a3ba4aa3
BLAKE2b-256 checksum
How to use checksums
b9e93aa8c698d0169aa2779c9a42d092529d7a6969fc090f94bb15faaace1177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14
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