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 

  • I already have it, thank you

  • Hi maca88, for a long time the datafield works well. Since a view days the control mode S is not available on my Edge 530, only N and M. What can i do? Tanks for help.

  • Hi,

    If you don't see S anymore, then it is possible that the configuration was cleared out for some reason. Check in Garmin Express or Garmin mobile app if the "Lights Configuration" app setting is still set. If it's not, then you will have to reconfigure the lights, otherwise please provide the configuration, so that I can verify it.

  • Hi,

    i have reinstall/install the varia 516 sensor and the datafield, now control Mode S works. But if i change the control mode to N or M, so the control mode S is not available. After workaround reinstall/install control mode S works again. Thanks for help. 

  • I've got the same issue.

    I've been using the following configuration for many months without issue.

    I then updated the Dataflield App today when trying to tweek the config. After which I couldn't select Mode S.
    I had to delete the lights and app, and reinstall and returned to my original config (as below). And finally Mode S returned.

    However as soon as manually adjusted the lights (pressing the physical button) I can't reselect Mode S.

    1,1!Timer:1H]0#4587520,196641::1#1,1!:1:63:0:0D=1#6291461,1409482753::16711680#1,1!:1:8:0:0D=1#4:Ion 200 RT!Off:0!High:1!Day Flash:63!Night Flash:62#4:Flare RT!Night Steady:5!Day Flash:7!All-Day Flash:8!Night Flash:63#0::#0:0#0#0#B3121#2#1#1#0

  • Sorry for the delay. I turned out that I forgot to update the code related to built-in settings when adding support for Giant Recon HL1800 Smart light mode in version 0.27.0. I do apologize for the inconvenience. I've released a fix for this in version 0.27.1.

  • I can confirm V 0.27.1 fixed the problem.

    What great prompt support.

    Thank you.

  • Hallo,

    in the new version the datafield works only in control mode S without showing the selection of the control mods. If i use the widget Bike Light Control, i can change between N an M, after changing to the datafield on my Edge, the control mode S works automatically again.

  • Hi maca88,

    I love this data field, so good! 
    I liked the widget too on my 830 but I now moved to 840 so that can't be used anymore, correct? 

    Apart from that, I'm using the data field without problems but now I added something to my configuration and I get a ? instead of the light modes, picture below. 
    I see that it means "unknown light mode" but I'm not sure what I could do to fix that.

    My configuration is:

    1,1!ONOFF:1H}2#::1#6,6!Giorno:1:63:0:0Er1800,s-1800!Sera:1:62:0:0Es-1800,s3600!Notte:1:2:0:0Es3600,r1800!Rulli:1:0:0:0K=Rulli:!MTB:1:0:0:0K=MTB:!:1:63:0:0D=1#::1#5,5!Giorno:1:8:0:0Er1800,s-1800!Notte:1:63:0:0Es-1800,r1800!Rulli:1:0:0:0K=Rulli:!MTB:1:0:0:0K=MTB:!:1:8:0:0D=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#4,3:Flare RT:0:16777215!2,:-1,Off:0!1,All-Day Flash:8!1,Night Flash:63#0::#1:1#13!0,1:13!0,8#0#0#B4062#2#1#0#0

    Everything seems to be working except that, also the 1 field page is showing fine. 

    One last thing, any way to get the name of the modes bigger in the field? The size of "notte" in the picture below could be bigger.


    Thanks! 

  • Hi, sorry for the later reply.

    I liked the widget too on my 830 but I now moved to 840 so that can't be used anymore, correct? 

    That is correct, unfortunately Edge 840 does not support widgets anymore.

    now I added something to my configuration and I get a ? instead of the light modes, picture below. 

    Somehow your configuration is missing the mappings for the icons. Here is the corrected configuration:

    1,1!ONOFF:1H}2#4587520,196641::1#6,6!Giorno:1:63:0:0Er1800,s-1800!Sera:1:62:0:0Es-1800,s3600!Notte:1:2:0:0Es3600,r1800!Rulli:1:0:0:0K=Rulli:!MTB:1:0:0:0K=MTB:!:1:63:0:0D=1#6291461,1409482753::1#5,5!Giorno:1:8:0:0Er1800,s-1800!Notte:1:63:0:0Es-1800,r1800!Rulli:1:0:0:0K=Rulli:!MTB:1:0:0:0K=MTB:!:1:8:0:0D=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#4,3:Flare RT:0:16777215!2,:-1,Off:0!1,All-Day Flash:8!1,Night Flash:63#0::#1:1#13!0,1:13!0,8#0#0#B4062#2#1#0#0

    I am not sure how, but 4587520,196641 and 6291461,1409482753 values were not added to your configuration, which are used to map the light modes to icons.

    One last thing, any way to get the name of the modes bigger in the field?

    The text size was optimized to fit in the smallest field and currently it is not possible to make it bigger. For now I would suggest to use capital letters to make it more visible (Giorno -> GIORNO).