nkgilley / python-ecobee-api

Python API for controlling Ecobee Thermostats
MIT License
44 stars 40 forks source link

Add support for Ecobee Switch+ #35

Open niemyjski opened 5 years ago

niemyjski commented 5 years ago

The following shows off how to get access to a list of all switches via polling

https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/master/smartapps/smartthings/ecobee-connect.src/ecobee-connect.groovy

I Found that logging into your Ecobee account it makes a request to https://api.ecobee.com/ea/devices/ls?format=json to pull for changes and get a list of all devices with identifiers and full metadata..

Then when you make a state change like turn on or off it makes a PATCH https://api.ecobee.com/ea/devices/ls/ID_HERE?format=json with the state {"state":{"on":true}}.

niemyjski commented 5 years ago

@nkgilley would you be willing to pair on this?