thank you for your quick response...
Source code you do not need, you can configure that directly in cayenne. Means if you like to set the output, just pust "Digital Out 1" in the cayenne interface.
You can then select and add custom triggers (time schedules, or other Inputs to remotly switch this on).
The really nice devices, which allow you to control things over the LoRaWAN (class C devices which always listening) can you buy here directly: