[OH4] HTTP binding can't be set to pure WRITEONLY

Hi all,

maybe you can help me, please: I have an item linked to write-only channel of the http:url Thing. The write and resulting answer go well into the item, however the Thing periodically refreshes to the base address of the server: /cgi-bin/, for which I get 403 Forbidden error in the log every 30 seconds.

Is it possible to disable fully the state refresh of the thing based on the http binding? The UI doesn’t let me to put refresh down to 0 and insists on 1 s as minimum.

Thank you!

Welcome to the forum - workaround: set the refresh parameter to a high value …

You could also find a URL that returns a non-error code and use that for the state URL extension. That should suppress the error message.

Usually for write only situations the sendHttpXRequest actions are used from a rule.

It might be that there is a bug (which could be fixed by the improvements in [http] Improve binding by J-N-K · Pull Request #15376 · openhab/openhab-addons · GitHub). It could also be a bug that is still present. In any case: After that PR is merged: if the issue persists please post the full YAML (Code-View) part of the thing.

1 Like