alphaess-client
v1.0.5
Published
A JS client to get data from AlphaESS Cloud
Readme
AlphaESS Cloud TypeScript Client
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.
Installation
npm install alphaess-client
# or
yarn add alphaess-clientGetting Started
1. Sign up at Alpha ESS Cloud
- Register for a free account at Alpha ESS Open Platform
- After registration, you'll receive your:
- Developer ID (AppID)
- Developer Secret (AppSecret)
2. Add Your Devices
- Log in to Alpha ESS Open Platform
- Navigate to Development Management > My System Information
- Click "Add" to register your devices with your developer account
3. Basic Usage
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');⚠️ Important Notes
- 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
nullif the API request fails or returns invalid data. - Authentication: Your AppID and AppSecret are used to generate secure request signatures. Keep these credentials secure.
API Documentation
For detailed information about available endpoints and their responses, visit the Alpha ESS Developer Portal.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
