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 

  • My radar has been paired for a year

  • I see, the configuration that was proposed by Prozorowicz is not entirely correct, please use this one:

    ###0,73404416#3,3|CAR50:1:7:1I[50]0|CAR100:1:7:1I[100]1|:1:0:1D=1##5,4:Varia 510|2,:-1,Off:0|1,Solid:4|1,Day Flash:7|1,Night Flash:6#B2713##2#0#0

  • In Edga settings, when pairing there are modes High visibility, auto, custom, trail - which should be set?

  • It doesn't matter, you can set it any of the mentioned modes. The only thing that matters is that you need to have the light in "S" mode (Smart mode). 

  • ###0,73404416#3,3|CAR50:1:7:1I[50]0|CAR100:1:7:1I[100]1|:1:0:1D=1##5,4:Varia 510|2,:-1,Off:0|1,Solid:4|1,Day Flash:7|1,Night Flash:6#B2713##2#0#0

    It works, the light blinks only that the distance when it starts blinking is too small in my opinion, it means it starts blinking when the car is very close, can you make it blink earlier immediately after being detected by the radar?

  • Yes you can, this configuration will turn on the light immediately after a vehicle is detected:

    ###0,73404416#2,2|CAR:1:7:1I]-1]0|:1:0:1D=1##5,4:Varia 510|2,:-1,Off:0|1,Solid:4|1,Day Flash:7|1,Night Flash:6#B2713##2#0#0

  • It detected the vehicle much faster now and it started blinking.

    There was one car going and it started blinking, but behind it, about 70 meters away, another one and it was not detected anymore and the light did not turn on?

  • There are two possibilities, either the Varia radar failed to detect the second vehicle or the second vehicle was detected as "Threat" = "None". In case it was the latter, try to use this configuration:

    ###0,73404416#2,2|CAR:1:7:1I]-1]-1|:1:0:1D=1##5,4:Varia 510|2,:-1,Off:0|1,Solid:4|1,Day Flash:7|1,Night Flash:6#B2713##2#0#0

    this configuration will turn on the light for any detected vehicle, ignoring the threat level. In case the second vehicle is still not recognized then the issue is with Varia radar, which is not able to recognize it.

  • This last configuration doesn't work at all: Mode S RADAR STILL BLINK, NO CARS FOLLOW ME, BLANK STREET ON FLASH - DAY FLASH When it tries to turn the light off, it switches to Mode M

  • Interesting, ok then please do not use the last configuration. I don't have a Varia radar, so I don't exactly know what data the radar is sending to your Edge. Based on your information, you will have to use the configuration that takes into consideration the threat level:

    ###0,73404416#2,2|CAR:1:7:1I]-1]0|:1:0:1D=1##5,4:Varia 510|2,:-1,Off:0|1,Solid:4|1,Day Flash:7|1,Night Flash:6#B2713##2#0#0

    in case the second vehicle is not detected, I can only conclude that the Varia radar failed to detect it, which is something that the data field application cannot fix.