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

Blinds respond 50% of the time #47

Closed wratran closed 3 years ago

wratran commented 3 years ago

Under Apple Homekit automation, I noticed the blinds will respond open/close half the time.

I have to manually go to the HOME app to open and close

dxdc commented 3 years ago

@wratran Please share logs, automation, and expected actions. You can enable verbose logging (see readme).

It is sounding like your automation is not being properly triggered though. HomeKit automations aren't the most reliable, and the fact that it is working from the Home app to me says the plugin may not be getting triggered at all (the logs will be helpful here). If the plugin isn't being triggered, then it's an issue with your Automation/HomeKit set up.

wratran commented 3 years ago

[8/11/2020, 5:31:12 PM] [Big Window] End Move down to 0% (target 0%)

this is the log...shade did not move down

wratran commented 3 years ago

I have to toggle open then close to get the shade to react...

[8/11/2020, 5:35:03 PM] [Big Window] Requested Move down (to 0%) [8/11/2020, 5:35:04 PM] [Big Window] Move request sent (129 ms), waiting 0.1s (+ 3s response lag)... [8/11/2020, 5:35:07 PM] [Big Window] End Move down to 0% (target 0%) [8/11/2020, 5:35:08 PM] [Big Window] Requested Move up (to 100%) [8/11/2020, 5:35:08 PM] [Big Window] Move request sent (155 ms), waiting 10s (+ 3s response lag)... [8/11/2020, 5:35:15 PM] [Big Window] Requested Move down (to 0%) [8/11/2020, 5:35:15 PM] [Big Window] Move request sent (131 ms), waiting 3.8s (+ 3s response lag)... [8/11/2020, 5:35:22 PM] [Big Window] End Move down to 0% (target 0%)

wratran commented 3 years ago

[1597185326795] INFO (29818 on wratran): incoming request reqId: 291 req: { "method": "GET", "url": "/api/server/qrcode.svg", "hostname": "192.168.86.39:8581", "remoteAddress": "::ffff:192.168.86.23", "remotePort": 63951 } [1597185326811] INFO (29818 on wratran): request completed reqId: 291 res: { "statusCode": 200 } responseTime: 15.504688739776611 [1597185326926] INFO (29818 on wratran): incoming request reqId: 292 req: { "method": "GET", "url": "/api/server/qrcode.svg", "hostname": "192.168.86.39:8581", "remoteAddress": "::ffff:192.168.86.23", "remotePort": 63952 } [1597185326935] INFO (29818 on wratran): request completed reqId: 292 res: { "statusCode": 200 } responseTime: 8.733220100402832

dxdc commented 3 years ago

Well, I don't see any issues here. Your device is giving 200 responses. This seems like an issue with the controller that is handling the incoming requests. It's giving a 200 response but not moving.

You should be able to test this and reproduce this in curl. Doesn't look plugin related.

wratran commented 3 years ago

i am using bond hub to learn the RF command from the blinds remote. Is there any setting in the plugin that I can try?

dxdc commented 3 years ago

This isn't a plugin issue. The receiving device (i.e., Bond) is giving a 200 request, meaning it received and processed the command. So, nothing more to be done there.

Maybe you need to reprogram the Bond to re-learn the codes. They also have some (somewhat hard to find) options which add a certain number of retries when sending your blinds command.

As long as the plugin is working, i.e., reports that it is sending an "up" command and you see it move up, and reports that it is sending a "down" command and you see it move down (at least some of the time), then it's something to do with your other device because it's showing 200 status. Try moving your Bond closer just as an experiment too.