ecobee-sjlu
Scripts to help determine electricity usage and cost from ecobee runtime reports.
Install
-
docker-compose up
to run MongoDB assuming you have Docker installed. -
npm i
assuming you have Node.js installed. -
Register for a developer account with ecobee - https://www.ecobee.com/en-us/developers/
-
Create an app using pin authentication method. You will get an API Key. Create a
.env
file with this asECOBEE_CLIENT_ID=<Api Key>
-
node pin.js
to start the authentication process. Keep note of theecobeePin
andcode
. -
Take the
ecobeePin
and add it to your ecobee portal / My Apps. -
node token.js <code>
will then return you arefresh_token
. Add that asECOBEE_REFRESH_TOKEN
in your.env
file. -
node sync.js
to obtain data from ecobee. Keep in mind the thermostat identifiers. You'll need to addECOBEE_THERMOSTAT_<THERMOSTAT_ID>=
to your.env
file with value being something in hvac_data.js. -
node report.js
to aggregate data into a usage report.
.env
Your .env
file should look like this:
ECOBEE_CLIENT_ID=
ECOBEE_REFRESH_TOKEN=
ECOBEE_THERMOSTAT_X=VSHP-030
VOLTAGE=208
PRICE_PER_KWH=0.22