Hello everyone,
I’m currently trying to create my first page in openHAB that isn’t a sitemap, and I’m really stuck… ![]()
I’ve read the documentation several times now, but somehow nowhere does it explain how, where, and which settings to set/find for certain things…
Maybe you can help me ![]()
I created the following page:
yaml:
config:
label: test2
sidebar: true
hideNavbar: true
style:
background: black
blocks:
- component: oh-block
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
slots:
default:
- component: oh-image-card
config:
height: 250px
width: 100px
style:
height: 250px
width: auto
--f7-card-bg-color: var(--f7-color-gray)
item: openHABServer_Item_wetter_Image
- component: oh-grid-col
config: {}
slots:
default: []
- component: oh-grid-col
config:
style:
background: transparent
slots:
default:
- component: oh-image-card
config:
height: 250px
style:
--f7-card-bg-color: var(--f7-color-gray)
url: http://xxx/s.jpg
refreshInterval: 500
action: command
actionItem: vPopupCam
actionCommand: ON
- component: oh-grid-cells
config: {}
slots:
default: []
masonry: []
grid: []
canvas: []
But I’m still struggling with the following:
-
How do I set the background colors correctly? I ended up with the fixed grid because the “Background: black” option works there, but not with the canvas…
-
Where can I find the right color options for the individual widgets? For the image card, I had to use the Chrome debugger to find the CSS option “–f7-card-bg-color: var(–f7-color-gray),” but that can’t be the right way, can it?
-
I was able to set the height of my two image card widgets, but I also want to define the width. How do I do that?




