Smart Bike Lights (Data Field) / Bike Lights Control (Widget)

I've made two open source CIQ applications to control ANT+ lights:

- Smart Bike Lights (data field): https://apps.garmin.com/en-US/apps/0d9fd828-c932-4470-9c37-fd2828881888 

      Configurator: https://maca88.github.io/SmartBikeLights/ 

- Bike Lights Control (widget): https://apps.garmin.com/en-US/apps/fa3c2332-76e3-4ba1-8528-32a0fd617ab1 

     Configurator: https://maca88.github.io/BikeLightsControl/ 

Smart Bike Lights features:
- Automatic light control (Smart mode) based on the configured filters (sunset, sunlight, speed, ...)
- Manual light control (only for Edge devices with a touch screen or devices with CIQ 3.2 and more than 32KB memory)
- Records lights modes that are displayed in Garmin Connect

Bike Lights Control features:
- Manual light control (available to all devices)

Both applications can be installed on the same device, which can be useful for low end devices (e.g. Edge 520) where "Bike Lights Control" can be used to change light modes manually and "Smart Bike Lights" for automatic light control.

Currently registered ANT+ lights:
- Bontrager Ion Pro RT
- Bontrager Ion 200 RT
- Bontrager Flare RT
- Garmin Varia RTL500
- Garmin Varia RTL510
- Garmin Varia RTL515
- Garmin Varia HL500
- Garmin Varia UT800

in case your ANT+ light is not on the list you can help by doing the following:

1. Install Bike Lights Control
2. Pair your bike light with your Garmin device
3. Open the widget:
- Edge with a touch screen: post which numbers are displayed on the buttons and what mode each button represents when pressed
- Other devices: Select the "Light modes" menu and post which numbers are displayed in the menu and what mode each menu item represents when selected

Example for Bontrager Ion Pro RT:


1 -> High steady beam
2 -> Medium steady beam
5 -> Low steady beam
63 -> Day flash
62 -> Night flash

There are some features that could be possible to add in the future, but would require Garmin to add them to the CIQ api. In case you are interested in any of the below features, consider upvoting their feature request thread:

