一个强大的 Home Assistant 自定义集成,可将您的智能家居视觉化为交互式图表,揭示各个实体之间的隐藏关系,
Home Assistant Entity Visualizer
A powerful Home Assistant custom integration that visualizes your smart home as an interactive graph, revealing the hidden relationships between your entities, devices, areas, automations, groups, and zones.
Screenshots
Interactive Network Visualization
Visualizing relationships in an en suite bathroom setup - showing devices, entities, areas, and their connections
Complex Entity Relationships
Exploring solar system entities with templates, sensors, and automation relationships
✨ Key Features
Advanced Interactive Interface
Clean Design: Consistent rounded boxes with subtle light color palette
Entity Icons: Visual icons for each domain ( lights, switches, automations, etc.)
Focus Highlighting: Enhanced visual feedback for the currently selected entity
Dual Layout Modes: Hierarchical for simple graphs, force-directed for complex networks
Native HA Integration: Single-click opens Home Assistant entity details dialogs
Double-Click Navigation: Smooth, intuitive entity exploration through relationship networks
Comprehensive Relationship Detection
Device Relationships: Physical device to entity mappings
Area & Zone Hierarchies: Spatial organization and containment with optional filtering
Group Support: Light groups, switch groups, media player groups, and traditional groups
Label Organization: Home Assistant label-based groupings and classifications
Automation Dependencies: Complete trigger and control relationship chains with UUID resolution
Template References: Advanced parsing for complex multi-line Jinja2 templates
Alert Monitoring: Home Assistant alert entity relationships
Bidirectional Navigation: True symmetrical relationship discovery and visualization
Advanced Visualization
Interactive Navigation: Double-click any node to explore its neighborhood smoothly
Automation → Entity: Control relationships (automations modify entity states)
Template → Entity: Dependency relationships (templates reference other entities)
Alert → Entity: Alert monitoring relationships
Performance
Lazy Loading: Only loads neighborhoods on demand
Efficient Algorithms: Optimized graph traversal and layout algorithms
Caching: Smart caching of relationship data
Responsive: Handles large smart home setups efficiently
Development & Testing
This project includes comprehensive testing infrastructure:
bash
# Run unit tests
python tests/test_runner.py
# Validate code syntax
python tests/validate_code.py
# Test file serving
bash tests/test_file_serving.sh
See /tests/README.md for detailed testing documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Development Setup
Fork and clone the repository
Copy to your HA custom_components/ directory for testing
Make your changes
Run the test suite
Submit a pull request
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Bug Reports & Feature Requests
Please use the GitHub Issues to report bugs or request features.
Acknowledgments
Built on the excellent vis.js visualization library
Inspired by the Home Assistant community's need for better entity relationship visualization
Thanks to all contributors and users who provided feedback and testing
Project Status
This project is actively maintained and production-ready. Current version: 0.8.17
Major Recent Updates
v0.8.17 - Template Select Support ✨
** Template Select Fix**: Added support for options field in template select entities
** Enhanced Relationships**: Template select helpers now properly show entity dependencies
** Select Action Support**: Detects entity references in select_option actions
v0.8.10 - "No visualisations" Error Fix
** Graph Loading Fix**: Fixed critical "'NoneType' object is not iterable" error preventing visualization
️ Defensive Programming: Added comprehensive error handling throughout graph building pipeline
** Safe Fallbacks**: Graph service returns empty results instead of crashing on errors
v0.8.9 - Critical Hotfix
** Boot Failure Fix**: Fixed critical issue where v0.8.8 prevented Home Assistant from starting