Automate UniFi controller updates via SSH with Telegram notifications
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER 🎉 Early Black Friday Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
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 Telegram. Sticky notes are included to guide setup.
How it works
- Schedule runs daily (default 13:13).
- HTTP Request fetches
InReleaseand parsesCodename+Date. - IF gate continues only if the repo changed within 24h.
- SSH runs:
apt-get --allow-releaseinfo-change update apt-get upgrade -y unifi - (Optional) LLM creates a short summary → Telegram sends it.
Setup
- Bind credentials: SSH (required), OpenAI (optional), Telegram (optional).
- Set env var
TELEGRAM_CHAT_IDfor notifications. - Adjust the Schedule Trigger to your maintenance window.
- Import inactive, test once, then activate.
Customize
- Change the 24h freshness window in the Code node.
- Swap Telegram for Slack/Email if preferred.
- Add pre/post steps (backups, restarts) around the upgrade.
Safety
Test on a non-production controller first. No hardcoded secrets—uses n8n credentials and environment variables. If you want approval before upgrades, stop after the IF gate and notify only.