Please see the yaml code below. It also contains the bedeckt cell. It is not (yet) moved into its own widget. This page is still under construction
I have seen in your screenshot, that you have two items for your CCT LED (ww/kw).
Have a look at the script I have written for this:
https://community.openhab.org/t/shelly-binding/56862/1655
and here is my widget code:
uid: my-cctled-cell
tags: []
props:
parameters:
- label: Label
name: vLabel
required: false
type: TEXT
- context: item
label: Item
name: vItem
required: false
type: TEXT
- context: item
label: CCT LED Item
name: vItemCct
required: false
type: TEXT
- label: Alt. command
name: vCmdAlt
required: false
type: TEXT
parameterGroups: []
timestamp: Jun 3, 2021, 9:47:11 PM
component: oh-label-cell
config:
label: =props.vLabel
icon: '=(items[props.vItem].state == "0") ? "oh:slider-0" : "oh:slider-100"'
color: '=(items[props.vItem].state == "0") ? "gray" : "white"'
header: =items[props.vItem].state + "%"
actionItem: =props.vItem
action: toggle
actionCommand: OFF
actionCommandAlt: =props.vCmdAlt
actionFeedback: ok
on: true
style:
_--f7-card-expandable-bg-color: "#F3F3F3"
slots:
default:
- component: oh-repeater
config:
sourceType: array
for: btn
in:
- label: An
cmd: 100
- label: 70%
cmd: 70
- label: 40%
cmd: 40
- label: Aus
cmd: 0
fragment: true
slots:
default:
- component: oh-button
config:
actionItem: =props.vItem
outline: false
class:
- display-flex
- flex-direction-column
style:
height: 70px
width: 230px
margin-top: 20px
--f7-button-bg-color: '=(items[props.vItem].state == loop.btn.cmd) ? "#C8C8C8" : "white"'
--f7-button-pressed-bg-color: gray
color: black
font-size: 20px
font-weight: 400
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: var(--f7-card-expandable-box-shadow)
--f7-button-text-transform: none
text: =loop.btn.label
action: command
actionCommand: =loop.btn.cmd
- component: oh-slider
config:
item: =props.vItemCct
vertical: false
min: 0
max: 100
label: true
scale: false
unit: "%"
style:
margin-top: 50px
width: 230px
--f7-range-size: 28px
--f7-range-bar-size: 6px
--f7-range-bar-border-radius: 2px
--f7-range-knob-size: 30px
--f7-range-knob-color: white
--f7-range-knob-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3)
--f7-range-bar-active-bg-color: transparent
--f7-range-bar-bg-color: linear-gradient(to right, rgba(255,177,110,1.0), rgba(227,255,255,1.0)
--f7-range-label-size: 20px
--f7-range-label-text-color: white
Here is the code of the page:
config:
layoutType: responsive
label: Home
sidebar: true
showFullscreenIcon: true
hideNavbar: true
hideSidebarIcon: true
order: "1"
style:
--f7-navbar-height: 0px
blocks:
- component: oh-block
config:
title: Wohnzimmer
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-dimmer-cell
config:
vLabel: Esstisch
vItem: ShellyWZEsstischlampe_Helligkeit
vCmdAlt: 40
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-dimmer-cell
config:
vLabel: Sofalampe
vItem: ShellyWZSofalampe_Helligkeit
vCmdAlt: 70
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-dimmer-cell
config:
vLabel: Stehlampe
vItem: ShellyWZStehlampe_Helligkeit
vCmdAlt: 40
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: oh-label-cell
config:
label: =items.OWM_Aussentemperatur.displayState + " / " +
items.OWM_GefuhlteTemperatur.displayState
header: =items.OWM_Wetterlage.state
footer: '="Sonne: " + dayjs(items.OWM_SunriseTime.state).format("HH:mm") + " - "
+ dayjs(items.OWM_SunsetTime.state).format("HH:mm")'
color: gray
on: true
subtitle: '="Bewölkung: " + items.OWM_Bewolkung.displayState'
icon: ="oh:owm-" + items.OWM_IconID.state
slots:
default:
- component: Label
config:
text: items.OWM_Wind.displayState
- component: oh-image
config:
url: ="http://192.168.178.61:8080/icon/mymoon-" +
items.Mondphase.state.toString() + ".svg"
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-rollershutter-cell
config:
vLabel: Terrasse
vItem: ShellyWZTurrollladen_Steuerung
vCmd: 85,0
vCmds: 0=△,STOP=✕,100=▽,85=85%,40=40%
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-rollershutter-cell
config:
vLabel: Fenster
vItem: ShellyWZFensterrollladen_Steuerung
vCmd: 85,0
vCmds: 0=△,STOP=✕,100=▽,85=85%,40=40%
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-rollershutter-cell
config:
vLabel: Küche
vItem: ShellyKucheRollladen_Steuerung
vCmd: 85,0
vCmds: 0=△,STOP=✕,100=▽,85=85%,40=40%
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-status-cell
config: {}
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-toggle-cell
config:
vLabel: Eingangslicht
vItem: ShellyEingangAussenlicht_Betrieb
vCmdOn: An,oh:slider-100
vCmdOff: Aus,oh:slider-0
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-toggle-cell
config:
vLabel: Aquarium
vItem: ShellyWZAquarium_Betrieb
vCmdOn: An,oh:slider-100
vCmdOff: Aus,oh:slider-0
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: oh-label-cell
config:
label: Licht aus
icon: f7:lightbulb_slash
color: '=(items.LichtAus.state == "OFF") ? "gray" : "white"'
action: command
actionItem: LichtAus
actionFeedback: ok
actionCommand: ON
on: true
expandable: false
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: oh-label-cell
config:
label: Gute Nacht
icon: f7:moon_zzz
color: '=(items.GuteNacht.state == "OFF") ? "gray" : "white"'
header: '=(items.GuteNacht.state == "ON") ? "Gute Nacht" : ""'
action: command
actionItem: GuteNacht
actionFeedback: Gute Nacht!
actionCommand: ON
on: true
expandable: false
- component: oh-block
config:
title: Aussenbereich
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-rollershutter-cell
config:
vLabel: Markise
vItem: ShellyGartenMarkise_Steuerung
vCmd: 0,70
vCmds: 0=Reinfahren,STOP=✕,100=Rausfahren,70=70%
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-dimmer-cell
config:
vLabel: Markise1
vItem: ShellyGartenMarkisenlicht_Channel1_Brightness
vCmdAlt: 40
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-dimmer-cell
config:
vLabel: Markise2
vItem: ShellyGartenMarkisenlicht_Channel2_Brightness
vCmdAlt: 40
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-cctled-cell
config:
vLabel: Kugellampe
vItem: ShellyGartenKugellampe_Helligkeit
vCmdAlt: 70
vItemCct: ShellyGartenKugellampe_Lichttemperatur
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-toggle-cell
config:
vLabel: Wandlampe
vItem: ShellyGartenWandlampe_Betrieb
vCmdOn: An,oh:slider-100
vCmdOff: Aus,oh:slider-0
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-toggle-cell
config:
vLabel: Hauptschalter
vItem: ShellyGartenHauptschalter_Betrieb
vCmdOn: An,oh:switch-on
vCmdOff: Aus,oh:switch-off
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default: []
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-actionOptions-cell
config:
vLabel: Kamera
vIcon: f7:videocam
vItem: vPopupCam
vCmd: Eingang
vCmds: Eingang=Eingang,Garten=Garten
- component: oh-block
config:
title: Obergeschoss
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-cctled-cell
config:
vLabel: Gaube
vItem: ShellyDGGaubenlicht_Helligkeit
vCmdAlt: 70
vItemCct: ShellyDGGaubenlicht_Lichttemperatur
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-cctled-cell
config:
vLabel: Schrank
vItem: ShellyDGSchranklicht_Helligkeit
vCmdAlt: 70
vItemCct: ShellyDGSchranklicht_Lichttemperatur
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-toggle-cell
config:
vLabel: Luisa Aquarium
vItem: ShellyLuisaAquarium_Betrieb
vCmdOn: An,oh:slider-100
vCmdOff: Aus,oh:slider-0
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-cam-popup
config: {}
- component: oh-block
config:
title: System
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-toggle-cell
config:
vLabel: Klingel
vItem: Klingel_Active
vCmdOn: An,oh:switch-on
vCmdOff: Aus,oh:switch-off
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-toggle-cell
config:
vLabel: Urlaub
vItem: Urlaub
vCmdOn: An,oh:switch-on
vCmdOff: Aus,oh:switch-off
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-actionOptions-cell
config:
vLabel: openHAB
vIcon: oh:openhab
vItem: vOpenhabCmd
vCmds: ohstop=openHAB Stop,ohrestart=openHAB Restart,ohlog=openHAB
ShowLog,pireboot=PI Reboot,pishutdown=PI
Shutdown,test=Test
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: oh-label-cell
config:
label: Test Item
icon: oh:openhab
color: '=(items.TestItem.state == "OFF") ? "gray" : "white"'
header: =items.TestItem.state
action: toggle
actionItem: TestItem
actionFeedback: ok
actionCommand: ON
actionCommandAlt: OFF
on: true
expandable: false
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default: []
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default: []
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default: []
- component: oh-grid-col
config:
width: "50"
xsmall: "25"
slots:
default:
- component: widget:my-toggle-cell
config:
vLabel: Plug
vItem: ShellyWZPlug_Betrieb
vCmdOn: An,oh:switch-on
vCmdOff: Aus,oh:switch-off
masonry: null
grid: []