Hello,
I assume you have the IoT-Gateway/controller connected to a Chirpstack (according to a different thread) and not just those two devices? Do you have it connected to IoT-Open as well? To get the input from the button to change a setting in the iot-controller there should be some logic somewhere reading the status and sending the command.
I do not have any of these devices my self so I dont know if I miss something.
The UC300 needs to have a way to receive commands. Perhaps a rest API?
Anyway tell us more and perhaps someone can guide you.