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

For devices with 'queryState' set, we read state after write. #999

Closed
wants to merge 1 commit into from

Conversation

gi-el
Copy link
Contributor

@gi-el gi-el commented Feb 2, 2019

As per the discussion in #939 some devices (like my AduroSmart lights) don't send device updates. To properly know the state of the device after we set it, we can issue a get command. This change will always do that for devices that have queryState set to true.

I decided to implement it like this, in a more generic way. This works fine for me. If you approve this PR, I'll submit one to actually include querystate for the device. The other option is to just make a few converters for this device and set readAfterWriteTime for those - I've tried that and that also works fine. Let me know if you prefer that and I'll make a PR accordingly,

Some devices don't send an update of their state when we change
it, and with this method we can force them to by requesting it.
@Koenkk
Copy link
Owner

Koenkk commented Feb 2, 2019

Thanks for the PR, first I would like to continue the discussion in #999. If you want we can also have a chat, as I think this is far more efficient (I'm on telegram as koenkk)

@gi-el gi-el closed this Feb 2, 2019
@gi-el gi-el deleted the adurosmart branch February 2, 2019 23:52
@gi-el
Copy link
Contributor Author

gi-el commented Feb 2, 2019

Superseded by #1004. Closing.

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.

2 participants