- Real-time power monitoring from Home Assistant entities
- Visual gauges with dynamic gradients for Solar, Load, and Battery
- Line charts showing power history with Braille markers
- Animated status indicator with live updates
- Battery monitoring - SOC, voltage, current, temperature
- Temperature warnings with dynamic color coding
- Grid monitoring - voltage, frequency, power factor
- Daily energy tracking - charge, discharge, import, export
- Trend indicators (Rising, Falling, Stable)
- Configurable update interval (realtime ~100ms or 1-10s)
- macOS native - Intel and Apple Silicon
brew tap racksync/homebrew-emon-tui
brew install emon-tuigit clone https://github.com/racksync/emon-tui.git
cd emon-tui
cargo build --releaseThe binary will be at target/release/emon.
On first run, emon creates ~/.emon/config.toml. Edit it with your Home Assistant details:
[home_assistant]
url = "http://homeassistant.local:8123"
token = "your_long_lived_access_token_here"
# System Settings
max_solar_power = 18000.0 # Max solar in Watts (for gauge scaling)
battery_float_voltage = 54.0 # Battery float voltage threshold
battery_capacity_kwh = 15.36 # Battery capacity in kWh
history_duration = "120s" # History duration (s/m/h)
timezone = "Asia/Bangkok" # Display timezone
max_daily_energy = 100.0 # Max daily energy for charts
fetch_interval_seconds = 5 # Update interval (0 = realtime)[home_assistant.entities]
# Core Power Sensors (Required)
solar_production = "sensor.solar_production"
grid_import = "sensor.grid_import"
grid_export = "sensor.grid_export"
load_consumption = "sensor.load_consumption"
# Optional: Battery, Inverter, Grid, Daily Energy, Statistics...
# See config.toml.example for all 62 sensors- Open Home Assistant → User profile (bottom left)
- Scroll to "Long-Lived Access Tokens"
- Click "Create Token" → Name it "emon"
- Copy token to
config.toml
# Run
emon
# Show version
emon -v
# Custom config
emon -c /path/to/config.toml
# Help
emon -hControls: Press q to quit
- Solar production • Grid import/export • Load consumption
- Power • Voltage • SOC • Temperature • Current
- Temperature • Voltage • Status • Frequency
- Voltage • CT power • Power factor
- Battery charge/discharge • Grid import/export • Load • PV
- All-time peaks • Daily peaks • PV forecast • Consumption totals
| Metric | Green | Yellow | Red |
|---|---|---|---|
| Battery SOC | >70% | 30-70% | <30% |
| Voltage | ≥220V (White) | 210-220V | <210V |
| Temperature | <35°C (White) | ≥35°C | - |
| Current | <80A (White) | 80-100A | ≥100A |
No data showing?
- Verify entity IDs match Home Assistant exactly
- Check sensors return numeric values (Watts)
- Press any key to dismiss error popup
Connection issues?
- Verify Home Assistant URL is accessible
- Check token is valid and not expired
- Ensure Home Assistant is running
History chart empty?
- Increase
history_durationin config - History is in-memory only (not persistent)
# Build
cargo build
# Run tests
cargo test
# Run clippy
cargo clippy
# Format code
cargo fmt- ratatui - TUI framework
- tokio - Async runtime
- reqwest - HTTP client
- serde - Serialization
- chrono - Date/time handling
RACKSYNC CO., LTD. is a technology company based in Thailand specializing in:
- Home Automation - Smart home solutions with Home Assistant
- DevOps Solutions - CI/CD, monitoring, and infrastructure
- Cloud Infrastructure - Docker, Kubernetes, and cloud services
- System Integration - End-to-end automation solutions
| Project | Description | Stars |
|---|---|---|
| hass-addons-suite | Home Assistant Add-ons | |
| hass-addons-cloudflared-tunnel | Cloudflare Tunnel Add-on | |
| hass-addons-multipoint-zigbee | Zigbee2MQTT Coordinator | |
| emon-tui | Energy Monitoring TUI |
30 repositories • 71 stars • View all projects
MIT © RACKSYNC CO., LTD.
Star us on GitHub — it helps!
