Hello community,
I have a problem with a widget that I transferred from openHAB 4.2.1 to openHAB 5.1.0.
Whenever I save the widget and call it up again, the oh-input no longer works. It only works again when I comment out the actionCommand, but only until I save it again, exit, and call it up again.
I just can’t find a solution. This widget works fine in 4.2.1.
uid: GUI_DATE_RANGE_SELECT
tags: []
props:
parameters:
- context: item
default: DateRange_Trigger
label: Trigger Item (Node-RED JSON)
name: itemTrigger
required: true
type: TEXT
- context: text
default: Zeitraum festlegen
label: Titel des Widgets
name: title
required: false
type: TEXT
- context: text
default: wallbox
label: Selector-Typ
name: selectorType
required: true
type: TEXT
timestamp: Jan 19, 2026, 11:22:21 AM
component: f7-card
config:
style:
border-radius: 10px
padding-bottom: 10px
box-shadow: 0px 4px 10px rgba(0,0,0,0.1)
margin: 8px
slots:
default:
- component: f7-card-header
config:
style:
align-items: center
font-weight: bold
padding: 10px 0
slots:
default:
- component: f7-row
config:
style:
align-items: center
width: 100%
slots:
default:
- component: f7-col
config:
style:
flex: 0 0 90px
padding-left: 10px
text-align: left
slots:
default:
- component: f7-icon
config:
color: green
f7: calendar_badge_plus
size: 24
- component: f7-col
config:
style:
flex: 1
text-align: right
slots:
default:
- component: Label
config:
text: =props.title
- component: f7-col
config:
style:
flex: 0 0 20px
- component: f7-card-content
slots:
default:
- component: f7-row
config:
style:
align-items: flex-start
width: 100%
margin-top: 1px
slots:
default:
- component: f7-col
config:
style:
flex: 1
padding: 0 4px
slots:
default:
- component: Label
config:
text: Von
style:
font-size: 14px
margin-bottom: 4px
padding-left: 10px
- component: oh-input
config:
type: datetime-local
variable: varStart
outline: true
style:
--f7-input-bg-color: rgba(0,0,0,0.03)
padding-left: 0px
- component: f7-col
config:
style:
flex: 1
padding: 0 4px
slots:
default:
- component: Label
config:
text: Bis
style:
font-size: 14px
margin-bottom: 4px
padding-left: 10px
- component: oh-input
config:
type: datetime-local
variable: varEnd
outline: true
style:
--f7-input-bg-color: rgba(0,0,0,0.03)
- component: f7-block
config:
style:
margin-top: 20px
padding: 0 px
slots:
default:
- component: oh-button
config:
text: Übernehmen
fill: true
raised: true
iconF7: paperplane_fill
disabled: =( !vars.varStart || !vars.varEnd ||
dayjs(vars.varEnd).isBefore(dayjs(vars.varStart)))
style:
height: 40px
padding-top: 6px
padding-bottom: 6px
line-height: 28px
border: 2px solid white
border-radius: 8px
text-transform: none
letter-spacing: 0
background: "=( !vars.varStart || !vars.varEnd ? 'var(--f7-color-gray)' :
dayjs(vars.varEnd).isBefore(dayjs(vars.varStart)) ?
'var(--f7-color-red)' : 'var(--f7-color-green)' )"
action: command
actionItem: =props.itemTrigger
actionCommand: =( '{"range":"custom",' + '"selectorType":"' + props.selectorType
+ '",' + '"start":"' +
dayjs(vars.varStart).format("YYYY-MM-DDTHH:mm:ssZ") + '",'
+ '"stop":"' +
dayjs(vars.varEnd).format("YYYY-MM-DDTHH:mm:ssZ") + '"}')
grateful for any help
freeet