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 

  • EN 0, 0, 0, 1, 1, 12, 14, 19, 23

  • Thanks for the paddings! I see that you changed from 15 to 14. Is 14 the correct one?
    Also, it seems like that with Edge 1050, the fonts are almost aligned with the simulator. Simulator values:
    EN 0, 0, 0, 0, 1, 12, 14, 19, 23

    The only difference seems to be the fourth font ("3.7 kHW") if 14 is the correct one on the real device. Here is the alignment screen from the simulator:

    Can you confirm that it looks the same on the real device (mostly interested in the fourth font)?

  • hi,

    couldn't locate in this conversation, but I'm having trouble figuring out how to *constantly* enable S mode on the Garmin 1050.

    it seems that Garmin? switches to N or M modes on its own

    lights config:

    ###0,73535488::255#4,4!saver:1:7:2:0I]-1]0!tunnel:1:7:0:0G{1!night:1:6:0:0Es-1800,r300!:1:0:0:0D=1##6,5:rct715:0:0!2,:-1,OFF:0!1,dayflsh:7!1,nightflsh:6!1,solid:4!1,peloton:5#0::#0:0#123!:123!#0#0#B4440##11#0#0

  • Hi,

    you need to tick the "Force Smart Mode" checkbox. Here is the updated configuration:
    ###0,73535488::255#4,4!saver:1:7:2:0I]-1]0!tunnel:1:7:0:0G{1!night:1:6:0:0Es-1800,r300!:1:0:0:0D=1##6,5:rct715:0:0!2,:-1,OFF:0!1,dayflsh:7!1,nightflsh:6!1,solid:4!1,peloton:5#0::#0:1#123!:123!#0#0#B4440##11#0#0

    Once you put the light in Smart mode, it will not go to "M" by itself anymore unless you tap on the the light icon or any of the buttons to change the light mode. 

  • @maca88 , wow, it makes the 516 works "like a 515", nealry, wonderfull

    BUT ;-)   When i have the tail light 516 allone in the config, I could add radar as filter, if i add an ut800 as front light, I could not add radar as filter anymore 8in rt516)

    Do i miss something

  • I am assuming that you have either Edge 130 or Edge 520 which have only 32KB memory available for the data field. Due to memory limitation on these devices it is possible to have the radar filter only when one light is paired, with two lights it would go out of memory and crash the data field.

    EDIT: You can try your luck by selecting "Edge 520 Plus" in the configurator and setup the radar filter with both lights. It may not crash the data field, but I can not guarantee that. I think it will crash when the radar will detect five or more vehicle behind you, otherwise it may work fine. 

  • Hi, yes it’s a 130.

    many thanks for the explanation.

    seems time to get an new Edge Grinning

  • Hi!

    I have Edge 530 with Flare RT and ION 200 RT. When I disconnect light network after bike riding, only flare power off, headlight (ion200rt) don't power on/off, only pressing power button.

    Bike Light Control

    #4587520,196641:0,50536:16776960##6291461,1409482753:0,32024:16711680##6:Ion 200 RT!Off:0!High:1!Medium:2!Low:5!Day Flash:63!Night Flash:62#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#2#1#0#0

    Smart Bike Light

    #4587520,196641:0,50536:1#1,1!:1:63:0:0D=1#6291461,1409482753:0,32024:1#1,1!:1:7:0:0D=1#6:Ion 200 RT!Off:0!High:1!Medium:2!Low:5!Day Flash:63!Night Flash:62#6:Flare RT!Off:0!Day Steady:1!Night Steady:5!Day Flash:7!All-Day Flash:8!Night Flash:63#0::#0:0#0#0#B3121#2#1#0#0

  • Hi,

    Sorry for the late reply. 

    When I disconnect light network after bike riding, only flare power off,

    How do you disconnect the light network after bike riding, are you going every time into Garmin Sensors menu to disable the lights?

    I would propose you to use the global filter which will make sure that the lights are only on when an activity is running. Here is the updated configuration for Smart Bike Lights:

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

    Make sure that the lights are in Smart mode (S displayed inside the light icon) in order the configuration to work properly.