homebridge-samsung-window-ac
v1.1.0
Published
Homebridge plugin for Samsung Window Air Conditioners
Maintainers
Readme
Homebridge Samsung Window AC
A Homebridge plugin that integrates Samsung Window Air Conditioners with Apple HomeKit.
Features
- ✅ Samsung Window AC temperature control
- ✅ Humidity monitoring
- ✅ Air conditioner mode control (Off, Cool, Heat, Auto)
- ✅ Real-time status synchronization
- ✅ SmartThings API integration
- ✅ HomeKit automation support
Supported Modes
| HomeKit Mode | Samsung AC Mode | Description | |-------------|----------------|-------------| | Off | Off | Turn off air conditioner | | Cool | Cool | Cooling mode | | Heat | Dry | Dehumidification mode (mapped to Heat) | | Auto | AI Comfort | AI Comfort mode |
Installation
1. Install Homebridge
First, make sure you have Homebridge installed. If not:
sudo npm install -g homebridge homebridge-config-ui-x2. Install Plugin
sudo npm install -g homebridge-samsung-window-ac3. Set up SmartThings API Token
- Log in to SmartThings Developer Console
- Create a Personal Access Token
- Copy the token and enter it in the configuration
Configuration
Using Homebridge Config UI X
- Access Homebridge Config UI X
- Find "Samsung Window AC" in the plugins tab
- Enter your SmartThings API token in the settings
- Save and restart
Manual Configuration
Add the following configuration to your config.json file:
{
"platforms": [
{
"platform": "SamsungWindowAC",
"name": "Samsung Window AC",
"apiToken": "your-smartthings-api-token-here"
}
]
}Usage
In HomeKit App
- Open the Home app
- Select the air conditioner accessory
- Control temperature, change modes, turn on/off
Automation Setup
- "Turn on AC when temperature is above 25°C"
- "Switch to dehumidification mode when humidity is above 70%"
- "Turn off AC when leaving home"
Troubleshooting
429 Too Many Requests Error
The plugin optimizes API calls to prevent 429 errors:
- Uses unified status API to reduce call frequency
- 5-minute caching to prevent unnecessary requests
Air Conditioner Not Detected
- Verify the air conditioner is properly connected in the SmartThings app
- Check if the API token is correct
- Check error messages in Homebridge logs
Temperature Control in Auto Mode
In Auto mode:
- HeatingThresholdTemperature is the actual target temperature
- CoolingThresholdTemperature is HeatingThresholdTemperature + 4°C (max 30°C)
- This setup makes it easier to control in HomeKit
Development
Local Development Environment Setup
# Clone repository
git clone https://github.com/s8ngyu/homebridge-samsung-window-ac.git
cd homebridge-samsung-window-ac
# Install dependencies
npm install
# Build
npm run build
# Link to Homebridge
npm link
# Run in development mode
npm run watchBuild
npm run buildLint
npm run lintLicense
Apache License 2.0
Contributing
Bug reports, feature requests, and pull requests are welcome!
Support
If you have issues or questions, please contact us via GitHub Issues.
