Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curtains status not working #158

Closed
a7mad3bdullah opened this issue Nov 14, 2021 · 6 comments
Closed

Curtains status not working #158

a7mad3bdullah opened this issue Nov 14, 2021 · 6 comments
Labels
bug Something isn't working no-issue-activity

Comments

@a7mad3bdullah
Copy link

Describe the bug
The plugin v1.5.0 has been added to homebridge successfully and authorization also works fine. But I’ve added a curtain to my account and been trying to control it from Home App, it keeps showing opening/closing even if the action has been done successfully (see screenshots). It also sometimes shows the status as open while it is closed and the other way around.

Expected behavior

1- The status of the curtain should show properly as per the device status (open/closed)

2- When a command is executed, the device should report prober status to homebridge and that will be reported to Home App

Screenshots
4DC4762B-F305-487A-9522-AE7A12CC9D3F
C107758A-3D1D-4432-8537-DF33D4898046
01D25F71-A60A-4E71-B7E7-6FE54BBC8905

Device info
can be provided if needed.

@a7mad3bdullah a7mad3bdullah added the bug Something isn't working label Nov 14, 2021
@wveilleux
Copy link

I have exactly the same issue. While the blinds are 100% open, either Home app and Homebridge UI shows the blinds in a "Closing" state. I've seen no errors in the log file. Any clue how to resolve that issue ?

@reidcooper
Copy link

I am running into something similar.

For example, if I shut my blinds from Apple Home, I can see that the device in Apple Home shows that it is closed.

In Tuya, I can see that the device is closed.

That's great.

But, if I manually open up my blinds by pressing the device button, I can see the logging MQTT messages from the tuya-homebridge plugin. However, the plugin will not notify Homebridge and Apple Home that the blinds are opened to 30%.

MQTT Messages I receive when the blinds are set to 89%

TuyaOpenMQ onMessage: topic = cloud/token/in/ASDF, message = {"data":{"dataId":"ASDF","devId":"ASDF","productKey":"ASDF","status":[{"3":99,"code":"percent_state","t":"1642296746","value":99}]},"protocol":4,"pv":"2.0","sign":"7cf4f8813fe2755c1efe9ba33b6b787a","t":1642296746}
TuyaOpenMQ onMessage: topic = cloud/token/in/ASDF, message = {"data":{"dataId":"ASDF","devId":"ASDF","productKey":"ASDF","status":[{"3":89,"code":"percent_state","t":"1642296749","value":89}]},"protocol":4,"pv":"2.0","sign":"dec26c416130c55f1b99985632e6dfb5","t":1642296749}

The only part that stands out to me differently is the closing state message. That could be why Homebridge continues to keep showing your Blinds as "closing". My is doing that too.

Here, my blinds are closed 100% by manually pressing the blinds button on the device.

Screen Shot 2022-01-15 at 8 40 59 PM

Homebridge sees the current position as 0% but "Closing". Apple Home sees the blinds as "Closed".

MQTT Messages I receive when the blinds are set to 100% closed

TuyaOpenMQ onMessage: topic = cloud/token/in/ASDF, message = {"data":{"dataId":"ASDF","devId":"ASDF","productKey":"ASDF","status":[{"3":88,"code":"percent_state","t":"1642296801","value":88}]},"protocol":4,"pv":"2.0","sign":"312a3d83bdb52d60f5e60ae3e1e12d0d","t":1642296801}
TuyaOpenMQ onMessage: topic = cloud/token/in/ASDF, message = {"data":{"dataId":"ASDF","devId":"ASDF","productKey":"ASDF","status":[{"7":"closing","code":"work_state","t":"1642296802","value":"closing"}]},"protocol":4,"pv":"2.0","sign":"2f5c6eb7b50f086abc31e92ae0995db7","t":1642296802}
TuyaOpenMQ onMessage: topic = cloud/token/in/ASDF, message = {"data":{"dataId":"ASDF","devId":"ASDF","productKey":"ASDF","status":[{"3":100,"code":"percent_state","t":"1642296805","value":100}]},"protocol":4,"pv":"2.0","sign":"5fc79e758977dad6343cb97122842a51","t":1642296805}

@reidcooper
Copy link

I think this commit 68684e3

removed one of the required characteristics according to Homebridge: Position State.

https://developers.homebridge.io/#/service/WindowCovering

I think because this was removed, it will no longer tell you if your Blinds are actually "done" moving so they will forever stay in the "Opening" or "Closing" state. But this is just a theory of mine.

@github-actions
Copy link

Stale issue. we will close the issue soon. If this issue has not been resolved, please update the issue and contact us in time.

@Geczy
Copy link

Geczy commented Oct 16, 2022

can you fix it?

@leo150
Copy link

leo150 commented Jul 7, 2023

Thank you for pointing the commit. Nasty little fix for whoever is interested (#363).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

5 participants