One way is to set a variable with MQTT and have a homegear script which reacts to a variable change.
https://doc.homegear.eu/data/homegear/communication_protocols.html