You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add Today's Target Sensors for EV and Home Battery (v1.3.26)
New Features:
- Added two new sensor entities for easy dashboard integration:
- sensor.evsc_today_ev_target: Shows today's EV SOC target (pure numeric value)
- sensor.evsc_today_home_target: Shows today's Home battery SOC target (pure numeric value)
Technical Details:
- Both sensors return numeric values with % unit of measurement
- Include 'day' attribute (current weekday name)
- Auto-update when Priority Balancer calculates priority
- Persist state across HA restarts (RestoreEntity)
- Grouped under "EV Smart Charger" device
Benefits:
- ✅ Simple numeric values perfect for gauge cards, graphs, automations
- ✅ No template parsing needed in dashboard
- ✅ Automatic daily updates at midnight
- ✅ Easy integration with conditional cards and scripts
User Questions Answered:
1. Battery Support Amperage check frequency: Maximum 1 minute (periodic check only, no real-time listener)
2. EV_FREE mode behavior: Confirmed - uses ONLY solar surplus, NO home battery support (as designed)
3. Today's targets: Implemented as two separate sensors for maximum dashboard flexibility
Files Modified:
- const.py: Added HELPER_TODAY_EV_TARGET_SUFFIX, HELPER_TODAY_HOME_TARGET_SUFFIX, VERSION = "1.3.26"
- sensor.py: Created EVSCTodayEVTargetSensor and EVSCTodayHomeTargetSensor classes (~106 new lines)
- priority_balancer.py: Added sensor discovery and update logic (~15 new lines)
- manifest.json: Updated version to 1.3.26
Total Sensors: 6 (was 4, now 6)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments