Beetle-II / lumi

MQTT агент для шлюза Xiaomi DGNWG05LM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for /sys/class/leds/red/brightness instead of backlight

devbis opened this issue · comments

OpenWrt for Lumi gateway will migrate to new drivers of LED lights soon.

https://github.com/devbis/openwrt/commit/1a3adc95ccee91cad8766e413cc038cd5fb1b778

The new device paths will be:

/sys/class/leds/red/brightness
/sys/class/leds/green/brightness
/sys/class/leds/blue/brightness

And range 0-255 instead of 0-100.

Do you plan to add support for this schema in your application?

Proposal: you can check for the new paths and fallback to the old ones if they are missing

Отлично. Так даже проще с яркостью работать...