Assign return value of widget actionHttp to variable

Hi @florian-h05 ,
quick question on your new feature widget action actionHttp.
Is it possible to assign the return to a variable?

No, that’s not possible.
That feature BTW isn’t meant to replace gathering data server-side, my motivation to build this was to create a secure way to locally (in my WiFi) unlock my door through a HTTP call where the client needs to authenticate against my nginx with a client certificate.

To prevent people from using that feature to fetch data into the UI, I would only allow storing the response code/status to a variable, not the actual content of the response.

FYI with future releases we might introduce a list on the server where allowed HTTP requests have to be listed. This is to avoid that an attacker with admin access to openHAB can make Main UI send malicious requests.

2 Likes