Via Home Assistant UI:
- Go to Settings → System → Logs
- Search for "ev_smart_charger" or "evsc"
- Look for ERROR or WARNING messages
Enable Debug Logging:
Add this to your configuration.yaml:
logger:
default: info
logs:
custom_components.ev_smart_charger: debugThen restart Home Assistant and check logs again.
Symptoms:
- Integration fails to start
- Logs show "Failed to create helpers"
Solution: Create the helpers manually via Home Assistant UI:
- Go to Settings → Devices & Services → Helpers
- Click "+ CREATE HELPER"
- Create these three helpers:
Helper 1: EVSC Forza Ricarica
- Type: Toggle
- Name:
EVSC Forza Ricarica - Icon:
mdi:power - Entity ID:
input_boolean.evsc_forza_ricarica
Helper 2: EVSC Smart Charger Blocker
- Type: Toggle
- Name:
EVSC Smart Charger Blocker - Icon:
mdi:solar-power - Entity ID:
input_boolean.evsc_smart_charger_blocker_enabled
Helper 3: EVSC Solar Production Threshold
- Type: Number
- Name:
EVSC Solar Production Threshold - Icon:
mdi:solar-power-variant - Entity ID:
input_number.evsc_solar_production_threshold - Minimum:
0 - Maximum:
1000 - Step:
10 - Unit:
W
Symptoms:
- Integration loads but automations don't work
- Logs show "Failed to set up automations"
Check:
- Verify all configured entities exist
- Check entity IDs are correct
- Charging detection (v2.2.0): map an EV charging-power sensor (the source of truth for "is the car charging") and/or a charger status sensor. The status sensor is now optional; if mapped it should report states like
charger_charging,charger_free,charger_end. If you map a charging-power sensor, verify the diagnosticcharging_power_wtracks real draw (a flat 0 W while charging = reversed sign → fix with a| abstemplate).
Symptoms:
- Logs show "Entity not found: sensor.xxx"
Solution:
- Go to Settings → Devices & Services → EV Smart Charger
- Click CONFIGURE
- Verify all entity selections are correct
- Make sure the entities actually exist in your system
After fixing issues, verify everything works:
-
Check Helpers Exist:
- Go to Settings → Devices & Services → Helpers
- Search for "evsc"
- You should see 3 helpers
-
Test Smart Charger Blocker:
- Enable
EVSC Smart Charger Blockerhelper - Disable
EVSC Forza Ricarica(kill switch must be OFF) - Plug in your car at night
- Charger should be blocked automatically
- Enable
-
Check Logs:
Settings → System → LogsLook for:
- "✅ EV Smart Charger setup completed successfully"
- "Smart Charger Blocker automation set up successfully"
Symptoms:
- Night Smart Charge starts, then stops soon after.
- Repeated debug line:
Already completed today - inactive.
Expected behavior at home battery minimum SOC:
car_ready=ONfor today: Night session should switch from BATTERY to GRID and continue.car_ready=OFFfor today: session should stop and be marked terminal (completed_today).
What to check in logs:
- Transition path:
Home battery threshold reached+switching to GRID fallback+Grid charge mode - Terminal path:
Session state: completed_today
Symptoms:
- EV charges above the configured target after a runtime target change.
- Charging continues after sunset while profile is still
solar_surplus. - Home battery drains unexpectedly in evening/night.
Expected behavior (current):
Target hard cap enforcedstops charge at first SOC sample>= target.- At sunset with charger ON in
solar_surplus:- try Night Smart Charge handover first,
- if rejected/fails, stop charger immediately (safe fallback).
- If EV SOC data is stale, integration logs
SOC stale (continue)and continues by policy (no automatic stale-stop).
What to check in logs:
Target hard cap enforcedSunset transitionHandover acceptedorSTOPPED: Sunset transition safe stopSOC stale (continue)with age in seconds
Symptoms:
- Same log line appears multiple times in the same second.
Expected behavior:
- File logging uses a single global file handler.
- Daily file path format:
custom_components/ev_smart_charger/logs/<year>/<month>/<day>.log
Checks:
- Ensure
switch.evsc_enable_file_loggingis ON only once (no rapid toggle loops). - Reload integration once after updating to current version.
- Verify that new logs no longer duplicate the same event line.
If issues persist:
-
Collect Full Logs:
- Enable debug logging (see above)
- Restart Home Assistant
- Copy relevant log entries
-
Report Issue:
- Go to: https://github.com/antbald/ha-ev-smart-charger/issues
- Include:
- Home Assistant version
- Integration version
- Full error logs
- Steps to reproduce
Q: Can I use the integration without helpers? A: No, the helpers are required for the automations to work.
Q: Will I lose helper settings if I update? A: No, helpers persist across updates. They're separate entities in Home Assistant.
Q: Can I change helper entity IDs? A: No, the integration expects specific entity IDs. Use the exact IDs listed above.
Q: Integration loads but nothing happens when I plug in the car? A: Check that:
- Smart Charger Blocker helper is enabled
- Forza Ricarica helper is disabled
- It's actually nighttime or solar production is below threshold
- The integration sees the car as charging: a mapped charging-power sensor reads above ~200 W, or (fallback) the charger status sensor reports a charging state. Since v2.2.0 either signal works; if neither is mapped/reporting, charging detection (and the green dashboard banner) can't engage.