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 

  • That is very strange that Garmin Tempe Visualizer can brake Smart Bike Lights, it seems like that the ANT connection to the Garmin tempe somehow interfere with ANT lights.

    Disabling Garmin Tempe Visualizer is not enough

    Could you please try to install a different data field that also communicates with Garmin Tempe like CRTTempeField, to see whether there is something special with "Garmin Tempe Visualizer" data field or there is an ANT issue when both Varia and Tempe sensor connections are established?

    If the same issue also occurs with CRTTempeField data field, then this is something that should be reported and fixed by Garmin with a firmware update.

  • The configuration works fine in the Edge 1030 simulator. Just to be sure, are you using Smart Bike Lights (data field) or Bike Lights Control (widget)? Your configuration is intended only for Smart Bike Lights, using this configuration with the widget will produce Error 4.

  • I found an error - after pasting your configuration for bigHUN:

    #0,73413136#4,3!NIGHT:2:3:0:0Es-600,r0C]1.38889!DAY:1:7:0:0C]2.22222!:1:0:0:0D=1#0,73404416#5,3!BRAKE:2:4:0:0C]1.94444A[-10!RADAR:2:7:0:0I]-1]0C]2.22222!:1:0:0:0D=1#7,6:Ion 800 RT!2,:-1,Off:0!1,High:2!1,Medium:2!1,Low:4!1,Day Flash:7!1,Night Flash:6#5,4:Varia RTL 510!2,:-1,OFF:0!1,DAY FLASH:7!1,NIGHT FLASH:6!1,SOLID:4#0::#0:0#123!:123!#B2713#4#2#0#0

    in the Bike radar Range position, the operator was without the selected parameter, hence error 4. It was enough to add, for example, greater than 0 and it works fine.
    I did from the beginning with a few corrections (e.g. at night, the position light is to be lit at night, regardless of speed, etc.) and compared the configurations until I found an error in the configuration given for bigHUN.

    Thank you very much!

  • Another fix - when pasting the string from the mail to the mobile connect, there was a space in the front (So instead of: "#4587520,196641 # 1,1! ..." it was: " #4587520,196641 # 1,1! ...") and therefore there was an error in the configuration 4. The space was not visible, and the error was present. Perhaps it would be possible to automatically remove these types of characters?

  • in the Bike radar Range position, the operator was without the selected parameter, hence error 4

    Both "Range operator" and "Threat operator" are optional and can be empty as shown in the image for "Range operator". I again tested both configurations in the simulator and both works without displaying Error 4. 

    when pasting the string from the mail to the mobile connect, there was a space in the front and therefore there was an error in the configuration 4

    I think this was the reason for Error 4 to be displayed and not "Range operator", you can try to remove the "Range operator" and it should still work.

    Perhaps it would be possible to automatically remove these types of characters?

     I will add space trimming in the next version.

  • Excellent! Thank you once again!

  • Dear can you provide the code for an EDGE 1030 PLUS, Varia RTL 515, metric measurement, 24 hours

    I'm trying to get the light to only shine in Daylight flash when a vehicle is detected (standard detection distance), then switch off until another detection.

  • Hi,

    here is the configuration:

    ###0,73535488#2,2!CAR:1:7:0:0I]-1]0!:1:0:0:0D=1##6,5:Varia 515!2,:-1,Off:0!1,Solid:4!1,Peloton:5!1,Day Flash:7!1,Night Flash:6#0::#0:0#123!:123!#B3570##3#0#0

  • I loaded the provided code into Edge 1030 last night, and I cannot recall seeing any errors.

    That was actually an exercise for me:

    copy-paste from this post - into a blank email upstairs at my PC;

    pair the phone and the Edge downstairs in the garage;

    recover the email downstairs in the garage;

    copy-paste the code from email into the Carmin Connect / Smart Bike Lights datafield;

    So far no error codes in any device, when I bring out the Edge from Sleep the lights blink in Network as usual ... but I had no time to go for a ride yet to discover the new benefits ....