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 

  • Thanks a lot, works now.

  • Just wanted to express a huge thanks for the "Smart Bike Lights" app. I have a Fenix 5x plus and Varia RTL515. Without this app, I wouldn't have any satisfactory way of controlling the Varia's lights through the watch. The app of course enables very sophisticated "smart" strategies, but I wasn't even able to achieve basic light settings reliably through the native menus in the watch.

    (The struggles I had in making things work are similar to those described in the threads https://forums.garmin.com/sports-fitness/cycling/f/varia-series/231362/rtl-510-515-connected-with-fenix-6x-----about-no-light-mode-control, https://forums.garmin.com/outdoor-recreation/outdoor-recreation/f/fenix-6-series/230869/how-do-you-pair-a-varia-rtl510-515-as-a-light, and more recently in https://forums.garmin.com/outdoor-recreation/outdoor-recreation/f/fenix-7-series/290401/bug-garmin-varia-no-light. Unfortunately, the firmware updates to the Fenix 6 that make things work now don't seem to have been incorporated in my older Fenix.)

    Many thanks again!

  • I just started using a Garmin Edge 1030 Plus, so I'm new to setting up CIQ widgets. I have a Bontrager Ion 200 RT headlight, a Bontrager Flare RT for a taillight, and also have a Garmin Varia RTL510 as a second taillight. It's my understanding that I would setup the headlight and taillight in "Bike Lights Control (#1)" and the second taillight in "Bike Lights Control 2". That would give me 2 Widget pages to control the 3 lights. The first Widget page with the 2 Bontrager lights works properly, but I can't get the 2nd page to work. All I get is "Error 4".

    I'm obviously doing something wrong or have misunderstood how to setup the widget with more than 2 lights and/or 2 of the same type of lights (2 taillights).

    The above was setup using the "Lights Configurator" and Garmin Connect on my phone.

    Can anyone shed some light on what I'm doing wrong?

  • It's my understanding that I would setup the headlight and taillight in "Bike Lights Control (#1)" and the second taillight in "Bike Lights Control 2"

    That is correct.

    The first Widget page with the 2 Bontrager lights works properly, but I can't get the 2nd page to work. All I get is "Error 4".

    Can you share the configuration that you are using for both widgets? Also make sure that the configuration was done in correct configurator (https://maca88.github.io/BikeLightsControl/) as people tend to mix configurations of Smart Bike Lights with the widget.

    Here is how the configurations should look like in your case:

    Widget 1: Ion RT 200 + Flare RT

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

    Widget 2: Varia RTL510

    ###0,73404416:0,222222###5,4:Varia 510!2,:-1,Off:0!1,Solid:4!1,Day Flash:7!1,Night Flash:6#0::#0:0#B3570##2#0#0

    111111 -> Serial number of Flare RT
    222222 -> Serial number of Varia RTL510

  • Thanks for the quick reply. Sorry, I forgot to copy the config lines before I tried your fix. I verified that I was in the correct configurator and used your lines with the proper SN's in place of 111111 and 222222. I still get the exact same results. The 2 Bontrager lights work fine and the Varia in Bike Lights 2 shows an "Error 4"

    Here are the current config lines (what you suggested above with proper SN's):

    #1

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

    #2

    ###0,73404416:0,3322906745###5,4:Varia 510!2,:-1,Off:0!1,Solid:4!1,Day Flash:7!1,Night Flash:6#0::#0:0#B3570##2#0#0

    I just noticed that the configurator is changing the SN of the Varia light. It shows 3322906745 in the configurator and 1175423097 in the output line. It's also putting a "1," in front of the SN which is different from the "0," in your above suggestion. If I use your line I get an "Error 4" and if I use the output line from the configurator, I get a blank screen. I'm not sure if that's a help, but something I noticed. I loaded your suggestion for #1 above into the configurator and it left the SN of the Flash RT the same.

    Output from the configurator after entering #2 above into "Existing Configuration".

    ###0,73404416:1,1175423097###5,4:Varia 510!2,:-1,Off:0!1,Solid:4!1,Day Flash:7!1,Night Flash:6#0::#0:0#B3570##2#0#0

    In case it matter, the software version on my Edge 1030 Plus is 6.40

    Let me know if there's some other info you need.

  • I just noticed that the configurator is changing the SN of the Varia light. It shows 3322906745 in the configurator and 1175423097 in the output line

    This is intentional. As the serial number is higher than an integer (32bit number), it is splitted into two integers, otherwise it would throw an exception when parsing it in CIQ. By manually editing the serial number in the output configuration value (0,3322906745) will indeed get you an error 4. I tested both widgets with Ion RT Pro, Flare RT and Varia 515 by configuring Ion RT Pro and Flare RT in widget 1 and Varia in widget 2. Both widgets worked for me without displaying error 4.

    if I use the output line from the configurator, I get a blank screen.

    You get a blank screen without any text at the center of the screen? In case you would misspell the serial number, it should display "No network" in the center of the screen.

    Output from the configurator after entering #2 above into "Existing Configuration"

    The configuration that is outputted from the configurator should work with the second widget as it is (no manual editing). I noticed that the second widget was not updated to version 0.13.0, so I updated it. Try to update the second widget to version 0.13.0 and see if it works.

  • Correct, just a blank screen (when I used the configurator's text string). I updated the Widget and now everything works.

    This is much better than the Bontrager light control, especially because yours works with the Varia light also.

    Thanks for your help.

    --Dave

  • Garmin Varia TL 300 turn signal and automatic brake light tail lights

    2 - High

    3 - Medium

    4 - Low

    7 - Day Flash (roughly 300 millisecond spaced 50 ms flashes)

    These tail lights also work with the Garmin Varia Light remote and the Edge pop-up screen (single tap on any activity profile display screen) with the left and right turn indicators.

    For turn signaling, the lights have a pair of amber LEDs that are flashed at the same rate as the Day Flash.  (This is the older 300 millisecond spaced 50 millisecond flash steady interval, not the interrupted strobe of the modern RTL515 and UT800.)

    The arrangement is a 4 light network:

    UT800 front

    RTL515 radar center rear (usually in day flash or night flash)

    TL 300 Left and Right steady running lights at LOW (4) intensity

  • Thanks for the light modes, I added TL300 to the configurator of Smart Bike Lights. I am not sure how will the data field behave when the turn signal is activated, I hope that it works fine as I don't own one to do a test.


    If you would want to configure all four lights you would need to use both data fields (Smart Bike Lights and Smart Bike Lights #2). The problem is that currently it is not possible to set more than one serial number, so for now you can configure only three of them. With "Smart Bike Lights" data field you could configure UT800 and RTL515 and with "Smart Bike Lights #2" one of the Varia TL300.

  • Hi, I'm trying to setup my lights in a following way, however when the activity is started the lights are still in "N" (which means network?) status and the INDV is there written as well. They don't seem to adjust based on what I've configured and there's no "Smart" setting on the watch, just "Network" and "Manual".

    What I'm trying:

    Front light (ION 200 RT) only when activity is running:

    60 minutes before sunset to sunset: FLASH

    Sunset - Sunrise: Solid HIGH

    Sunrise - Sunrise+30: Flash

    Otherwise: OFF

    Rear light (Varia Radar 510) only when activity is running:

    All the time when braking (-20%): SOLID

    All the time when car is coming: Day flash

    During Sunset - Sunrise: Night Flash

    Otherwise: OFF.

    I would also like to have a way to overwrite the setting to this (when I'm in tunnel or I just temporarily need the lights on):

    Front light: Solid HIGH

    Rear light: Night Flash + erratic flash when car is coming.

    Here's what I currently have:

    1,1!SMART:1H]0#4587520,196641:0,1902009934#5,3!night:2:1:0:0Es0,r0H]1!sunset:2:63:0:0H]2Es-3600,r1800!:1:0:0:0D=1#0,73404416:1,1832203479#7,4!Brake:2:4:0:0H=3A[20!Radar:2:7:0:0I]-1]0H]2!Night:2:6:0:0Es-3600,r1800H]2!:1:0:0:0D=1#4:Front!Off:0!High:1!Low:5!Flash:62#2:Varia 510!Off:0!Flash:6#0::#1:1#B3907#2#2#0#0

    Btw. it would be nice to have Fenix 7X Solar  support for solar, but I guess the limitation of 32k is also there, right? :(

    Thanks for any help!