dxdc / homebridge-blinds

:sunrise: Homebridge Plugin to control my blinds over HTTP
https://www.npmjs.com/package/homebridge-blinds
ISC License
54 stars 25 forks source link

How catch HTTP url from SmartLife? #61

Closed Stetocasa closed 3 years ago

Stetocasa commented 3 years ago

Hi, I have a motor blind zemismart trough Smartlife application. How can I extract the url to manage up/down/stop?

dxdc commented 3 years ago

@Stetocasa It seems Smartlife is also using Tuya, so I would consider something like this (there are a lot of Tuya API-based plugins): https://github.com/milo526/homebridge-tuya-web

I'm not sure you'll be able to extract a specific URL because of how the Tuya API works, but you could always build something as a middleware plugin. Or, check out Tasmota, and see if you can completely replace the firmware on your motor blinds.

Stetocasa commented 3 years ago

I'm here because tuya web plug-in reported has a bug when not catch the status of blinds Still reporting opening or closing See here > https://github.com/milo526/homebridge-tuya-web/issues/143

dxdc commented 3 years ago

It's not clear what the issue is exactly, but sounds like it could be a bug in that plugin. Having the icons report correctly is an issue I worked through with this plugin as well.

It seems like you can pursue the path of operating Tuya through their Cloud API. It seems there are several steps, including signing up for a developer account.

https://github.com/codetheweb/tuyapi/issues/20#issuecomment-751773660

That being said, this all seems unrelated to homebridge-blinds, however, so encourage you to try other Tuya plugins or pursue help in the appropriate places. If you do pursue the Tuya Cloud API, once you have all the access tokens you need and API endpoints, feel free to reach out again if you need help configuring the http params.

peros550 commented 3 years ago

If you are considering changing the firmware to tasmota, then have a look in this first: https://github.com/RavenSystem/esp-homekit-devices

It runs HomeKit natively and is very stable. All my simple devices are now changed into HAA. I am still keeping homebridge because I needed a couple of plugins (this one included)

Stetocasa commented 3 years ago

@dxdc Up the issue

I downloaded the app named HTTP catcher and for "UP" command this was the results: image image

Seems something that can we use to config the plug-in for me?

dxdc commented 3 years ago

You've supplied just the host, and port. There needs to be an actual request (POST/GET).