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

  • just install garmin express on pc -> apps -> find SBL app and click 3 dots. OR same from garmin IQ - data fields and config

  • Hi, sorry for the late reply.

    I only see one issue with the configuration where there is 10 minutes gap between UTDAY and UTNIGH where the light will turn off:
     

    you need to update UTNIGH start time to Sunset-10min to fix that

  • Coospo TR70 is now listed in the Lights configurator, thanks for the pull request! 

  • I am trying to use the Magicshine EVO 1700 UT with a Garmin Edge 1040 Solar.

    So far, I have found the following ANT+ mode mappings for this light:

    • Mode 2 → Low
    • Mode 3 → Medium
    • Mode 4 → High
    • Mode 6 → High Beam Day Flash
    • Mode 7 → High Beam Night Flash

    Are you sure that Mode 2 is Low and not High?

    I would expect 2 to be High and 4 to be Low, which would align with Magicshine HORI 1300 PRO and Garmin UT800 modes: https://github.com/maca88/SmartBikeLights/issues/141 

  • Yep, 2 - High, 4 - Low for standart beam. Also there's a "high-beam" mode, and it's not clear how to turn it on or what the codes are for it.Simple config :

    #:0,1530815909:5592405:-65536,1022#1,1!:1:0:0:0D=1###6,6:EVO 1700 UT:22015:16733440:-1!1,OFF:0!1,Low:4!1,Medium:3!1,High:2!1,Day Flash:7!1,Night Flash:6##0::#0:0#13!:123!#85#0##B4634#99##0#0
    

  • Hello maca88,
    thank you very much for your helpful answer.

  • Hi  ,
    I will appreciate if you can help me configure the desired behaviour for my setup.
    I have edge 1050, Magene AT1200 and Varia vue 820.
    I want when timer starts, lights to start too. But then, depending on the light/daytime:
    1. during the day both lights to day flash
    2. at night:
     - front light dependant on speed - below 10km/h low, between 10 and 20 medium and above 20 high
     -   varia in night pulse.
    Then when timer is paused and more than 3 minutes are elapsed, lights to stop. On timer resume - start again in the respective mode.
    When timer is stopped - both lights stop too.

    Is this complex logic possible?
    Thank you in advance.

  • Hi.
    It seems Magene has a new version of the AT1200/1600 lights, now named AT1200S/1600S. Unfortunately the light modes seem to be different from the regulra AT1200/1600...
    Here is what I was able to see with the widget, though I've been guessing a bit about what to call each mode...:
    1 - Overdrive steady beam
    2 - Overdrive steady beam
    3 - High steady beam
    4 - Medium steady beam
    5 - Low steady beam
    6 - Slow blinking
    7 - Day (or Fast) blinking
    63 - Night (or High/Low) blinking
    62 - Varying pattern blinking
    61 - Medium steady beam
    60 - Overdrive steady beam
    59 - Overdrive steady beam
    I don't mind helping out with adding this to the code, if you would like me to do that...