-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[homekit] bugfix 7491 / add support for merging several updates to one command #7825
Conversation
Signed-off-by: Eugen Freiter <[email protected]>
Travis tests were successfulHey @yfre, |
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
.../org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitTaggedItem.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/io/homekit/internal/accessories/HomekitCharacteristicFactory.java
Outdated
Show resolved
Hide resolved
....homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitLightbulbImpl.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
Also, please add yourself as a CODEOWNER. I would like to hear your thoughts on PR to this bundle. |
Signed-off-by: Eugen Freiter <[email protected]>
Signed-off-by: Eugen Freiter <[email protected]>
Travis tests were successfulHey @yfre, |
Travis tests were successfulHey @yfre, |
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
.../org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitTaggedItem.java
Show resolved
Hide resolved
I didn't think about the names of the config options. I'll comment on that tomorrow |
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
.../org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitTaggedItem.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Eugen Freiter <[email protected]>
Travis tests were successfulHey @yfre, |
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitCommandType.java
Show resolved
Hide resolved
.../org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitDimmerMode.java
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Show resolved
Hide resolved
Signed-off-by: Eugen Freiter <[email protected]>
Travis tests were successfulHey @yfre, |
.../org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitDimmerMode.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
Otherwise LGTM |
Signed-off-by: Eugen Freiter <[email protected]>
Travis tests were successfulHey @yfre, |
@cpmeister thank for the review. i have committed all changes. is anything missing ? |
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
...org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitOHItemProxy.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Eugen Freiter <[email protected]>
Travis tests were successfulHey @yfre, |
Signed-off-by: Eugen Freiter <[email protected]>
Travis tests were successfulHey @yfre, |
…e command (openhab#7825) * add support for merging several updates to one command * incorporate J-N-K feedback, adapt the logic for dimmer * add yfre to CODEOWNERS * incorporate feedback from @cpmeister * remove some blank lines Signed-off-by: Eugen Freiter <[email protected]> Signed-off-by: CSchlipp <[email protected]>
…e command (openhab#7825) * add support for merging several updates to one command * incorporate J-N-K feedback, adapt the logic for dimmer * add yfre to CODEOWNERS * incorporate feedback from @cpmeister * remove some blank lines Signed-off-by: Eugen Freiter <[email protected]>
…e command (openhab#7825) * add support for merging several updates to one command * incorporate J-N-K feedback, adapt the logic for dimmer * add yfre to CODEOWNERS * incorporate feedback from @cpmeister * remove some blank lines Signed-off-by: Eugen Freiter <[email protected]>
…e command (openhab#7825) * add support for merging several updates to one command * incorporate J-N-K feedback, adapt the logic for dimmer * add yfre to CODEOWNERS * incorporate feedback from @cpmeister * remove some blank lines Signed-off-by: Eugen Freiter <[email protected]>
…e command (openhab#7825) * add support for merging several updates to one command * incorporate J-N-K feedback, adapt the logic for dimmer * add yfre to CODEOWNERS * incorporate feedback from @cpmeister * remove some blank lines Signed-off-by: Eugen Freiter <[email protected]>
…e command (openhab#7825) * add support for merging several updates to one command * incorporate J-N-K feedback, adapt the logic for dimmer * add yfre to CODEOWNERS * incorporate feedback from @cpmeister * remove some blank lines Signed-off-by: Eugen Freiter <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
…e command (openhab#7825) * add support for merging several updates to one command * incorporate J-N-K feedback, adapt the logic for dimmer * add yfre to CODEOWNERS * incorporate feedback from @cpmeister * remove some blank lines Signed-off-by: Eugen Freiter <[email protected]>
Issue:
complex openHAB items like Dimmer and Color have several characteristic. in case of Color all 3 characteristics are updated with one command/state - HSBType.
in the same time, HomeKit home app sends updates for the characteristics independently of each other, e.g. update for hue, update for saturation and update for brightness.
as results, characteristics can be get overwritten.
see #7491 and https://community.openhab.org/t/coloritem-hue-and-saturation-updates/99468/4
for more details.
Solution:
as propose in https://community.openhab.org/t/coloritem-hue-and-saturation-updates/99468/4 this PR introduce a proxy for openHAB item, that collects commands/update first and then sends merged update - either wenn all relevant updates received or after 50ms after first update.
in addition to HUE/Saturation issue, this update also solved Dimmer issue with "ON" and "Bightness" updates at the same time. see https://community.openhab.org/t/homekit-homekit-sending-on-and-100-command/99485
Signed-off-by: Eugen Freiter [email protected]