Not sure if this is the right place for this, but hopefully someone can point me in the right direction or at least let me know if my idea is possible before I sink a lot of time into it. I have an RT-AC87U running Merlin firmware. I recently installed an EcoBee3 thermostat. I'm thinking about setting the thermostat to "Away Mode" when none of our phones are connected to the wifi, and resuming the schedule when one phone is connected again. Is it possible to put a script like this on my router to send commands to my thermostat? Here is the API for the EcoBee https://www.ecobee.com/home/developer/api/documentation/v1/index.shtml
Thanks!
Thanks!