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 

  • As for how to toggle between Smart (S), Network (N), and Manual (M) light modes on the Edge 530, navigate to an activity profile where you have the Smart Bike Lights datafield in use.

    Then tap the top right Edge button to access menu and scroll down to "Data Fields."

    You will have the option to select "Connect IQ Data Fields" if the Smart Bike Lights data field is in use in your activity profile

    Select Smart Bike Lights

    Select Control Mode

    Choose Smart (S) from the list

    Back out of menus and your Smart Bike Lights data field should now show the S and behave according to your configuration.

  • Awesome!! Those seem to be the pieces I was missing.  Thank you

  • Great!  As I was tinkering with my setup to help you out, I think I learned the value of "Force Smart Mode" feature because I kept trying to turn my RTL515 tail light off and each time I tried it would instead switch the light to manual mode.  I think I was releasing the on/off button slightly or something, but it was driving me crazy.  The Force Smart Mode check box seems like it should prevent this so I enabled it.  After loading an updated configuration, it behaved like I wanted.

    "Force Smart mode will prevent external light mode changes (e.g. pressing the button on the light) to switch from Smart to Manual control mode. This setting works only when the light is in Smart control mode."

    UPDATE: with Force Smart Mode on and Smart Bike Lights set on "S", it does keep the light network in "S" mode despite tapping the on/off button on my tail light.  Tapping the on/off button on the tail light will briefly turn the light on, but then it seems like the app setting takes over and shuts it off again in less than a second (my default Smart setting is to have the tail light off).  

  • Hi, You have a great widget that I've been using successfully for two years on my Garmin Edge 830 with both a front and a rear light. At that time, I downloaded the "Bike Loghts Control" a I have no problem to configurate my lights.

    Now, I purchase a second rear light so I downloaded the "Bike Loghts Control #2".

    My lights are: a front light (Ion200 RT) and two rear lights (both are Flare RT).

    This the configurations on the Bike Light Configurator:

    Under "light configuration":

    #4587520,196641::1##6291461,1409482753:0,2909423427:1##7,6:Ion 200 RT:0:16777215!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!2,:-1,Off:0!1,Day Steady:1!1,Night Steady:5!1,Hi Day Flash:7!1,Med Day Flash:8!1,Night Flash:63#0::#0:0#B3122#2#1#0#0

    and under "secondary light configuration"

    #4587520,196641::1##6291461,1409482753:0,3482710109:1##7,6:Ion 200 RT:0:16777215!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!2,:-1,Off:0!1,Day Steady:1!1,Night Steady:5!1,Hi Day Flash:7!1,Med Day Flash:8!1,Night Flash:63#0::#0:0#B3122#2#1#0#0

    I want to be able to switch from one rear light to the other having only one rear light active while the other one is OFF. I was thinking that I can switch from the first configuration to the other with the widget...  Is this possible?

    My 830 reconnect successfully the light network at the power on of it (I see the three light flashing once). But when I go in the widget, I get "ERROR 4" and I cannot control the lights by the widget.

    What I am doing wrong??? Thanks!

  • Hi, both configuration that you provided are invalid, that is why you get error 4. I suspect that you edited the configuration manually by changing the serial number without using the Lights Configurator. In order to fix the issue use the following configurations:

    For "Bike Lights Control":

    #4587520,196641::1##6291461,1409482753:1,761939779:1##7,6:Ion 200 RT:0:16777215!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!2,:-1,Off:0!1,Day Steady:1!1,Night Steady:5!1,Hi Day Flash:7!1,Med Day Flash:8!1,Night Flash:63#0::#0:0#B3122#2#1#0#0

    For "Bike Lights Control #2":

    #4587520,196641::1##6291461,1409482753:1,1335226461:1##7,6:Ion 200 RT:0:16777215!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!2,:-1,Off:0!1,Day Steady:1!1,Night Steady:5!1,Hi Day Flash:7!1,Med Day Flash:8!1,Night Flash:63#0::#0:0#B3122#2#1#0#0

  • You are right! I edit manually the serial number. It is working with my new rear light (serial# 3482710109) but how to add the old rear light (serial# 2409423427) so I can control both of them? I mean I would like to activate one of them at a time. Example: if the battry is dead on one rear light, I would like to deactivate that one and active the other that the battery is full. Or maybe having both "ON" at the same time having also my front light "ON".   Is it possible to do that?

  • You need to install "Bike Lights Control #2" widget and set the "Lights Configuration" app setting that I provide above (serial 3482710109). By doing this you will have two widgets, with the first one you will be able to control Ion RT200 + Flare RT 1 and with the second one you will control Ion RT200 + Flare RT 2.

  • Works perfectly that way!!!  Thanks

    Tell me if I am right about the "Primary", "Secondary" and "Tertiary":  Is it a way to configure upto three lights setups; but only one can be selected at a time via the Garmin Express IQ app three dots menu on "bike lights control". Cannot change between them on the device (Edge 830). Am I right?

  • That is correct, with Primary, Secondary and Tertiary configuration you can have up to three lights setups. You can also change between them without using Garmin Express/Mobile by tapping three time on the "Off" button which will open a menu where you can check the current configuration:

    EDIT: My bad, this feature is available only for Smart Bike Lights currently. For Bike Lights Control you can change the current configuration only by Garmin Express/Mobile at the moment.

  • OK, I tried the "Smart Bike Light" data field and it is working fine.  It would be nice to have that triple-click on the widget since you may have the code to do it easily... 

    Thanks for all!