Automating SeaTable and MQTT takes no code: a ready-made scenario does the routine for you.
Starts when: CRON Monday 2:45 am
Then: Send Zigbee2MQTT backup request
Then: SFTP zip file content
Starts when: MQTT Trigger - Backup Response
Then: Parse JSON Object from Message Text
Then: Convert to File - base64 to binary
You can launch this SeaTable + MQTT integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.