-
-
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
[http] autorefesh after sending command to update… #17271
base: main
Are you sure you want to change the base?
Conversation
… channel state Signed-off-by: Timotheos Constambeys <[email protected]>
Signed-off-by: Timotheos Constambeys <[email protected]>
I don't think a general "refresh after command" is a desired function. Depending on the attached device it may also fail (e.g. when updating the internal state in the device takes longer than it takes the binding to issue the state request). Can you show describe what exactly you are doing? What items are connected to the channel, why are there several items, do you send commands to all items (or only one) and what exactly do you expect to happen? At best, show the thing or at least the channel configuration. |
Yes, I have the following configuration for an LED strip: Thing UID: http:url:2bcdb351df And 3 items bound to the channel
|
Why do you need three items for that? The Color item accepts all commands that Switch or Dimmer accept. |
In the color item I see only three bars for Hue, Saturation, Brightness how can I do the rest? |
Which UI? |
Am not sure is the default UI !
|
I didn't check, but can't you link |
My friend, I have checked what you have suggested and it works the same. However when triggering a command the state of the channel is not updated (a refresh command has to be fired) Anyway the refresh ability is already implemented what I have suggested is to trigger it quicker than waiting the timeout timer to be passed ! Other protocols like Tuya do the same thing, a feedback from the device is updating the state after a command is fired check my repo: https://github.com/constambeys/openhab-addons-tuya |
I still don't understand why this is necessary, but we can add it. However, it should be configurable with a default behavior that is the same as the current one. |
Hello,
In my openhab configuration I have multiple items bound to the same channel and when sending command only one item gets updated and the rest are updated after the refresh timeout passes.
I have modified the code to force update after sending command
Thanks
Timotheos Constambeys