Dear all after migrating to OH5.1 the visualization of myroomcard is unfortunately somewhat broken. Before the migration to 5.1 every was rendered correctly and the pictograms and status were on separate lines and transparent.
I am not a YAML Expert. Below the codefence. It is based on the original roomCard from Andras Uhrin (never published to Market place, but I like it)
Anybody any idea what to change on the code to get the transparency back and the line breaks as they were before .
Many thanks for pushing me into the right direction
uid: my_RoomCard
tags: []
props:
parameters:
- description: Header text
label: Header
name: header
required: false
type: TEXT
- description: Unique ID needed for popup (without space)
label: Unique ID
name: popupId
required: false
type: TEXT
- description: Color Code for the Top (html HEX code)
label: Color Code Top - day (hex)
name: colorCodeTop_d
required: false
type: TEXT
- description: Color Code for Text of the Top (html HEX code)
label: Color Code Text - day(hex)
name: colorCodeTopText_d
required: false
type: TEXT
- description: Color Code for the Top (html HEX code)
label: Color Code Top - night (hex)
name: colorCodeTop_n
required: false
type: TEXT
- description: Color Code for Text of the Top (html HEX code)
label: Color Code Text - night (hex)
name: colorCodeTopText_n
required: false
type: TEXT
- description: Color Code for the Bottom (html HEX code)
label: Color Code Bottom - day (hex)
name: colorCodeBottom_d
required: false
type: TEXT
- description: Color Code for Text of the Bottom (html HEX code)
label: Color Code Bottom Text - day(hex)
name: colorCodeBottomText_d
required: false
type: TEXT
- description: Color Code for the Bottom (html HEX code)
label: Color Code Bottom - night (hex)
name: colorCodeBottom_n
required: false
type: TEXT
- description: Color Code for Text of the Top (html HEX code)
label: Color Code Bottom Text - night (hex)
name: colorCodeBottomText_n
required: false
type: TEXT
- description: Background Image Url
label: Background Image Url
name: backgroundImageUrl
required: false
type: TEXT
- context: item
description: Lights state
label: Lights state
name: lightState
required: true
type: TEXT
- context: item
description: Window state
label: Window state
name: windowState
required: true
type: TEXT
- context: item
description: Temperature of Room
label: Measured Temperature of Room
name: roomTemperature
required: true
type: TEXT
- context: item
description: Setpoint Temperature of Room
label: Setpoint Temperature of Room
name: roomSetTemperature
required: true
type: TEXT
- description: Show Lower Part Information
label: Show Lower Part
name: showLowerPart
required: false
type: BOOLEAN
parameterGroups:
- name: buttonAction
context: action
label: Action
description: Action to start
timestamp: Dec 28, 2025, 7:57:32 PM
component: f7-card
config:
class:
- no-padding
style:
height: 120px
--f7-bars-text-color: white
--f7-button-bg-color: '=(themeOptions.dark === "dark") ? "#3F3F3F00" : "#F7F7F700"'
--f7-button-border-color: rgba(55, 55, 55, 0.15)
--f7-button-border-radius: 15px
--f7-button-border-width: 0px
--f7-button-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1)
--f7-button-fill-hover-bg-color: rgba(125, 125, 125, 0.9)
--f7-button-pressed-bg-color: rgba(125, 125, 125, 0.5)
--f7-card-border-color: rgba(55, 55, 55, 0.15)
--f7-card-border-radius: 15px
--f7-card-border-width: 2px
--f7-card-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1)
--f7-navbar-link-color: white
--f7-navbar-text-color: white
--roomWidgetBottomTextColor: '=(themeOptions.dark === "dark") ? "#F7F7F7" : "#111111"'
--roomWidgetLowerPart-bg-color: '=(themeOptions.dark === "dark") ? "#3F3F3F" : "#F7F7F7"'
--roomWidgetLowerPartRGBA-bg-color: '=(themeOptions.dark === "dark") ? "rgb(63,63,63)" : "rgb(247,247,247)"'
--roomWidgetUpperTextColor: '=(props.colorCodeTopText_d) ? (props.colorCodeTopText_d) : "#FFFFFF"'
slots:
default:
- component: oh-button
config:
actionPropsParameterGroup: buttonAction
class:
- no-padding
fill: false
style:
background: '=(props.backgroundImageUrl) ? "url(" + props.backgroundImageUrl +
")" : (props.colorCodeTop_d) ? (props.colorCodeTop_d) : "#AFDFFF"'
background-size: cover
height: 100%
no-border: true
width: 100%
slots:
default:
- component: f7-row
config:
class:
- display-flex
- flex-direction-row
- justify-content-center
- align-items-flex-end
- no-padding
style:
height: 60px
width: 100%
slots:
default:
- component: Label
config:
class:
- padding-left
- padding-top
- display-flex
- flex-direction-row
- justify-content-start
- align-items-flex-start
- text-align-left
style:
color: var(--roomWidgetUpperTextColor)
font-size: 20px
font-weight: 300
height: 100%
opacity: 100%
text-shadow: 0px 0px 6px rgba(0,0,0,1.0)
text-transform: none
width: 100%
text: =props.header
- component: f7-row
config:
class: '=(props.showLowerPart) ? "" : "display-none"'
style:
background: var(--roomWidgetLowerPart-bg-color)
height: 40px
opacity: 70%
width: 100%
slots:
default:
- component: f7-col
config:
class:
- display-flex
- flex-direction-row
- justify-content-center
- align-items-center
style:
height: 100%
width: 40px
slots:
default:
- component: f7-icon
config:
class: '=(props.lightState) ? "" : "display-none"'
f7: lightbulb
size: 15px
style:
color: var(--roomWidgetBottomTextColor)
- component: f7-col
config:
class:
- display-flex
- flex-direction-row
- justify-content-center
- align-items-center
style:
height: 100%
width: 40px
slots:
default:
- component: oh-icon
config:
class: '=(props.windowState) ? "" : "display-none"'
icon: window
size: 5px
style:
color: var(--roomWidgetBottomTextColor)
- component: f7-col
config:
class:
- display-flex
- flex-direction-row
- justify-content-center
- align-items-center
style:
height: 100%
width: calc(100% - 180px)
- component: f7-col
config:
class:
- display-flex
- flex-direction-row
- justify-content-center
- align-items-center
style:
height: 100%
width: 40px
slots:
default:
- component: Label
config:
class:
- text-align-center
style:
color: var(--roomWidgetBottomTextColor)
font-size: 12px
font-weight: 400
text: '=(props.roomTemperature) ?
Number(items[props.roomTemperature].state).toFixed(1)+"
°C " : ""'
- component: f7-row
config:
class: '=(props.showLowerPart) ? "" : "display-none"'
style:
background: var(--roomWidgetLowerPart-bg-color)
height: 30px
opacity: 90%
width: 100%
slots:
default:
- component: f7-col
config:
class:
- display-flex
- flex-direction-col
- justify-content-center
- align-items-flex-end
style:
height: 100%
width: 40px
slots:
default:
- component: Label
config:
class:
- display-flex
- flex-direction-column
- text-align-center
style:
color: var(--roomWidgetBottomTextColor)
font-size: 10px
font-weight: 300
text: '=(props.lightState) ? items[props.lightState].state : ""'
- component: f7-col
config:
class:
- display-flex
- flex-direction-row
- justify-content-center
- align-items-flex-end
style:
height: 100%
width: 40px
slots:
default:
- component: Label
config:
class:
- display-flex
- flex-direction-column
- text-align-center
style:
color: var(--roomWidgetBottomTextColor)
font-size: 10px
font-weight: 300
overflow: hidden
text: '=(props.windowState) ? items[props.windowState].state : ""'
- component: f7-col
config:
class:
- display-flex
- flex-direction-row
- justify-content-center
- align-items-felx-end
style:
height: 100%
width: calc(100% - 180px)
- component: f7-col
config:
class:
- display-flex
- flex-direction-row
- justify-content-center
- align-items-flex-end
style:
height: 100%
width: 40px
slots:
default:
- component: Label
config:
class:
- display-flex
- flex-direction-column
- text-align-center
style:
color: var(--roomWidgetBottomTextColor)
font-size: 10px
font-weight: 300
overflow: hidde
text: '=(props.roomSetTemperature) ? items[props.roomSetTemperature].state+"
°C " : ""'

