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 

Known issues:

1. Unable to use Tempe Visualizer or TyreWiz Data Field alongside Smart Bike Lights:
https://forums.garmin.com/developer/connect-iq/i/bug-reports/lightnetworklistener-onbikelightupdate-not-called-when-certain-data-fields-are-installed

  • Garmin have only 2 options for light control to assign to any button (Di2 or remote controller): 
    - "Lights Change Mode"
    - "Lights on/Off"

    Thanks for the information. Based on the description of how it works, it appears to be the same as using Edge Remote Control, except that instead of double clicking, you need to press and hold.

    Also I noticed that sometimes your app "forget" which mode I selected and stop working (on screen it show that my press works - select mode, but in reality it didn't change anything)

    Noted, I will see what I can do about it.

  • Based on the description of how it works, it appears to be the same as using Edge Remote Control, except that instead of double clicking, you need to press and hold.

    Di2 D-Fly button (on each shifter) have 3 options:
    - single click
    - double click
    - click and hold

    And, I can assign function to any of these. But for light there is only two options which I can assign to these buttons:
    - "Lights Change Mode"
    - "Lights on/Off"

    In my configuration, I assign light control on left shifter - single click & double click.
    On the right shifter - I swipe pages forward (single click), swipe pages backward (double click), and return to map view (click and hold)

  • I noticed that now when I search for new sensors, I see something like that:
    Connect IQ SBL HL 52979, Connect IQ SBL TL 43230, etc...

    I guess this is from your app, right?

    • SBL stands for Smart Bike Light.

    • HL stands for Head Light.

    • TL stands for Tail Light.

  • Yes, that is from the Smart Bike Lights data field. These sensors are only used when the Individual Light Network feature is enabled.

    Due to a CIQ bug that causes the Edge 1040 to reboot, I had to always enable scanning for new sensors, even if the Individual Light Network is not in use.

    Once Garmin fixes this bug, I will update the data field so these sensors will only appear when the Individual Light Network feature is active.

  • Hi Maca88,

    Can you help me fix it?
    Magene L508 taillight has new firmware
    code is updated
    4 – Solid
    5 - Peloton
    6 – Flashing
    7–Quickly flash
    62 – Pulse
    63–Rotation

    Thank you very much

  • Hi,

    Light modes have been updated in the Lights Configurator.

  • Hi maca88! Question about Magene at1200/1600. In yours configurator at1600 has 2 custom modes but at1200 doesn't. This models are similar and differ only in max output 1200 vs 1600. I think ids for this modes are exactly identical. 

  • Do you have AT1200? What id's do you see? (with empty config)
    And if that the same, use AT1600 - check if all modes works for you.
    Btw, 2 custom modes you can use only if you have add 10 presets - and only last two will be custom modes which you can use (at least this way works AT1600, not sure if AT1200 is the same, you can check and confirm here)

  • Hi) yes, I bought at1200 because it's more than enough for me. I tried 1200 and 1600 configs and works good. At1200 in phone application has custom modes too. 

    Another question to you, SimSim. Did you disable auto sleep for this light so after day of unusing light is discoverable for Edge? I found the option in phone config application to disable ant+ auto off but after some time I need to push power button on light to awake wireless function. On my other lights (bontrager ion pro, ion 200, flare rt) lights are discoverable until battery became fully discharged (for ion pro it's about month in stand-by mode)

  • At1200 in phone application has custom modes too

    Seems it have only difference: max lumens 1600 or 1200. I bought 1600, because I can create custom mode 1200 also :), but also have 1600 :) (not sure if I will use this, but I will have this option)

    Did you disable auto sleep

    Yes, to work with Ant+ and 'Smart Bike Lights" this needs to be disabled "Auto Shut-off When Light Off", because if this app set light Off it will go sleep and disconnect from Ant+, and you will need to wake up by pressing button...
    For me, because of this, app loose connection constantly, because after sleep it can't turn On, and I need manual press - so I disabled this - and now works fine Slight smile