Welcome to T2 AutoTron, a visual node-based automation editor for smart home control. This guide will help you get up and running quickly.
- Home Assistant Add-on - Easiest, runs inside HA
- Standalone Installation - Run on any PC/server
- In Home Assistant, go to Settings → Add-ons → Add-on Store
- Click ⋮ (three dots) → Repositories
- Add:
https://github.com/gregtee2/home-assistant-addons - Find T2AutoTron in the store and click Install
- After installation, click Start
- Click Open Web UI or find T2AutoTron in the sidebar
Once T2AutoTron opens, click the ⚙️ Settings button in the Control Panel (right side) to configure:
Your location is used for sunrise/sunset calculations and weather features.
For Home Assistant Add-on Users: Location is auto-filled from your Home Assistant configuration! You'll see a green confirmation message in Settings. No action needed.
For Standalone Users:
- Enter your city name in the City field
- Click the 🔍 Search button - coordinates and timezone auto-fill
- That's it!
If you want weather-based automations:
- OpenWeatherMap API Key: Get a free key at openweathermap.org
- Ambient Weather: API key and Application key from ambientweather.net
To receive automation notifications on your phone:
- Bot Token: Create a bot via @BotFather on Telegram
- Chat ID: Send a message to your bot, then visit
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
Control Hue lights without going through HA (lower latency):
- Bridge IP: Your Hue bridge IP address (find in Hue app)
- Username: Press the Hue bridge button, then use the pairing process
Note: Home Assistant connection is automatic in the add-on - no token needed!
After entering your settings, click Save. Settings persist across add-on restarts.
Before you start, make sure you have:
- Node.js 18+ installed (download)
- A Home Assistant instance (optional but recommended)
- Any smart devices you want to control:
- Philips Hue – Works with or without HA (direct bridge API)
- TP-Link Kasa – Works with or without HA (direct local API)
- Other devices – Via Home Assistant integration
# Navigate to the project
cd v3_migration
# Install backend dependencies
cd backend
npm install
# Install frontend dependencies
cd ../frontend
npm installTerminal 1 - Start Backend:
cd v3_migration/backend
npm startTerminal 2 - Start Frontend:
cd v3_migration/frontend
npm run devOpen your browser to: http://localhost:5173
No need to edit config files! Use the built-in Settings panel:
- Click 🔧 Settings & API Keys in the dock (top-left)
- Enter your credentials for each integration you want to use:
- Home Assistant: Your HA URL and Long-Lived Access Token
- Philips Hue: Bridge IP and username
- OpenWeatherMap: API key for weather nodes
- Telegram: Bot token and chat ID for notifications
- Click Test Connection to verify each one works
- Click Save Settings - done!
Tip: You only need to configure the integrations you'll actually use. Start with just Home Assistant!
Getting a Home Assistant Token:
- Go to your Home Assistant Profile (click your username)
- Scroll down to "Long-Lived Access Tokens"
- Create a new token and copy it
The floating dock in the top-left provides:
- Graph Tools: Save, Load, Import, Clear
- Connection Status: Shows what's connected and device counts
- Settings: Configure API keys and integrations
- Right-click to open the context menu and add nodes
- Drag from output sockets to input sockets to connect nodes
- Scroll to zoom in/out
- Middle-click drag to pan the canvas
- Event Log: Shows real-time device state changes and triggers
- Upcoming Events: Shows scheduled automation events
Let's create a simple "toggle light on button press" automation:
- Right-click the canvas
- Navigate to Inputs → Pushbutton
- Click to place it
- Right-click the canvas
- Navigate to Home Assistant → HA Generic Device
- Click to place it
- Drag from the Pushbutton's output (right side)
- Drop onto the HA Device's trigger input (left side)
- In the HA Generic Device node, click "Add Device"
- Select your light from the dropdown
- Set Trigger Mode to "Toggle"
Click the pushbutton - your light should toggle!
| Node | Purpose |
|---|---|
| Pushbutton | Manual trigger button |
| Integer Selector | Pick a number value |
| Time of Day | Outputs true during specified hours |
| Sunrise/Sunset | Triggers at solar events |
| Node | Purpose |
|---|---|
| AND | All inputs must be true |
| OR | Any input can be true |
| Comparison | Compare two values |
| Conditional Switch | Route signals based on conditions |
| Node | Purpose |
|---|---|
| HA Generic Device | Control any Home Assistant entity |
| HA Device State | Read device states |
| Kasa Plug | Control TP-Link Kasa devices |
| Node | Purpose |
|---|---|
| HSV Control | Set hue, saturation, brightness |
| Color Gradient | Animate between colors |
| All-in-One Color | Full color picker |
Click 💾 Save in the dock to save to the server.
- After saving, your graph is in
v3_migration/Saved_Graphs/ - You can also use browser localStorage (auto-saved)
Click 📂 Import File to load a saved .json graph.
Click 🔧 Settings & API Keys to configure:
- Home Assistant: URL and access token
- Weather Services: OpenWeatherMap API key
- Philips Hue: Bridge IP and username
- Telegram: Bot token and chat ID for notifications
Each section has a Test Connection button to verify your settings.
# Check if port 3000 is in use
netstat -ano | findstr :3000
# Kill the process if needed- Check browser console (F12) for errors
- Clear Vite cache:
rm -rf v3_migration/frontend/node_modules/.vite - Restart with
npm run dev -- --force
- Verify HA_HOST and HA_TOKEN in Settings
- Make sure your HA instance is accessible
- Check the "Test Connection" button in Settings
- Check the Connection Status in the dock
- Make sure backend is running and shows "Connected"
- Verify device is online in Home Assistant
- Read
PLUGIN_ARCHITECTURE.mdto create custom nodes - Check
RETE_NODE_GUIDE.mdfor advanced node patterns - Browse existing plugins in
backend/plugins/for examples
- Check the browser console (F12) for error messages
- Look at the Event Log panel for automation feedback
- Review the README.md for API documentation
Happy automating! 🏠✨