Io-homecontrol / velux - something's in the bush

Most probably via scenes …

(The device can record scenes which you can then start via REST interface. Every scene may contain several devices which have a type (roller shutters have typeId=2, windows have typeId=4. )).