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 

  • Hi ,
    I've modified Jay_Queue use case to my configuration :#0,73413136::1#1,1!:1:0:0:0D=1#0,73535488::1#3,3!Brake:1:4:0:0A[-10!Car:1:7:0:0I]0]-1!:1:0:0:0D=1#7,6:Varia 800:11206400:16777215!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:16777215!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#B3843#4#3#0#0
    Previously, my RTL515 doesn't be configured to light on when I brake.

    But, I've noticed that my Varia 800 light on when light decrease (in wood for example). But when light increase, Varia is still on. Is it possible to configure it to light off when sunrise is present ?

  • Hi,

    Sorry for the late reply. I will add support for Fenix 7 Pro sometime this week. I will let you know when it will be compatible.

  • Hi,

    I modified the configuration by adding a Day (Off) and Night (On) filter for Varia 800 light based on sunrise/sunset. Also, I fixed the "Car" filter by adding the "Threat > None" condition to avoid false positives. Here is the updated configuration:

    #0,73413136::1#3,3!Day:1:0:0:0Er0,s0!Night:1:3:0:0Es0,r0!:1:0:0:0D=1#0,73535488::1#3,3!Brake:1:4:0:0A[-10!Car:1:7:0:0I]-1]0!:1:0:0:0D=1#7,6:Varia 800:11206400:16777215!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:16777215!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#B3843#4#3#0#0

  • Nice ! You confirm that Varia 800 will light on automatically when ligth decrease (woods, tunnel) and automatically light off when light is ok ?

  • Don't apologize. I finally have to return the watch because of bad vibrations and quick discharging... Thank You!

  • Not really, the filter that was added is based on the sunset and sunrise time and not on the current ambient light. If you have Edge 1040 Solar then you can use the "Solar intensity" filter that will work based on the current light. If not, then the only option would be to wait for Garmin to add the ambient light to the CIQ API: https://forums.garmin.com/developer/connect-iq/i/bug-reports/ambient-light-sensor-api-access 

  • Thanks. Strangely, I've noticed that my varia detect low luminosity to start up, with your plugin. Maybe, it should be disconnected to your plugin and it have been in smart mode manually.

  • Fenix 7 Pro and epix (Gen 2) Pro watches are now supported with Smart Bike Lights version 0.26.1 and Bike Lights Control version 0.15.2

  • Excelent datafield!  Congrats for your good efforts...  I have used it for several months. However, for some reasons when at night the lights are not turning on when smart mode... I am using one of your predefined configuration that adapt solid at night and flashing at day, and solid high when desaccellerating...