[http] autorefesh after sending command to update…#17271
[http] autorefesh after sending command to update…#17271lsiepel merged 11 commits intoopenhab:mainfrom
Conversation
… channel state Signed-off-by: Timotheos Constambeys <timo0190@gmail.com>
Signed-off-by: Timotheos Constambeys <timo0190@gmail.com>
|
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. |
...g.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/HttpThingHandler.java
Outdated
Show resolved
Hide resolved
…ding/http/internal/HttpThingHandler.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Timotheos Constambeys <timo0190@gmail.com>
|
@constambeys to get this merged i suggest we make this configurable. |
|
Is it ok ? |
|
Thanks for updating this PR. I think this is ready, just one minor thing is left and that is to add this configuration parameter to the readme.md |
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