icmpecho / homebridge-ambiclimate-ac

MIT License
0 stars 0 forks source link

Have no idea about how to use this plugin for homebridge #7

Open kvtong93 opened 3 years ago

kvtong93 commented 3 years ago

I saw your code, it's awesome, only your script is able to control the ambi climate, but could you please provide the tutorial about how to use the code? thanks, no idea about the tsdx

icmpecho commented 3 years ago

@kvtong93 thanks for interested in the project. The plugin is not ready yet that's why I haven't updated the readme. The TSDX is just a tool I use to generate project so the readme you're seeing right now is the result of that tool.

If you want a plugin that's currently working today you can try https://www.npmjs.com/package/homebridge-ambiclimate It works but not totally matched my need. That's why I started this project

kvtong93 commented 3 years ago

Are you currently working on the manual mode for ambi climate ac?

kvtong93 commented 3 years ago

@kvtong93 thanks for interested in the project. The plugin is not ready yet that's why I haven't updated the readme. The TSDX is just a tool I use to generate project so the readme you're seeing right now is the result of that tool.

If you want a plugin that's currently working today you can try https://www.npmjs.com/package/homebridge-ambiclimate It works but not totally matched my need. That's why I started this project

This plugin i dont think it is working now... no callback url option

icmpecho commented 3 years ago

Are you currently working on the manual mode for ambi climate ac?

unfortunately no, I want that as well but as I checked ambiclimate api documentation, They don't expose an api for manual mode.

icmpecho commented 3 years ago

@kvtong93 thanks for interested in the project. The plugin is not ready yet that's why I haven't updated the readme. The TSDX is just a tool I use to generate project so the readme you're seeing right now is the result of that tool. If you want a plugin that's currently working today you can try https://www.npmjs.com/package/homebridge-ambiclimate It works but not totally matched my need. That's why I started this project

This plugin i dont think it is working now... no callback url option

I can confirm that it's working since I'm still using it today. Btw what do you need the callback url for ?

kvtong93 commented 3 years ago

https://api.ambiclimate.com/client/ Do you use this link to create api? new api needs to create the callback url, so i can not use previous plugin.. maybe my ambi climate is version2?

icmpecho commented 3 years ago

It's the same API client. The way that plugin works, Which I don't like, Is, You have to put username / password into the config. Then it use that on your behalf do the login and put callback URL as http.bin then scrape the token out for you.

kvtong93 commented 3 years ago

oops, i dont know why i always received 2020/10/7 下午11:37:42 code: 'ERR_INVALID_ARG_TYPE' 2020/10/7 下午11:37:42 } 2020/10/7 下午11:37:42 Access Token Error The "url" argument must be of type string. Received undefined 2020/10/7 下午11:37:42 (node:368) UnhandledPromiseRejectionWarning: ReferenceError: nil is not defined 2020/10/7 下午11:37:42 at /hoobs/node_modules/node-ambiclimate/ambi-auth.js:135:9

no idea about this