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

Change how cover accessories are handled to match observed behavior o… #618

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Tomcraft1980
Copy link

…f real hardware.

prettier

this.updateValue(data, callback);
})
.catch(this.accessory.handleError("GET", callback));
this.updateValue({}, callback);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we are now no longer fetching the remote state 🤔

What would happen if you use another system (outside of homekit) to update the state?
It seems like homekit wouldn't update with the new state.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, could be, but I'm not into the code. It is just the PR from bSr43/homebridge-tuya-web@91ef52e you asked for.
Maybe you can combine the code? Would be awesome!
Is there a way we can donate for your work?

@64Spaces
Copy link

AFAIK, these type of RF cover devices do not provide feedback to HomeKit. But once they are in sync, they work fine for automations and such. If they ever get out of sync, they have to be adjusted.

@milo526
Copy link
Owner

milo526 commented Sep 22, 2024

AFAIK, these type of RF cover devices do not provide feedback to HomeKit. But once they are in sync, they work fine for automations and such. If they ever get out of sync, they have to be adjusted.

Tuya is the creator of many different appliances; not all devices that are considered "cover devices" are RF; The non-RF devices should be able to report their state back, that also what the current implementation was built for.
Sadly not all tuya devices behave the same; but that's also why I cannot blindly accept an untested PR made by someone else when it is unclear what it's effect is on the current userbase.

@64Spaces
Copy link

64Spaces commented Sep 22, 2024

Thank you. That makes sense. I’m very interested in the Issue with Zemismart Cover RF devices getting stuck showing opening/closing or not reacting unless the command is sent two or three times. It’s interesting that Zigbee2MQTT has the same issue with Zemismart Cover RF devices. I’m not sure how the Fork in question solves this problem. Maybe the RF USB Stick “goes to sleep” or something. The logs do not show any data on the first “click”.

@dannyuk1982
Copy link

I've got a QUOYA MC11 Blind, opens/closes via Homekit fine, but Homekit always says "opening" or "closing". Just in case that is of any use towards working out this PR.

@hubert3
Copy link

hubert3 commented Dec 3, 2024

This patch fixes plugin behaviour for my Avatto blinds controller which has an RF remote. Without this patch, my blinds are stuck on opening or closing state forever. The delay until the state is reported as fully Open or Closed could be reduced in my case.

I was running bSr43's years old fork of this plugin because it contains this patch, but that plugin recently stopped working completely so I switched to milo526's version with this PR applied.

If it's unclear whether this patch breaks things for some users, perhaps the behaviour to automatically report state as Open or Closed after a while could be a config option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants