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 

  • Hello, I have a bontrager flare rt rear light and when I charge the battery the icon does not fill up, is there a way to do it?
    Merry Christmas!!
  • Hi,

    this is a known Flare bug and the only way to correct the battery icon is to do a factory reset after each charge. To do a factory reset you need to:
    1. Hold the power button for 15 seconds (release after the second flash). This will also turn off ANT+
    2. To re-enable ANT+, you need to repeat step 1
    3. Now the battery indicator should show all bars

    There is a separate thread for this issue: https://forums.garmin.com/developer/connect-iq/f/discussion/242959/bontrager-flare-rt-battery-bug 

    Merry Christmas to you all!

  • I installed this on my Edge 530 with a Garmin Varia UT 800 and Garmin Varia RTL510.  I used the instructions for the setup; however, I couldn't get it to work.  I would get an Error 1 message.  This is my configuration string: 1,1!:1H]0.89408#0,73413136::5614080#5,4!High:2:2:0:0C]7.59968Es0,r0!Night:1:3:0:0Es0,r0!DAY:1:7:0:0Er0,s0!:1:7:0:0D=1#0,73535488::16711765#3,3!Night:1:4:0:0Es0,r0!DAY:1:7:0:0Er0,s0!:1:7:0:0D=1#6:Varia 800!Off:0!High:2!Medium:3!Low:4!Night Flash:6!Day Flash:7#5:Varia 515!Off:0!Solid:4!Peloton:5!Day Flash:7!Night Flash:6#0::#0:0#5570815#B3121#4#3#1#0.  Any help would be appreciated.

  • Your config has the tail light set as the RTL515.  Try changing it to the RTL510?

  • Does the Smart Bike Lights work with the Garmin Edge 530?

  • Yes, works fine for me on my Edge 530

  • Thank you.  On my data screen it shows the headlight and taillight with a "N" showing it is associated with a network.  I have tried scrolling through the different data screens, turning the Edge 530 off/on and nothig seems to change the N to an S nor does my configuration work.  Your help is greatly appreiated. This is my configuration: 1,1!:1H]0#0,73413136::5614080#5,4!High:2:2:0:0C]7.59968Es0,r0!Night:1:3:0:0Es0,r0!DAY:1:7:0:0Er0,s0!:1:7:0:0D=1#0,73535488::16711765#3,3!Night:1:4:0:0Es0,r0!DAY:1:7:0:0Er0,s0!:1:7:0:0D=1#6:Varia 800!Off:0!High:2!Medium:3!Low:4!Night Flash:6!Day Flash:7#5:Varia 515!Off:0!Solid:4!Peloton:5!Day Flash:7!Night Flash:6#0::#0:0#5570815#B3121#4#3#1#0  

  • Your configuration still shows a Varia RTL515.  Your post says you have a RTL510.  I think that is causing the error if you have an RTL510 but you're trying to apply RTL515 configuration filters.    

  • Sorry, my first post was incorrect.  I do have a RTL515.  However, on the configuration I had loaded I had it setup as a RTL510 that is why I was getting the Error 1.  So I am past that.  However, now I can't get the data screen to show that it using the Smart mode.  Does it matter whether light network is set to Individual or Automatic?  These are the steps I followed: 

    1. Download the data field application from Garmin Connect Store and synchronize your Garmin device
    2. Pair your bike lights with your Garmin device (Garmin manual)
    3. On your Garmin device set Light Beam Activated setting to Timer Start in Menu -> Sensors -> Lights -> Network Options
    4. Configure your paired lights with the Lights Configurator (In case your light is not on the list, check this thread)
    5. By using Garmin Connect Mobile or Garmin Express, copy the final configuration value from Lights Configurator into the application setting: Lights Configuration
    6. Select the data screen where you want put the data field
    7. On the chosen field select Connect IQ -> Smart Bike Lights