Module for MagicMirror² that supports ecobee thermostats.
- An installation of MagicMirror²
- Clone this repo into
MagicMirror/modules
directory. - 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.
To authorize this application to access your Ecobee:
- Go to https://auth.ecobee.com/u/login
- Log in to your thermostat console
- Select
My Apps
from 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.
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. |