Skip to content

Add to led_ble custom lights configured by user  #34

@and7ey

Description

@and7ey

What is the process to add more lights to led_ble?
For ex., here is the list of commands/characteristics to be used with SP110E controller.
And I would like to add commands for SP107E (it controls the strip, SK6812_RGBW in my case - it could be switched on/off, the color could be changed, the brightness, effects, music/static color modes).

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
The ideal solution would be to move light settings/commands from const.py - the user interface should allow to choose ready-for-use settings based on the lamp name (what you have in const.py currently) or user should be able to input all settings manually. In this case I will be able to add SP107E myself.

Additional context
I've tried to add SP107E support based on SP110E component, but it doesn't work since SP110E component uses its own implementation of bluetooth connection. I've tried to modify led_ble component to add support of SP107E, but I am failed with local led_ble installation (File "/config/led_ble/led_ble.py", line 16, in <module> from bleak_retry_connector import (ImportError: cannot import name 'retry_bluetooth_connection_error' from 'bleak_retry_connector' (/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py)).
But it looks for me that I am re-inventing the wheel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions