Manual notes to monitor and control your SolarEdge EV Charger directly in Home Assistant using shell scripts for the private SolarEdge API.
If you prefer, I have a HACS plugin available from this custom repository: https://github.com/briadelour/solaredge-evcharger-ha
NOTE: This is temporary while working to get this into the more complete HA integration here: https://github.com/Solarlibs/solaredge-web
This integration provides comprehensive monitoring and control of your SolarEdge EV Charger.
- Charger Status - Current state (Charging, Plugged In, Not Connected)
- Charging Power - Real-time power in kW (properly displays kW, not W!)
- Session Energy - Energy delivered in current session (kWh)
- Session Duration - How long the current session has been active
- Connected Vehicle - Name of the connected vehicle
- Charger Mode - Manual or Auto (Solar/Schedule)
- Connection Status - Detailed connection information
- Session Distance - Estimated driving range added (km & miles)
- Excess Solar Status - Shows if Excess PV charging is enabled/disabled โจ
- Session Solar Usage - Solar energy used in session (when Excess PV enabled) โจ
- Charging Schedules - List of active charging schedules with times โจ
- Next Scheduled Charge - Timestamp of next scheduled charge โจ
- Vehicle Connected - Is a vehicle plugged in?
- Currently Charging - Is charging active?
- Schedule Enabled - Is a charging schedule configured?
- Excess Solar Enabled - Is excess solar charging enabled? โจ
- Start Charging - Manually start charging at any time
- Stop Charging - Manually stop charging
- Smart dashboard buttons that only appear when relevant
All sensors include proper device classes and state classes for:
- Energy Dashboard integration
- Automations and notifications
- Historical tracking and statistics
- Smart home control workflows
- Home Assistant OS (HAOS) or Home Assistant Container
- SolarEdge Account with EV Charger
- Admin Access to your Home Assistant configuration files
- Terminal & SSH Add-on installed (for HAOS)
New to this integration? Check out the Quick Start Guide for a streamlined 10-minute setup!
The SolarEdge private API requires authentication via browser cookie.
-
Login to SolarEdge
- Go to https://monitoring.solaredge.com
- Login with your credentials
-
Extract the Cookie
For Firefox:
- Press
F12to open Developer Tools - Go to the Storage tab
- Click Cookies โ
monitoring.solaredge.com - Find
SPRING_SECURITY_REMEMBER_ME_COOKIE - Double-click the Value and copy it
For Chrome:
- Press
F12to open Developer Tools - Go to the Application tab
- Click Cookies โ
monitoring.solaredge.com - Find
SPRING_SECURITY_REMEMBER_ME_COOKIE - Double-click the Value column and copy it
- Press
-
Find Your Site ID
- While logged into SolarEdge, look at the URL
- Format:
https://monitoring.solaredge.com/solaredge-web/p/site/XXXXXXX/#/dashboard - The number
XXXXXXXis your Site ID
SSH into your Home Assistant and create the directory:
mkdir -p /config/shellCreate the script:
nano /config/shell/solaredge_login.shPaste the contents of solaredge_login.sh and update:
- Replace
YOUR_SITE_IDwith your Site ID - Replace
YOUR_COOKIE_VALUEwith your cookie
Save: Press CTRL+X, then Y, then ENTER
Make it executable:
chmod +x /config/shell/solaredge_login.sh/config/shell/solaredge_login.shYou should see JSON output with your EV Charger data.
Download and place these files in /config/:
- command_line.yaml - Sensor configuration
- templates.yaml - Template sensors
- shell_command.yaml - Shell commands for start/stop (optional)
nano /config/configuration.yamlAdd these lines:
command_line: !include command_line.yaml
template: !include templates.yaml
shell_command: !include shell_command.yaml # Optional: for start/stop controlha core restartWait 2-3 minutes for Home Assistant to restart.
- Go to Developer Tools โ States
- Search for
ev_charger - You should see 16 sensors! โ
Want to manually start and stop charging from Home Assistant? See the Charging Control Guide for complete setup instructions.
Quick Overview:
- Find your Device ID (reporterId)
- Create start/stop shell scripts
- Add button entities to templates.yaml
- Add conditional buttons to your dashboard
See full guide: CHARGING_CONTROL.md
type: entities
title: EV Charger
entities:
- sensor.ev_charger_status
- sensor.ev_charger_power
- sensor.ev_session_energy
- sensor.ev_excess_solar_status
- sensor.ev_charging_schedulesMore examples: dashboard-examples.md
automation:
- alias: "EV Charging Started"
trigger:
- platform: state
entity_id: binary_sensor.ev_charger_charging
to: 'on'
action:
- service: notify.notify
data:
title: "โก EV Charging Started"
message: "{{ states('sensor.ev_connected_vehicle') }} is now charging"More examples: automation-examples.md
See TROUBLESHOOTING.md for detailed solutions to common issues:
- Sensors showing "Unknown" or "Unavailable"
- Cookie expiration issues
- "Empty reply" errors
- Power displaying in W instead of kW
- Template sensor issues
The browser cookie typically expires after 7-14 days. When sensors stop updating:
- Login to https://monitoring.solaredge.com
- Extract new cookie (see Step 1)
- Update
/config/shell/solaredge_login.sh - Restart Home Assistant
Tip: Set up an automation to alert you when the cookie expires (see automation-examples.md)
/config/
โโโ configuration.yaml
โโโ command_line.yaml
โโโ templates.yaml
โโโ shell_command.yaml (optional)
โโโ shell/
โโโ solaredge_login.sh
โโโ solaredge_start_charging.sh (optional)
โโโ solaredge_stop_charging.sh (optional)
- Excess Solar Status - Track when excess PV charging is enabled/disabled
- Session Solar Usage - Monitor solar energy usage during charging sessions
- Real-time solar charging indicators
- Active Schedules - View all enabled charging schedules with times and days
- Next Scheduled Charge - See when your next scheduled charge will begin
- Schedule status integration with dashboard
- Start and stop charging directly from Home Assistant
- Smart conditional buttons that only appear when relevant
- Manual override of schedules and solar charging modes
- Fixed power sensor displaying W instead of kW
- Improved template sensor reliability
- Better error handling for missing data
- โจ Added Excess Solar status and usage sensors
- โจ Added charging schedule monitoring
- โจ Added next scheduled charge timestamp
- โจ Added manual start/stop charging control (optional)
- โจ Added Excess Solar Enabled binary sensor
- ๐ Fixed power sensor displaying W instead of kW
- ๐ Improved documentation with separate guides
- ๐ Added comprehensive troubleshooting guide
- Initial release
- Basic sensor monitoring
- Binary sensors for status tracking
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
This integration uses SolarEdge's private/undocumented API. It is not officially supported by SolarEdge and may break at any time if they change their API. Use at your own risk.
This integration is not affiliated with, endorsed by, or connected to SolarEdge Technologies Ltd.
- Thanks to the Home Assistant community
- Thanks to SolarEdge for their monitoring platform
- Thanks to all contributors and testers
- Quick Start Guide - Get started in 10 minutes
- Charging Control Guide - Add start/stop functionality
- Dashboard Examples - Various dashboard layouts
- Automation Examples - Useful automation templates
- Troubleshooting Guide - Solutions to common problems
Made with โค๏ธ for the Home Assistant community
If this integration helped you, consider giving it a โญ on GitHub!