Automatic DI2 gear shifting

Hi everybody,

I would like to build an app that allows automatic DI2 gear shifting based on cadence, heartrate or speed.
E.g. if your training goal is to drive with constant cadence, gear shifting is done by the app if your cadence leaves a predefined corridor.

Via Toybox.AntPlus you can get information about a connected derailleur, but I have nothing found how to shift gears.

Any ideas? Maybe basic ANT stuff?

Regards, Udo