Automate UniFi controller updates via SSH with Telegram notifications
Ready for 3.0What this workflow does
This AI workflow has 8 nodes and runs on a schedule (every day at 13:00). Along the way it connects OpenAI and Telegram. It also calls dl.ui.com over HTTP.
How it runs
Trigger: On a schedule (every day at 13:00).
- HTTP Request: calls dl.ui.com
- Extract Codename + Date + Time Comparison (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Update package lists (SSH): uses SSH
- Upgrade UniFi (SSH): uses SSH
- Message a model (OpenAI): uses OpenAI
- Notify via Telegram (Telegram): uses Telegram
Services it uses
HTTP calls to: dl.ui.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - SSH
n8n-nodes-base.ssh - OpenAI
@n8n/n8n-nodes-langchain.openAi - Telegram
n8n-nodes-base.telegram
From the author
Overview Automate UniFi Controller updates on self-hosted instances. This workflow checks the official UniFi Debian repo for a fresh release in the last 24 hours and, if found, upgrades the unifi package via SSH. It can also summarize changes and ping you on…