Hi All,
First of all I'm not a script-guru, so tried my best to achieve the goal to turn on USER-LED on specific case, when the route (called: test) is active. Otherwise, turn USER-LED off. Of course, the specific Route entry is commented with "test" correctly, so that is double checked.
I'm trying hard with this:
{
/system leds add leds=user-led type=off;
:local status [/ip route get value-name=active [find comment="test"]];
:if ($status = true) do={
/system leds set [find where leds="user-led"] type=on
} else={
/system leds set [find where leds="user-led"] type=off;
}
}
I'm not sure if all setting is done properly, plus the System / LED setting in the WEB GUI is mandatory or not for the user led (or indifferent)
If anyone can guide me where the problem exists, then would be fine.
Prior thanks to your recoemmendations.
Pal