Closed JJTech0130 closed 2 months ago
Still needs regression testing, I do not have a developer API key
Here's some sample code to show it works:
import pyecobee
import logging
logging.basicConfig(level=logging.DEBUG)
test = pyecobee.Ecobee("ecobee.conf")
test.read_config_from_file()
print(test.get_thermostats())
Where ecobee.conf
looks like this:
{"API_KEY": null, "AUTH0_TOKEN": "<your 'auth0' cookie here>"}
The process for getting the auth0
cookie is as follows:
auth0
Currently maintaining a HACS modified version of the Ecobee integration to support this, plus bugfixes/minor changes for myself. Might rewrite the whole thing soon, a lot of it is very janky. https://github.com/JJTech0130/ha-ecobee
Implements web-based login flow as described in https://github.com/nkgilley/python-ecobee-api/issues/78
Closes #78