homebridge-ecobee-status
v2.1.7
Published
Homebridge plugin to control Ecobee thermostat Home/Away/Sleep status through HomeKit security system interface
Downloads
677
Maintainers
Readme
Homebridge Ecobee Status Control
This Homebridge plugin provides an elegant way to control your Ecobee thermostat's climate status (Home/Away/Sleep) through HomeKit's security system interface. Perfect for creating automations based on your daily routines or other triggers.
Features
- Control your Ecobee's status through HomeKit's security system interface
- Three state options:
- Home (Stay Armed) - Resumes your regular program
- Away (Away Armed) - Sets thermostat to Away mode
- Sleep (Night Armed) - Sets thermostat to Sleep mode
- Real-time status updates every 30 minutes
- Optional automation-friendly switch for simpler Home/Away control
- Support for single or multiple thermostats
- Automatic token refresh handling
- Error recovery with automatic retries
Installation
- Install Homebridge (if not already installed)
- Install this plugin:
npm i -g homebridge-ecobee-status
Configuration
Add the EcobeeStatus
platform in your homebridge config.json
file:
{
"platforms": [
{
"name": "Ecobee Status",
"platform": "EcobeeStatus",
"refreshToken": "token generated with ecobee-auth-cli",
"thermostatSerialNumbers": "100904852660,654234216036",
"enableAutomationSwitch": false
}
]
}
Configuration Options
| Option | Required | Description |
|--------|----------|-------------|
| name
| No | The name that will appear in your Home app |
| platform
| Yes | Must be "EcobeeStatus" |
| refreshToken
| Yes | Authentication token (see below) |
| thermostatSerialNumbers
| No | Comma-separated list of thermostats to control |
| enableAutomationSwitch
| No | Adds a simple ON/OFF switch for Away control (default: false) |
Getting a Refresh Token
- Install the plugin globally:
npm i -g homebridge-ecobee-status
- Run the authentication CLI:
ecobee-auth-cli
Follow the prompts to:
- Log in to your Ecobee web portal
- Navigate to the "My Apps" tab
- Enter the provided PIN
- Authorize the application
Copy the generated refresh token into your config file
The plugin will automatically handle token refreshes and update the config file as needed.
Thermostat Serial Numbers (Optional)
If you have multiple thermostats, you can specify which ones to control by adding their serial numbers. Find these in your Ecobee app or website under each thermostat's "About" page.
Leave this field blank to control all registered thermostats.
Automation Switch (Optional)
Enable enableAutomationSwitch
to add a simple ON/OFF switch that controls Home/Away status. This can be useful for:
- HomeKit automations that don't support security system triggers
- Simple Home/Away control without the security system interface
- Third-party integrations
The switch states correspond to:
- ON = Away
- OFF = Home
Usage
After installation and configuration:
- Open the Home app
- Find the new security system control
- Use the states as follows:
- Stay Armed = Home mode
- Away Armed = Away mode
- Night Armed = Sleep mode
The status will automatically sync between HomeKit and your Ecobee every 30 minutes.
Troubleshooting
- Authentication Issues: Run
ecobee-auth-cli
again to generate a new token - State Sync Issues: Check your Homebridge logs for any API errors
- Multiple Thermostats: Verify serial numbers are correct in config
- Status Not Updating: Ensure auto home/away is disabled in Ecobee settings
Support
- For bug reports or feature requests, please open an issue
- For questions or discussions, visit the Discussions page
License
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
Credits
- Original
homebridge-ecobee-away
plugin by Vortec4800 - Current maintainer: Spencer S