Currently, this project is quite complex to implement due to the Hub/desk module combo and the ZigBee communication. I think it might be time to simplify this project using a simple Raspberry Pi Zero. There, WiFi and GPIO handling can all happen on one device.