How drrcastro/leafcanwifi works
This repository provides an ESPHome-based Nissan Leaf ZE1 CAN monitor. The main workflow is to listen to the vehicle’s EV-CAN bus, decode telemetry on an ESP32, and expose it to Home Assistant; a fallback web UI offers access when Home Assistant is unavailable. The README also describes BMS GID filtering and safety-aware 12V polling. Source excerpts are unavailable, so relationships below reflect documented behavior rather than inspected implementation. The dashboard layout is a separate Home Assistant presentation artifact.
Main entry points: leafwifize1.yaml Telemetry decoding · dashboard_layout.yaml Lovelace dashboard
Components 10
Vehicle telemetry
- EV-CAN bus
ESPHome firmware
- ESPHome configuration
leafwifize1.yaml - CAN capture
leafwifize1.yaml - Telemetry decoding
leafwifize1.yaml - GID filtering
leafwifize1.yaml - Smart polling
leafwifize1.yaml
User interfaces
- Fallback web UI
leafwifize1.yaml - Lovelace dashboard
dashboard_layout.yaml
Other components
- Nissan Leaf ZE1
- Home Assistant
Connections 8
- Nissan Leaf ZE1 → EV-CAN bus: emits frames
README.md - EV-CAN bus → CAN capture: provides frames
README.md - CAN capture → Telemetry decoding: feeds decoding
README.md - Telemetry decoding → GID filtering: filters GIDs
README.md - Telemetry decoding → Home Assistant: exposes telemetry
README.md - Telemetry decoding → Fallback web UI: provides data
README.md - Smart polling → EV-CAN bus: polls conditionally
README.md - Home Assistant → Lovelace dashboard: displays telemetry
README.md