HTML page will not show in layout page

Hello,
I have an EPL (Everything Presence Lite) in which an LD2450 is installed. I wanted to display the x and y values as points on a map for better understanding. For this purpose, I wanted to integrate the map into openHAB, which I tried with ChatGPT, but unfortunately without success.

First I tried it with an oh-html element, which looked like this:

Then I tried oh-webframe, but the result was the same in openHAB.
However, I can access the page directly via OH and then it looks like this:

What am I doing wrong?

Best regards

An LLM that can accurately help with OH is a loooong way off. Without specific curation of what they scap from these forums and the like, LLM’s gets much more ‘Why doesn’t this work’ examples then ‘This works’ examples. So, they are always going to give results that are closer to “doesn’t work” than “works”.

There is no oh-html element. For a description of the elements that are available in a custom widget you should read up here:

The oh-webframe is a very simple component. It is not for building anything within. It simple presents a frame where you can display a page that exists somewhere else. If you take a look at the webframe reference

you see that it has only two options. The webframe, however, is exactly the correct solution for your case here. Since you have a working page and it is in OH’s html folder (i.e., you know OH has access to it) then all you need to do put the url of that page in the src property of the webframe:

- component: oh-webframe
  config:
    src: url.to.your.page.here

LLMs have often helped me, but in this case it was obviously wrong to rely on them.
Under config there was the option “url”, but this is wrong, it must be “src” as you have thankfully already written.
Many thanks for the help!