1. Control lights based on the ambient light sensor available on some devices:
https://forums.garmin.com/developer/connect-iq/i/bug-reports/ambient-light-sensor-api-access 

  • @maca88 , wow, it makes the 516 works "like a 515", nealry, wonderfull

    BUT ;-)   When i have the tail light 516 allone in the config, I could add radar as filter, if i add an ut800 as front light, I could not add radar as filter anymore 8in rt516)

    Do i miss something

  • I am assuming that you have either Edge 130 or Edge 520 which have only 32KB memory available for the data field. Due to memory limitation on these devices it is possible to have the radar filter only when one light is paired, with two lights it would go out of memory and crash the data field.

    EDIT: You can try your luck by selecting "Edge 520 Plus" in the configurator and setup the radar filter with both lights. It may not crash the data field, but I can not guarantee that. I think it will crash when the radar will detect five or more vehicle behind you, otherwise it may work fine. 

  • Hi, yes it’s a 130.

    many thanks for the explanation.

    seems time to get an new Edge Grinning

  • Today's technology develops miraculously, helping people discover many smart strategies! It becomes easier and easier <a href="">undertaleyellow.io">Undertale Yellow</a>...

  • Hi!

    I have Edge 530 with Flare RT and ION 200 RT. When I disconnect light network after bike riding, only flare power off, headlight (ion200rt) don't power on/off, only pressing power button.

    Bike Light Control

    #4587520,196641:0,50536:16776960##6291461,1409482753:0,32024:16711680##6:Ion 200 RT!Off:0!High:1!Medium:2!Low:5!Day Flash:63!Night Flash:62#6:Flare RT!Off:0!Day Steady:1!Night Steady:5!Day Flash:7!All-Day Flash:8!Night Flash:63#0::#0:0#B3121#2#1#0#0

    Smart Bike Light

    #4587520,196641:0,50536:1#1,1!:1:63:0:0D=1#6291461,1409482753:0,32024:1#1,1!:1:7:0:0D=1#6:Ion 200 RT!Off:0!High:1!Medium:2!Low:5!Day Flash:63!Night Flash:62#6:Flare RT!Off:0!Day Steady:1!Night Steady:5!Day Flash:7!All-Day Flash:8!Night Flash:63#0::#0:0#0#0#B3121#2#1#0#0

  • Hi,

    Sorry for the late reply. 

    When I disconnect light network after bike riding, only flare power off,

    How do you disconnect the light network after bike riding, are you going every time into Garmin Sensors menu to disable the lights?

    I would propose you to use the global filter which will make sure that the lights are only on when an activity is running. Here is the updated configuration for Smart Bike Lights:

    1,1!:1H]0#4587520,196641:0,50536:1#1,1!:1:63:0:0D=1#6291461,1409482753:0,32024:1#1,1!:1:7:0:0D=1#6:Ion 200 RT!Off:0!High:1!Medium:2!Low:5!Day Flash:63!Night Flash:62#6:Flare RT!Off:0!Day Steady:1!Night Steady:5!Day Flash:7!All-Day Flash:8!Night Flash:63#0::#0:0#0#0#B3121#2#1#0#0

    Make sure that the lights are in Smart mode (S displayed inside the light icon) in order the configuration to work properly.

  • Hi maca88,

    thank you for this very helpful tool to get the VARIA Lights smart.

    I use the following configuration since years, but in the last weeks it stopped working (maybe because of an update?). When a car comes closer, the Varia 516 doesn't turn on. The status at the widget stays at "off". I would be glad, if you could look for the mistake in my configuration.
    Maybe you can add "on, when poor gps" for tunnels? And at night, the light should be on, also when time is paused or speed less then 5km/h (when I stand in front of traffic lights, light shouldn't turn off)

    Here my configuration with Edge 840 and Varia 516 (Light on, only if timer on, speed > 5km/h, light off at daytime except a car approaches, on at night):
    2,2!:1H]2!:1C]1.38889###0,4096::1#4,3!NIGHT:1:4:0:0Es-2700,r2700!TAG:2:0:0:0Er2700,s-2700I[200]0!:1:0:0:0D=1##3,2:Varia 515:0:16777215!2,:-1,Off:0!1,Solid:4#0::#0:0#123!:123!#0#0#B4062##8#0#0

    The similar configuration for Edge 840 and Varia 515 works.
    2,2!:1H]2!:1C]1.38889###0,73535488::1#4,3!NIGHT:1:5:0:0Es-2700,r2700!TAG:2:7:0:0Er2700,s-2700I[200]0!:1:0:0:0D=1##6,5:Varia 515:0:16777215!2,:-1,Off:0!1,Solid:4!1,Peloton:5!1,Day Flash:7!1,Night Flash:6#0::#0:0#123!:123!#0#0#B4062##3#0#0

  • Hi,

    but in the last weeks it stopped working (maybe because of an update?)

    There was no recent releases that would cause this from happening, especially if it works for Varia 515. You need to make sure that the light is in Smart mode, you should see "S" on the top left button. If the light is in smart and it still does not work then maybe a different CIQ data field could be the issue. It sound strange, but for some reason when Smart Bike Lights is used alongside data fields that are using background services, the lights will not change modes even if configured to do so. "Tempe Visualizer" data field is one example, which cannot be used alongside Smart Bike Lights. 

    Maybe you can add "on, when poor gps" for tunnels? And at night, the light should be on, also when time is paused or speed less then 5km/h

    Sure, here is the updated configuration for Varia 515 (you can do the same for 516):

    1,1!:1H]1###0,73535488::1#7,4!NIGHT:1:5:0:0Es-2700,r2700!TUNEL:1:4:0:0G[4!TAG:4:7:0:0Er2700,s-2700I[200]0C]1.38889H]2!:1:0:0:0D=1##6,5:Varia 515:0:16777215!2,:-1,Off:0!1,Solid:4!1,Peloton:5!1,Day Flash:7!1,Night Flash:6#0::#0:0#123!:123!#0#0#B4062##3#0#0

  • Thank you very much for the answer. I'll test the configuration tomorrow at commuting.
    I use "My Bike Radar Traffic", so I'll remove it on trial. In the past it worked with Smart Bike Lights.

  • Good day to you!

    I sent you a message through IQ Store Contact Developer form. May i ask if you received that? Not to hurry you by any means, just form acted very strangely, so I want to be sure it is not lost. Many thanks, AB