Control your Electra Smart air conditioner units with Homey Pro.
- Full control over your Electra AC units
- Set temperature (16-30°C)
- Control AC modes: Cool, Heat, Fan, Dry, Auto, Standby
- Adjust fan speed: Low, Medium, High, Auto
- Monitor current room temperature
- Automatic status updates every 60 seconds
- Works with existing IMEI and Token credentials
You need one of the following:
- Your phone number registered with Electra Smart (e.g.,
0524001234) - The app will send you an OTP code via SMS during pairing
- IMEI - Your Electra device IMEI (format:
2b950000xxxxxxxx) - Token - Your authentication token
If you don't have IMEI/Token but want to generate them manually, you can use the included Node.js script:
Then copy the returned IMEI and Token
The script will:
- Send an OTP code to your phone via SMS
- Verify the code and retrieve your IMEI and Token
- Test the credentials to ensure they work
- Display your AC devices
**Note:** The app has built-in phone number authentication during pairing, so you only need manual credentials if you prefer to skip the OTP flow in the app!
## Installation
### Option 1: Install from Homey App Store (Recommended)
1. Open the Homey app
2. Go to "More" → "Apps"
3. Search for "Electra Smart AC"
4. Click "Install"
### Option 2: Install via Homey CLI (For Development)
1. Install Homey CLI:
```bash
npm install -g homey
- Login to your Homey account:
homey login- Navigate to the app directory:
cd homey-electra-ac- Install dependencies:
npm install- Run the app on your Homey:
homey app install- In the Homey app, go to "Devices" → "Add Device"
- Select "Electra Smart AC"
- Choose your authentication method:
- Select "Phone Number"
- Enter your registered phone number (e.g.,
0524001234) - Click "Next"
- Click "Send OTP Code"
- You'll receive an SMS with a 4-digit OTP code
- Enter the OTP code and click "Verify Code"
- Select the AC units you want to add
- Click "Add" to complete pairing
- Select "IMEI & Token"
- Enter your credentials:
- IMEI: Your device IMEI (e.g.,
2b950000xxxxxxxx) - Token: Your authentication token
- IMEI: Your device IMEI (e.g.,
- Click "Next"
- Select the AC units you want to add
- Click "Add" to complete pairing
Once added, your Electra AC will appear as a device in Homey with the following controls:
- Power: Turn the AC on/off
- Target Temperature: Set desired temperature (16-30°C)
- Current Temperature: Monitor room temperature (read-only)
- AC Mode: Select operating mode
- Cool
- Heat
- Fan
- Dry
- Auto
- Standby
- Fan Speed: Control fan speed
- Low
- Medium
- High
- Auto
You can use your AC in Homey Flows for automation:
- When: Temperature is above 26°C
- Then: Turn on AC, set to Cool mode, 24°C
- When: Time is 11:00 PM
- Then: Turn off AC
- When: Nobody is home
- Then: Set AC to 28°C or turn off
- Check your internet connection
- Verify your IMEI and Token are correct
- Try removing and re-adding the device
- The AC unit must be powered on to report temperature
- Temperature updates every 60 seconds
- Some AC models may not support temperature reporting
- Ensure the AC unit is connected to Wi-Fi
- Check the Electra cloud service is operational
- Try restarting the Homey app
- Double-check your IMEI and Token
- Tokens may expire - generate new credentials using
node get-credentials.js <phone> - Ensure your phone number is registered with Electra
This app communicates with the Electra cloud service at https://app.ecpiot.co.il/mobile/mobilecommand. Commands are sent via JSON over HTTPS.
- Session IDs (SID) are automatically generated and renewed
- Minimum refresh interval: 60 seconds
- Automatic retry with SID renewal on API failures
- Device status is fetched every 60 seconds
- Temperature readings use intelligent sensor selection (I_RAT → I_CALC_AT → I_RCT)
- Only valid temperature readings (-5°C to 42°C) are displayed
The app automatically detects your AC model capabilities:
- Models with dedicated ON/OFF flag
- Models using standby mode for power control
homey-electra-ac/
├── .homeycompose/ # App manifest components
│ ├── app.json # App metadata
│ ├── capabilities/ # Custom capability definitions
│ └── drivers/ # Driver configurations
├── lib/ # Core libraries
│ ├── ElectraAPI.js # API client
│ └── ElectraDevice.js # Device management
├── drivers/ # Device drivers
│ └── electra-ac/
│ ├── driver.js # Driver logic
│ └── device.js # Device logic
├── app.js # Main app class
├── package.json # Dependencies
└── README.md # This file
To compile the app manifest:
homey app buildTo validate the app:
homey app validateTo run the app in development mode:
homey app runView logs:
homey app logThe project includes helper scripts for testing and obtaining credentials:
Obtain IMEI and Token using phone number OTP authentication:
# Send OTP
node get-credentials.js 0524001234
# Verify OTP and get credentials
node get-credentials.js 0524001234 1234Validate existing IMEI and Token credentials:
node test-credentials.js <IMEI> <TOKEN>This will:
- Generate a session ID
- List your AC devices
- Fetch status from the first device
- Verify all API communication works
This project was made possible by the research and work of:
- ElectraSmart Python API Client by Yonatan Perry
- Original reverse engineering of the Electra Smart API
- Foundation for understanding the API protocol and communication flow
- The Electra Smart API research community for their contributions to understanding the protocol
- All contributors who helped improve and test the authentication flows
MIT License - See LICENSE file for details
This project is licensed under the MIT License, allowing free use, modification, and distribution with proper attribution.
For issues and feature requests, please open an issue on GitHub or contact the developer.
- ✨ New: Phone number authentication with OTP (SMS code)
- ✨ New: 4-digit OTP support
- ✨ Improved: Restore last AC settings when turning on
- 🔧 Fixed: OTP verification waits for token before proceeding
- 🔧 Fixed: Manual navigation control for better reliability
- 📝 Updated: Cleaner codebase with reduced logging
- Initial release
- Basic AC control (power, temperature, mode, fan speed)
- Automatic status updates
- Device pairing with IMEI and Token
- Support for multiple AC units