A Home Assistant custom component for monitoring SAJ solar inverters and battery systems. This integration fetches data from the SAJ cloud API and presents it as sensors within Home Assistant.
- Monitor SAJ solar inverters and battery systems
- View real-time power generation, grid status, and battery information
- Track daily and total energy production
- Monitor home load power and self-consumption
- Support for both solar inverters and battery systems
- Automatic detection of nighttime mode for solar inverters
- Environmental impact statistics (CO2 reduction, equivalent trees)
Before installing this integration, you need to obtain SAJ Developer API credentials and device information:
-
Register as a Developer on the SAJ Elekeeper Platform:
- Log in to the Elekeeper web portal
- Find the developers function on the top of the portal
- Choose "Autonomous Account"
- Complete the developer registration form
- Wait for SAJ to process your application
-
Obtain Your API Credentials:
- After approval, navigate to the developer console
- Go to "App Configuration" in the settings menu
- You'll receive:
- App ID
- App Secret
- Keep these credentials handy for the integration setup
-
Authorize Resources:
- Set up which plants/devices you want to monitor
- Follow the authorization process in the developer section
You'll need the following information about your devices:
- Device Serial Number (SN): This can be found in the Elekeeper console under "View Authorized Devices"
- Plant ID: This is associated with your plant in the Elekeeper platform
- Device Type: Select whether the device is a solar inverter or battery system
For detailed instructions on this process, refer to the SAJ Elekeeper API Documentation at the SAJ International Developer Portal. The portal provides:
- API documentation
- Developer guides
- Sample code
- File center with additional resources at https://intl-developer.saj-electric.com/fileCenter/index
If you are a plant owner and working with a third-party developer, you'll need to authorize their developer ID to access your plant data.
- Make sure HACS is installed in your Home Assistant instance.
- Click the HACS install button above or add this repository as a custom repository in HACS:
- Go to HACS > Integrations > ⋮ > Custom repositories
- Add
https://github.com/lowkey88/SAJMonitor
as a repository - Select "Integration" as the category
- Click "Download" on the SAJ Monitor integration
- Restart Home Assistant
- Download the latest release from this repository
- Create a
custom_components
directory in your Home Assistant configuration directory if it doesn't already exist - Extract the
saj_monitor
directory from the release into thecustom_components
directory - Restart Home Assistant
After installation, you'll need to configure the integration:
- Go to Home Assistant > Settings > Devices & Services
- Click "Add Integration" and search for "SAJ Monitor"
- You'll be prompted to enter your API credentials:
- App ID: Enter the App ID obtained from the Elekeeper developer portal
- App Secret: Enter the App Secret obtained from the Elekeeper developer portal
- Click "Submit" to validate your credentials
- Next, you'll be prompted to add your device:
- Name: Enter a friendly name for your device (e.g., "Rooftop Solar")
- SN: Enter the device Serial Number from the Elekeeper console
- Plant ID: Enter the Plant ID from the Elekeeper console
- Type: Select either "solar" or "battery" depending on your device type
- Click "Submit" to add the device
- You can add additional devices by repeating the process
After adding your devices, the integration will create entities for each device, and you can start monitoring your SAJ solar inverters and battery systems in Home Assistant.
The integration provides the following sensors:
- Current Power
- Today's Generation
- Total Generation
- Grid Power
- Grid Status
- Operating Status
- Home Load Power
- PV1/PV2 Power, Voltage, and Current
- Grid Phase (R, S, T) Power, Voltage, Current, and Frequency
- Inverter Temperature
- Battery Level
- Battery Power
- Battery Status
- Battery Temperature
- Today's Battery Charge/Discharge
- Total Battery Charge/Discharge
- Battery Efficiency
- Backup Load Power (if available)
- CO2 Reduction
- Equivalent Trees
- Estimated Annual Production
- Estimated Annual Savings
If you encounter any issues:
- Check the Home Assistant logs for error messages
- Make sure your SAJ Developer API credentials are correct
- Verify that your device serial numbers and plant IDs are correct
- Confirm that you've completed the authorization process on the SAJ Elekeeper platform
- Ensure your developer account has permissions to access the devices you're trying to monitor
- Restart Home Assistant after making changes to the integration
If you receive authentication errors, you may need to:
- Check if your developer account is still active
- Re-authorize your resources in the Elekeeper portal
- Verify you're using the international node: https://intl-developer.saj-electric.com (for international users except Europe)
- European users should use: https://developer.electric.com
If you're experiencing problems, please create an issue on GitHub with the following information:
- A detailed description of the problem
- Your Home Assistant version
- The error message from your logs
- Screenshots if applicable
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.