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

[hue] States are changed multiple times because of rounding #15983

Closed
jlaur opened this issue Nov 30, 2023 · 0 comments · Fixed by #15984
Closed

[hue] States are changed multiple times because of rounding #15983

jlaur opened this issue Nov 30, 2023 · 0 comments · Fixed by #15984
Assignees
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@jlaur
Copy link
Contributor

jlaur commented Nov 30, 2023

The default auto update policy causes state to be updated immediately when commands are received rather than awaiting the actual state provided by the bridge.

Example:

2023-11-25 23:56:36.113 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'Brightness' received command 30
2023-11-25 23:56:36.114 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Brightness' predicted to become 30
2023-11-25 23:56:36.115 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Brightness' changed from 0 to 30
2023-11-25 23:56:36.207 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Brightness' changed from 30 to 30.04
2023-11-25 23:56:36.207 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Switch' changed from OFF to ON

Or even worse:

2023-11-25 23:59:12.488 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'Brightness' received command ON
2023-11-25 23:59:12.488 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Brightness' predicted to become ON
2023-11-25 23:59:12.489 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Brightness' changed from 0 to 100
2023-11-25 23:59:12.730 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Brightness' changed from 100 to 30.04
2023-11-25 23:59:12.730 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Switch' changed from OFF to ON

Your Environment

  • Version used: 4.1-SNAPSHOT
@jlaur jlaur added the enhancement An enhancement or new feature for an existing add-on label Nov 30, 2023
@jlaur jlaur self-assigned this Nov 30, 2023
jlaur added a commit to jlaur/openhab-addons that referenced this issue Nov 30, 2023
jlaur added a commit to jlaur/openhab-addons that referenced this issue Nov 30, 2023
jlaur added a commit to jlaur/openhab-addons that referenced this issue Dec 4, 2023
jlaur added a commit to jlaur/openhab-addons that referenced this issue Dec 4, 2023
kaikreuzer pushed a commit that referenced this issue Dec 5, 2023
austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant