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 

  • ¿Qué números ves cuando vacías el campo de configuración en Garmin Connect?

    Para Flare RT debe ser: 1, 5, 7, 8, 63

  • Hola

    Veo 1, 5, 7, 8, 13

  • Debe restablecer su Flare RT a la configuración predeterminada de fábrica para restaurar los números.
    Para restablecer la luz a la configuración predeterminada de fábrica, con la luz encendida, mantenga presionado el botón de encendido durante 15 segundos. El LED principal parpadeará una vez a los 8 segundos y nuevamente a los 15 segundos. Suelte el botón después del segundo destello.
    Después del reinicio, debería ver 63 en lugar de 13, si es así, entonces la configuración debería funcionar.

  • Muchas gracias por tu ayuda.

    Ya funciona bien. 

    Un saludo. 

  • What a quick response, thank you very much. I have a 530 and I would like daytime flashing during the day, night flashing at night and a steady brake light. Is there any way to have ambient light with brake filter?

  • For example, when I enter a tunnel during the day, I would like it to be possible to automatically change the light to night.

  • Hi,

    Here is the configuration for your requirements:

    1,1!:1H]0###6291461,1409482753#5,5!BRAKE:1:1:0:0A[-10!TUNEL:1:5:0:0G[4!DAY:1:7:0:0Er0,s0!NIGHT:1:63:0:0Es0,r0!:1:0:0:0D=1##6:Flare RT!Off:0!Day Steady:1!Night Steady:5!Day Flash:7!All-Day Flash:8!Night Flash:63#0::#0:0#B3121##1#0#0

    regarding ambient light, currently there is no API for accessing it (there is a feature request, which you can upvote), but for tunnels we can check the GPS accuracy, which is included in the above configuration.
    You can edit the configuration (e.g. changing the braking sensibility, light modes or sunset/sunrise offsets) by pasting the configuration in the "Existing configuration" input of Lights configurator and clicking on "Parse" button.
    You will notice that I added a global filter that will prevent turning on the light when there is no activity running, you can remove it in case you don't want such behavior.
    Also, make sure that the light is in the Smart mode ("S" character needs to be displayed on the light) and in case it is not, you can change to Smart mode by using the data field menu (see https://github.com/maca88/SmartBikeLights#changing-control-modes)

  • thank you very much friend, since you have put in you could also make me the configuration of the garmin ut800 lighthouse connect light when starting, during the day daytime flash and at night more powerful fixed light You can add it to me with the rear light. I will be very grateful

  • Here is the configuration for both lights:

    1,1!:1H]0#0,73413136#4,4!TUNEL:1:3:0:0G[4!DAY:1:7:0:0Er0,s0!NIGHT:1:3:0:0Es0,r0!:1:0:0:0D=1#6291461,1409482753#5,5!BRAKE:1:1:0:0A[-10!TUNEL:1:5:0:0G[4!DAY:1:7:0:0Er0,s0!NIGHT:1:63:0:0Es0,r0!:1:0:0:0D=1#6:Varia 800!Off:0!High:2!Medium:3!Low:4!Night Flash:6!Day Flash:7#6:Flare RT!Off:0!Day Steady:1!Night Steady:5!Day Flash:7!All-Day Flash:8!Night Flash:63#0::#0:0#B3121#4#1#0#0

    it also contains the tunnel filter for UT800.

  • Thank you very much for your time, you are very kind. I have put the code that you have sent me in the smart bike lights configuration of garmin conect mobile and in my garmin 530, I have changed the light control to S and the lights do not turn on, however if I put them in N mode, they do work . I don't know what I've done wrong