This will reach out to the connect to WiFi, wait for a reed switch to trigger, then send a request to the EcoBee thermostat api to turn on or off the AC.
Basically, if the door is open, the AC turns off. If the door is closed, the AC is set to auto.
Register for developer portal here & create API keys for use.
https://www.ecobee.com/home/developer
OAUTH refresh tokens will be saved in EEPROM to persist after reboots.