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 

  • Hi On my Edge 530 I I permanently get Error Code 4 in my Bike lights control for configuration:  #4587520,196641::1#4,4!High:1:1:0:0C}6.94444!Night:1:2:0:0Es0,r0!Day:1:63:0:0Er0,s0!:1:0:0:0D=1#0,73535488::16711680#3,3!NIGHT:1:7:0:0Es0,r0!DAY:1:7:0:0Er0,s0!:1:0:0:0D=1#6:Ion 200 RT!Off:0!High:1!Medium:2!Low:5!Day Flash:63!Night Flash:62#4:Varia 515!Off:0!Solid:4!Day Flash:7!Night Flash:6#0::#1:0#0#B3121#2#3#0#0 

    Any ideas what might be the problem? Both lights seems to be working properly...

    Hi Jarek

  • Hi On my Edge 530 I I permanently get Error Code 4 in my Bike lights control for configuration:  #4587520,196641::1#4,4!High:1:1:0:0C}6.94444!Night:1:2:0:0Es0,r0!Day:1:63:0:0Er0,s0!:1:0:0:0D=1#0,73535488::16711680#3,3!NIGHT:1:7:0:0Es0,r0!DAY:1:7:0:0Er0,s0!:1:0:0:0D=1#6:Ion 200 RT!Off:0!High:1!Medium:2!Low:5!Day Flash:63!Night Flash:62#4:Varia 515!Off:0!Solid:4!Day Flash:7!Night Flash:6#0::#1:0#0#B3121#2#3#0#0 

    Any ideas what might be the problem? Both lights seems to be working properly...

    Hi Jarek

  • Hi,

    the configuration that you provided is for Smart Bike Lights data field only. Bike Lights Control widget does not have "Smart" mode and has to be configured with the following configurator: https://maca88.github.io/BikeLightsControl/

  • Thank You for a quick response :)

  • I ran into an issue that my Varia UT800 is not stable in a particular 'S' mode bur rather jumps every few seconds for a milli-second to HIGH.

    At night I have the Varia UT800 scheduled for a LOW light stetting (see the string). However, every few seconds the LOW setting jumps to HIGH for a milli-second and then returns to LOW. On the SBL screen of the 1030+ is also see the light buttons jump for a milli-second from LOW to HIGH.

    My impression is that this behavior was introduced with SBL version 24.

    Could it be that the 'jumping' is the result of SBL checking the settings of the filter groups?


    Light Network
    Garmin Edge 1030+ / Garmin Varia RTL515 / Garmin Varia UT800

    SBL setting

    #0,73413136::1#2,2!NIGHT:1:4:0:0Es-1800,r1800!:1:0:0:0D=1#0,73535488::1#5,4!BRAKE:2:4:0:0C]2.22222A[-10!RADAR:1:7:0:0I[125]0!NIGHT:1:5:0:0Es-1800,r1800!:1:0:0:0D=1#7,6:Varia 800:255:16777215!2,:-1,Off:0!1,High:2!1,Medium:3!1,Low:4!1,Day Flash:7!1,Night Flash:6#6,5:Varia 515:16711680:16777215!2,:-1,Off:0!1,Solid:4!1,Peloton:5!1,Day Flash:7!1,Night Flash:6#0::#1:1#123!:123!#-1#B3570#4#3#0#0

  • Could it be that the 'jumping' is the result of SBL checking the settings of the filter groups?

    The logic for calculating the current light mode based on filters was not modified in the recent releases (e.g. 0.24.0). To make sure whether SBL is the issue you could try the following:

    1. After sunset tap on the "Low" button of UT800 on the SBL light panel (this will change the top left button from "S" to "M")
    2. Check whether the issue still persist

    Try it out and let me know. If the issue is still there, then it must be something else.

  • What I did to overcome the issue was to switch from 'S' to 'M' and set the light manual to 'LOW' because than the milli-second jumping from 'LOW' to 'HIGH' disappeared.
    The former was why I linked the issue to the 'S' setting.

  • Think you've nailed this now, perfect!

  • Unfortunately, I wasn't been able to reproduce the issue with a Bontrager ION Pro light (I don't own a UT800) yet. One thing that you can try is to set Garmin "Light Mode" to "Individual" (check: https://www8.garmin.com/manuals/webhelp/variartl510/EN-US/GUID-73B08487-BA57-4EF0-A253-D226E229BC68.html) in case you didn't tried it yet. I will inform you in case I will be able to reproduce and fix the issue.

  • Hi maca88, 

    I am asking you for a favor. Could you modify my code so that when I press stop my activity (not save) both Varia RTL515 and UT 800 lights turn OFF and when it’s start again the lights turn back ON. I can't set it up ...

    1,1!:1H]1#0,73413136:1,1194496973:1#1,1!:1:0:0:0D=1#0,73535488::1#3,3!CAR:1:7:1:0I]-1]0!BRAKE:1:4:0:0A[-10!:1:0:0:0D=1#7,6:Varia 800:43775!2,:-1,Off:0!1,Day Flash:7!1,High:2!1,Medium:3!1,Low:4!1,Night Flash:6#6,5:Varia 515:16711680!2,:-1,Off:0!1,Day Flash:7!1,Solid:4!1,Peleton:5!1,Night Flash:6#0::#0:0#123!:123!#1#B3122#4#3#0#0

    thanks Pray