Alternative solution to switch items over HTTP without ClassicUI

Hi,

I have found a solution for me here:

and

I think it’s not the best way but I’ll test it.

I have created a “test.html” in the openHAB-HTML-Folder and can now call this HTML-File from my BEDDI alarm clock. In the HTML file a call to the REST API is integrated.

When I create to HTML files “test_on.html” and “test_off.html” I can switch my items there.

Is there a better way for integrating external calls without ClassicUI?

Thanks,
Reinhard

Edit:

I have found a little error for me in commanditem.html:

The following lines musst commented out for use with openHAB 3:

  //paramName = paramName.toLowerCase();
  //paramValue = paramValue.toLowerCase();