My goal is to configure an LED (middle) to turn ON when the client\station is unavailable.
The manual says the right is power (looking at the Ethernet ports), left is wireless activity. Middle for user config.
There is only one config in Luci=>System=LED Configuration or the system file for LEDS, so I assume Power is “hard coded”.
config led ‘led_wlan’
option name ‘WLAN’
option sysfs ‘gl_ar150:wlan’
option trigger ‘phy0tpt’
option default ‘0’
After some testing it appears that the LEDS are named from left to right:
gl_ar150:wlan
gl_ar150:lan
gl_ar150:wan ?
At one point I was toggling the “Power” LED with the wifi, but its not doing that now. So is this a “Power” led, and where\how is it configured?
Related, can someone please help me understand what the “Device” values map to on the AR-150:
etho
eth1
ifb0
ifb1
br-lan
wlan0
wlan0-1 - I notice this value disappears when I disable the WWAN (client\Sta)
@Jeroen is correct. There is no physical power LED. All the LEDs are configurable.
So the 3 LEDs are:
gl_ar150:wan, gl_ar150:lan, gl_ar150:wlan
It is not important to indicate cable connection (WAN and LAN), so the two LEDs are user as Power and another one as user configurable. ifb0 and ifb1 is used by QoS actually.
To use the middle LED for sta, do this in your wifiMgr script or you can write another scripts only checking the status.
On: echo 1 > /sys/class/leds/gl_ar150:lan/brightness