I am trying to recreate the following as a widget:
Switch item=gBedroom_Lights icon="light" mappings=[0="Off",30="Dim",100="On"]
What I have gotten so far is:
uid: segmented-dimmer-control
props:
parameters:
- description: The label for the widget
label: Title
required: false
type: TEXT
- context: item
description: The light switch Item
label: Item
name: item
required: true
type: TEXT
timestamp: Feb 13, 2021, 6:24:55 PM
component: f7-card
slots:
default:
- component: f7-row
slots:
default:
- component: f7-card-content
slots:
default:
- component: f7-row
slots:
default:
- component: f7-icon
config:
f7: lightbulb
iconColor: yellow
style:
margin-right: 10px
- component: Label
config:
text: Lights
iconF7: lightbulb
- component: f7-segmented
config:
raisedAurora: true
style:
margin-right: 5px
min-width: 150px
slots:
default:
- component: oh-button
config:
action: command
actionItem: =props.item
actionCommand: OFF
text: Off
- component: oh-button
config:
action: command
actionItem: =props.item
actionCommand: 30
text: Dim
- component: oh-button
config:
action: command
actionItem: =props.item
actionCommand: ON
text: On
It looks pretty close to what I want in the widget builder, but when I actually try the widget out it looks all jumbled. Any help would be appreciated. I was trying to get close to the rollershutter widget look.