A strongly-typed TypeScript client for the Alpha ESS Open API. This client enables you to interact with your Alpha ESS inverter, solar panels, and battery system, providing real-time data and control capabilities.
npm install alphaess-client
# or
yarn add alphaess-client
- Register for a free account at Alpha ESS Open Platform
- After registration, you'll receive your:
- Developer ID (AppID)
- Developer Secret (AppSecret)
- Log in to Alpha ESS Open Platform
- Navigate to Development Management > My System Information
- Click "Add" to register your devices with your developer account
import { AlphaESS } from 'alphaess-client';
// Initialize the client
const client = new AlphaESS({
appID: 'your-app-id',
appSecret: 'your-app-secret',
timeout: 30000 // optional, defaults to 30 seconds
});
// Get list of systems
const systems = await client.getESSList();
// Get real-time power data
const powerData = await client.getLastPowerData('your-system-serial');
- Rate Limiting: Frequent polling is not recommended. Maintain a minimum interval of 10-15 minutes between requests to avoid potential API limitations.
- Error Handling: All methods return
null
if the API request fails or returns invalid data. - Authentication: Your AppID and AppSecret are used to generate secure request signatures. Keep these credentials secure.
For detailed information about available endpoints and their responses, visit the Alpha ESS Developer Portal.
Contributions are welcome! Please feel free to submit a Pull Request.