Ecobee Thermostat Block
Very much a work in progress still....
Steps to set up
- Create a custom Ecobee app with PIN Authorization. Docs here
- Get the PIN code by performing the "Authorize Request" manually
- Enter the PIN in your Ecobee app dashboard
- Perform the first token request using the code from the first PIN request
- Record the initial "refresh token" and put that in the block config
- Put the app ID you created in step 1 for the block's app key
Features
- Read your thermostat's temperature and modes
- Set your thermostat's desired temp (only until next interval)
- Automatic retry - fetches a new access token if a request fails
- Persists refresh tokens so you won't have to
Still To Do
- Individual thermostat IDs
- Perform the initial refresh token request automatically
- Configurable temperature setting modes (e.g., indefinitely)
- Tests and proper block/doc structure