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 

Known issues:

1. Unable to use Tempe Visualizer or TyreWiz Data Field alongside Smart Bike Lights:
https://forums.garmin.com/developer/connect-iq/i/bug-reports/lightnetworklistener-onbikelightupdate-not-called-when-certain-data-fields-are-installed

  • yesterday I ordered at1600 too because Prime day and price for at1600 became less then at1200 - 62$. 

    For now (until get at1600) with AT1200 in SBL I choose AT1600 config and it work excellent, so Maca88, may be in your configurator better to leave only option Magene AT (1200/1600)? 

  • and with custom day flash (similar to night flash) battery life is about 72h...one charge per month with 5-6 workouts per week. Awesome!

  • Hi, Maca88. Recently I bought Wahoo Radar and all light modes work ok, thank you. I'm interesting in situation when Wahoo with active battery saver (reduce brightness by 50% when no any car) and current, e.x., High Flash. Is SBL affect on battery saver function and forbid to switch from High Flash to Eco mode? 

  • Hi

    Data for Giant Recon+ TL150

    1 -> High steady (70 lm)

    5 -> Low steady (20 lm)

    7 -> High flash (150 lm)

    6 -> Low flash (15 lm)

    8 -> Random flash (20 lm)

  • For now (until get at1600) with AT1200 in SBL I choose AT1600 config and it work excellent, so Maca88, may be in your configurator better to leave only option Magene AT (1200/1600)? 

    I unified the configuration for both AT1200 and AT1600 by using the one from AT1600 as suggested, but I still left them separated in the configurator.

    I'm interesting in situation when Wahoo with active battery saver (reduce brightness by 50% when no any car) and current, e.x., High Flash. Is SBL affect on battery saver function and forbid to switch from High Flash to Eco mode? 

    If the light mode in SBL is the same when battery saver is activated, then it should not affect it. If you think that SBL does affect the active battery saver, then try to remove SBL and see if there is a difference.

  • Hi, thanks for the modes! Now the light can be selected from the Lights Configurator.

  • Hi Maca .. I've used this data field for a few years. I have both Varia 515 and UT800, and Edge 840. I tried to customize colours but the data field only shows my headlight, not both lights:


    #0,73413136::16776960:#1,1!:1:7:0:0D=1#0,73535488:0,246397:16711680:#1,1!:1:7:0:0D=1#7,6:UT 800:11206655:11206655:1!2,:-1,Off:0!1,High:2!1,Medium:3!1,Low:4!1,Night Flash:6!1,Day Flash:7#6,5:Varia 515:0:16711680:1!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#4#3#0#1

    Where is the error?

  • A guess.. Maybe because you've entered the serial no for your rtl515 but you're not using individual light networks 

  • Good guess but that's not it either. Thanks for suggesting. Still only shows the headlight in the data field. If I clear the field, I get both lights..

  • Hi, I tested your configuration in the simulator (without the serial number) and it works there:


    As suggested, the described behavior can happen when the serial number is not the right one. Please try again with the following configuration (without serial number) and make sure to update the "Lights Configuration" app setting and that the "Current Configuration" is set to "Primary":

    #0,73413136::16776960:#1,1!:1:7:0:0D=1#0,73535488::16711680:#1,1!:1:7:0:0D=1#7,6:UT 800:11206655:11206655:1!2,:-1,Off:0!1,High:2!1,Medium:3!1,Low:4!1,Night Flash:6!1,Day Flash:7#6,5:Varia 515:0:16711680:1!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#4#3#0#1