dave-atx / homebridge-platform-smartac

A homebridge plug-in for ThinkEco SmartAC thermostats.
MIT License
14 stars 10 forks source link

does this work with other modlet #4

Open Anuj79 opened 6 years ago

Anuj79 commented 6 years ago

does this work with other modlet only which doesnt have a thermostat https://shop.thinkecoinc.com/products/wifi-modlet-bn#.Wei7ZBOPKu4

dave-atx commented 6 years ago

It doesn't work with non-thermostat modlets, but I'd be happy to accept a PR that adds support for them.

Anuj79 commented 6 years ago

i can give it a go.. it would seem its simpler than a thermostat as it's just on and off..

dave-atx commented 6 years ago

Cool, yeah I tend to agree. Assuming those are controlled by mymodlet.com, it's probably a small amount of work. I don't have one to test, but I'd be happy to offer comments on a PR & merge when it's ready.

Anuj79 commented 6 years ago

yeah i saw the code and see you were using mymodlet.. i think it should work.

Anuj79 commented 6 years ago

i ran this link from your code after logging in https://mymodlet.com/SmartAC/UserSettingsTable and seems like its only showing Thermostats and not Dehumidifies(stand alone switch)

did some network capture from the app and saw they were using restful api and Oauth so i could possible use that.. because it will be oauth to log in and then using token to set the switch on and off..

Anuj79 commented 6 years ago

i did modify it to support Modlet.. but i had to fork it as i couldnt modify it as i didnt have themorstat..