Request and Receive Zigbee Backup from zigbee2mqtt and Save It via SFTP - n8n Workflow | Neura Market
Request and Receive Zigbee Backup from zigbee2mqtt and Save It via SFTP
A single workflow with 2 flows/paths that combine to handle the backup sequence for Zigbee device configuration from HomeAssistant / zigbee2mqtt. This provides a way to automate a periodic capture of Zigbee coordinators and device pairings to speed the recovery process when/if the HomeAssistant instance needs to be rebuilt. Setting up similar automation without n8n (e.g., shell scripts and system timers) is considerably more challenging. n8n makes it easy and this template should remove any other excuse not to do it.
## Flow 1
- Triggered by Cron/Timer
- Set whatever interval for backups
- Sends MQTT message to request zigbee2mqtt backup (via separate message)
## Flow 2
- Triggered by zigbee2mqtt backup message
- Extracts zip file from the message and stores it somewhere, with a date-stamp in the filename, via SFTP
## Setup
- Create an MQTT connection named **MQ Account** with the appropriate protocol (mqtt), host, port (1883), username, and password
- Create an SFTP connection named **SFTP Zigbee Backups** with the appropriate host, port (22), username, and password or key.
## Reference
- [This article](https://home-assistant-guide.com/changelog/zigbee2mqtt/zigbee2mqtt-1-26-0/you-can-now-back-up-your-complete-zigbee2mqtt-configuration/) describes the MQTT parts.
Platform
n8n
Category
Internet of Things
Price
Free
Creator
Hubschrauber
ftp
code
mqtt
mqttTrigger
convertToFile
scheduleTrigger
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.