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

  • Resolved. But unable to delete.

    I have connected my Trek lights to my Garmin 1040.

    I get "No Network" after filling a configuration string.

    After removing the configuration string I see the the default screen and am able to control my lights.

    I have a Trek ION 200 RT and Trek Flare RT. This is rebranded from Bontrager and thus I used the Bontrager names in the configuration form.

    The used configuration string is:

    #4587520,196641:0,57708:1:##6291461,1409482753:0,57638:1:##7,6:Ion 200 RT:0:16777215:-1!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:0:16777215:-1!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#B3843#2#1#0#0

    Also tried using an "Unknown" front and tail light:

    #:0,57708:1:##:0,57638:1:##7,6:Ion 200 RT:0:16777215:-1!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:0:16777215:-1!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#B3843#99#99#0#0

    Any thoughts?

    Resolved when deleting the serials thus:

    #4587520,196641::1:##6291461,1409482753::1:##7,6:Ion 200 RT:0:16777215:-1!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:0:16777215:-1!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#B3843#2#1#0#0

  • Hi Maca 

    Hi Maca, could you help me with the configuration for Garmin 1040 and Varia 515:

    Day defaults to OFF, Gentle braking - SOLID, Hard braking - DAY FLASH, Night defaults to PELOTON, Gentle braking - SOLID, Hard braking - NIGHT FLASH, Both day and night should DAY FLASH on approaching vehicles:

    Thanks a lot 

    Handshake

    Adam 

  • Hi,

    here is the configuration:

    ###0,73535488::1:#8,6!RADAR:1:7:0:0I]-1]0!HBRAKE:2:7:0:0A[-20Er0,s0!HBRAKE:2:6:0:0A[-20Es0,r0!GBRAKE:1:4:0:0A[-10!NIGHT:1:5:0:0Es0,r0!:1:0:0:0D=1##5,4:Varia 715:0:16777215:-1!2,:-1,Off:0!1,Solid:4!1,Day Flash:7!1,Night Flash:6#0::#0:0#123!:123!#0#0#B3843##3#0#0

  • Hi Maca, could you help me with the configuration for Garmin 540 and Varia 515:

    I tried to configurate all day long but i am just non sucessfull

    Day defaults to OFF, Gentle braking - SOLID, Hard braking - DAY FLASH,

    Night defaults to PELOTON, Gentle braking - SOLID, Hard braking - NIGHT FLASH,

    Both day and night should DAY FLASH on approaching vehicles

    Thanks a lot and cheers from Croatia 

  • Recently I got an RTL515 and Magene AT1200, so have generated a new configurations for the lights, which generally works ok, however, I have noticed that when going in to manually set the light I do not see the labels I added, but rather a list on id's. Has anyone else seen this before.

    I have tried using the 'Use Individual Light Network', and adding the serial numbers, but it never finds the lights. And yes I do disable the garmin light settings, when running this config.

    Below is the config I use in case something is wrong with it? Is it just too complex. I am using an edge 540, and put the strings in using Garmin Connect on a Windows PC.

    I have three configuration types: Peloton, Normal, and Varied.

    Pelo2 - Magene - RTL515

    1,1!Pelo2:1C}2.08333#16384,90382865::1:#7,5!DAY:1:6:0:0Er0,s0!NIGHTH:2:2:0:0C}8.33333Es0,r0!NIGHTM:2:3:0:0C}5.55556Es0,r0!NIGHTL:1:5:0:0Es0,r0!:1:5:0:0D=1#0,73535488::1:#1,1!:1:5:0:0D=1#11:AT 1200!Off:0!Very High:1!High:2!Medium:3!Medium-Low:4!Low:5!Slow Flash:6!Strobe:7!Fast Strobe:61!Custom 1:59!Custom 2:60#4:RTL515!Off:0!Peloton:5!Day Flash:7!Night Flash:6#0::#0:0#0#0#B4061#11#3#0#1

    Norm2 - RCC - Magene - RTL515

    1,1!Norm2:1C}2.08333#16384,90382865::1:#7,5!DAY:1:6:0:0Er0,s0!NIGHTH:2:2:0:0Es0,r0C]8.33333!NIGHTM:2:3:0:0Es0,r0C]5.55556!NIGHTL:1:5:0:0Es0,r0!:1:5:0:0D=1#0,73535488::1:#3,3!DAY:1:7:120:2Er0,s0!NIGHT:1:6:120:2Es0,r0!:1:7:0:0D=1#11:AT 1200!Off:0!Very High:1!High:2!Medium:3!Medium-Low:4!Low:5!Slow Flash:6!Strobe:7!Fast Strobe:61!Custom 1:59!Custom 2:60#5:RTL515!Off:0!Solid:4!Peloton:5!Day Flash:7!Night Flash:6#0::#0:0#0#0#B4061#11#3#0#1

    Var2 - RCC - Magene - RTL515 - Various modes

    1,1!Var2:1C}2.08333#16384,90382865::1:#7,5!DAY:1:6:0:0Er0,s0!NIGHTH:2:2:0:0Es0,r0C]8.33333!NIGHTM:2:3:0:0Es0,r0C]5.55556!NIGHTL:1:5:0:0Es0,r0!:1:5:0:0D=1#0,73535488::1:#8,6!CAR:1:7:0:0I]-1]0!HBRAKE:2:7:0:0A[-20Er0,s0!HBRAKE:2:6:0:0A[-20Es0,r0!GBRAKE:1:4:0:0A[-10!NIGHT:1:5:0:0Es0,r0!:1:0:0:0D=1#11:AT 1200!Off:0!Very High:1!High:2!Medium:3!Medium-Low:4!Low:5!Slow Flash:6!Strobe:7!Fast Strobe:61!Custom 1:59!Custom 2:60#5:RTL515!Off:0!Solid:4!Peloton:5!Day Flash:7!Night Flash:6#0::#0:0#0#0#B4061#11#3#0#1

  • Hi Maca 

    Hi Maca, could you help me with the configuration for Garmin 540 and Varia 515:

    I tried seceral times to program but there was no sucess 

    Can I kindly ask you to program for me?

    Day defaults to OFF, Gentle braking - SOLID, Hard braking - DAY FLASH,

    Night defaults to PELOTON, Gentle braking - SOLID, Hard braking - NIGHT FLASH,

    Both day and night should DAY FLASH on approaching vehicles

    Thanks a lot and cheers from Croatia

    Luka