- JavaScript 96.3%
- CSS 3.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
An unexpected status from the sensor update, or a refresh error other than the known transient ones, cleared the access and refresh tokens before requesting a new PIN. If the error was transient, that threw away a still-valid refresh token and forced a manual re-authorization. Keep the tokens so a later refresh can still succeed. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
| .github/workflows | ||
| .vscode | ||
| images | ||
| .eslintrc | ||
| .gitignore | ||
| LICENSE | ||
| MMM-Ecobee.css | ||
| MMM-Ecobee.js | ||
| node_helper.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| sample.png | ||
| sample_colored_dots.png | ||
MMM-Ecobee
Module for MagicMirror² that supports ecobee thermostats.
Dependencies
- An installation of MagicMirror²
Installation
- Clone this repo into
MagicMirror/modulesdirectory. - Configure your
MagicMirror/config/config.js:
{
module: 'MMM-Ecobee',
position: "top_left",
config: {
}
}
Ensure that the user running MagicMirror has write access to the module's directory so that the module can save the authentication token. If you are unable to do this for any reason, you can instead create a tokens.json file in the module's directory yourself and chown it to the user who is running MagicMirror.
Authorizing the module on your ecobee account
To authorize this application to access your Ecobee:
- Go to https://auth.ecobee.com/u/login
- Log in to your thermostat console
- Select
My Appsfrom the menu on the top right. - Click
Add Application - Enter the code provided.
Codes refresh every ~10mins. The module will check for the completed authorization every 30sec.
If a code is not used for a long time (Magic Mirror is off, module is turned off, etc.) a new authorization may be required.
See the Installation section above for notes about how authorization is stored and how to fix it if it doesn't seem to remember the authorization token.
Config Options
| Option | Default | Description |
|---|---|---|
updateInterval |
5 * 60 * 1000 |
How often to update the thermostat's data, in milliseconds. Defaults to 5 minutes. This cannot be less than 3 minutes, per ecobee. |
showSensors |
true |
If true, will show thermostat(s) as well as remote sensor(s). If false, will only show thermostat(s). |
showHumidity |
true |
If true, will show current humidity for a thermostat, if available. |
showSetTemperature |
true |
If true, will show the temperature a thermostat is set to cool/heat to. |
useColoredDots |
false |
If true, displays colored status indicators (green for ON, red for OFF) instead of text labels. |
dotColorOn |
'#7cff7c' |
Hex color code for the "ON" status indicator. Only used when useColoredDots is true. |
dotColorOff |
'#f65151' |
Hex color code for the "OFF" status indicator. Only used when useColoredDots is true. |

