Cell_Card_1A:
uid: Cell_Card_1A
tags: []
props:
parameters:
- description: Small title on top of the card
label: Title
name: title
required: false
type: TEXT
- description: Header big sized
label: Header
name: header
required: false
type: TEXT
- description: Icon on top of the card (only f7 icons (without f7:))
label: Icon
name: icon
required: false
type: TEXT
- description: rgba or HEX
label: Background Color
name: bgcolor
required: false
type: TEXT
- context: item
description: Item to control
label: Item
name: item
required: false
type: TEXT
- label: Command to send
name: command
required: false
type: TEXT
parameterGroups: []
timestamp: May 14, 2021, 2:45:41 PM
component: f7-card
config:
style:
noShadow: false
class:
- padding: 0px
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
background-color: "=props.bgcolor ? props.bgcolor : ''"
height: 70px
margin-left: 5px
margin-right: 5px
slots:
content:
- component: f7-block
config:
style:
position: absolute
top: -5px
left: 16px
flex-direction: row
display: flex
slots:
default:
- component: f7-icon
config:
f7: =props.icon
size: 18
style:
margin-right: 10px
visible: "=props.icon ? true : false"
- component: Label
config:
text: "=props.title ? props.title : ''"
style:
font-size: 12px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
bottom: -15px
left: 16px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=props.header ? props.header : 'Set Props'"
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
- component: oh-link
config:
action: command
actionItem: =props.item
style:
position: absolute
top: 0
left: 0
height: 60px
width: 100%
actionPosition: center
actionCommand: =props.command
actionFeedback: Done!
Card_room_12A:
uid: Card_room_12A
tags: []
props:
parameters:
- label: Header
name: text_header
required: false
type: TEXT
- description: icon name without ".png", located in static/icons/ folder
label: Icon
name: iconimage
required: false
type: TEXT
- description: HEX or rgba
label: Backgroundcolor
name: bgcolor
required: false
type: TEXT
- context: item
description: select item for state light1
label: Item
name: status_light1
required: false
type: TEXT
- context: item
description: select item for state light2
label: Item
name: status_light2
required: false
type: TEXT
- context: item
description: select item for state light3
label: Item
name: status_light3
required: false
type: TEXT
- context: item
description: select item for temperature
label: Item
name: temp
required: false
type: TEXT
- context: item
description: select item for set temperature
label: Item
name: settemp
required: false
type: TEXT
- context: item
description: select item for humidity
label: Item
name: humidity
required: false
type: TEXT
- context: item
description: select item for state blind1
label: Item
name: blind1
required: false
type: TEXT
- context: item
description: select item for state blind slats1
label: Item
name: blind_slats1
required: false
type: TEXT
- context: item
description: select item for state blind2
label: Item
name: blind2
required: false
type: TEXT
- context: item
description: select item for state blind slats2
label: Item
name: blind_slats2
required: false
type: TEXT
- context: item
description: select item for state blind3
label: Item
name: blind3
required: false
type: TEXT
- context: item
description: select item for state blind slats3
label: Item
name: blind_slats3
required: false
type: TEXT
- context: item
description: select item for door state(s)
label: Item
name: door_state
required: false
type: TEXT
- description: Page which will be opened as popup
label: Page ID
name: page
required: false
timestamp: Jun 20, 2021, 6:28:44 PM
component: f7-card
config:
style:
noShadow: false
class:
- padding: 0px
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
background-color: "=props.bgcolor ? props.bgcolor : ''"
height: 100px
margin-left: 5px
margin-right: 5px
slots:
content:
- component: f7-block
config:
style:
position: absolute
top: -5px
left: 45px
slots:
default:
- component: Label
config:
text: "=props.text_header ? props.text_header : 'Set Props'"
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
bottom: -20px
left: 5px
slots:
default:
- component: oh-link
config:
visible: "=props.status_light1 ? true : false"
iconF7: "=(items[props.status_light1].state === 'ON' ) ? 'lightbulb_fill' : (items[props.status_light1].state === 'OFF' ) ? 'lightbulb' : (items[props.status_light1].state > 0 ) ? 'lightbulb_fill' : 'lightbulb' "
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'orange'"
iconSize: 20
iconBadge: "=(items[props.status_light1].state > 0) ? items[props.status_light1].state : ''"
- component: oh-link
config:
style:
position: absolute
left: 50px
visible: "=props.status_light2 ? true : false"
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'orange'"
iconF7: "=(items[props.status_light2].state === 'ON' ) ? 'lightbulb_fill' : (items[props.status_light2].state === 'OFF' ) ? 'lightbulb' : (items[props.status_light2].state > 0 ) ? 'lightbulb_fill' : 'lightbulb' "
iconSize: 20
iconBadge: "=(items[props.status_light2].state > 0) ? items[props.status_light2].state : ''"
- component: oh-link
config:
style:
position: absolute
left: 85px
visible: "=props.status_light3 ? true : false"
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'orange'"
iconF7: "=(items[props.status_light3].state === 'ON' ) ? 'lightbulb_fill' : (items[props.status_light3].state === 'OFF' ) ? 'lightbulb' : (items[props.status_light3].state > 0 ) ? 'lightbulb_fill' : 'lightbulb' "
iconSize: 20
iconBadge: "=(items[props.status_light3].state > 0) ? items[props.status_light3].state : ''"
- component: oh-link
config:
style:
position: absolute
left: 120px
visible: "=props.blind1 ? true : false"
iconColor: "=(props.blind_slats1) ? 'gray' : (themeOptions.dark === 'dark') ? 'white' : 'black'"
iconF7: "=items[props.blind1].state > 50 ? 'app_fill' : 'app'"
iconSize: 24
iconBadge: "=(props.blind_slats1) ? '' : (items[props.blind1].state > 0 ) ? items[props.blind1].state : ''"
- component: oh-link
config:
style:
position: absolute
left: 120px
visible: "=(props.blind_slats1) && (items[props.blind1].state > 50) && (items[props.blind_slats1].state < 30 ) ? true : false"
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
iconF7: "=(items[props.blind_slats1].state === '0' ) ? 'arrow_down_square' : 'arrow_down_right_square'"
iconSize: 24
- component: oh-link
config:
style:
position: absolute
left: 120px
visible: "=(props.blind_slats1) && (items[props.blind1].state > 50) && (items[props.blind_slats1].state > 30 ) ? true : false"
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
iconF7: "=(items[props.blind_slats1].state === '50' ) ? 'arrow_right_square' : 'arrow_up_square'"
iconSize: 24
- component: oh-link
config:
style:
position: absolute
left: 155px
visible: "=props.blind2 ? true : false"
iconColor: "=(props.blind_slats2) ? 'gray' : (themeOptions.dark === 'dark') ? 'white' : 'black'"
iconF7: "=items[props.blind2].state > 50 ? 'app_fill' : 'app'"
iconSize: 24
iconBadge: "=(props.blind_slats2) ? '' : (items[props.blind2].state > 0 ) ? items[props.blind2].state : ''"
- component: oh-link
config:
style:
position: absolute
left: 155px
visible: "=(props.blind_slats2) && (items[props.blind2].state > 50) && (items[props.blind_slats2].state < 30 ) ? true : false"
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
iconF7: "=(items[props.blind_slats2].state === '0' ) ? 'arrow_down_square' : 'arrow_down_right_square'"
iconSize: 24
- component: oh-link
config:
style:
position: absolute
left: 155px
visible: "=(props.blind_slats2) && (items[props.blind2].state > 50) && (items[props.blind_slats2].state > 30 ) ? true : false"
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
iconF7: "=(items[props.blind_slats2].state === '50' ) ? 'arrow_right_square' : 'arrow_up_square'"
iconSize: 24
- component: oh-link
config:
style:
position: absolute
left: 190px
visible: "=props.blind3 ? true : false"
iconColor: "=(props.blind_slats3) ? 'gray' : (themeOptions.dark === 'dark') ? 'white' : 'black'"
iconF7: "=items[props.blind3].state > 50 ? 'app_fill' : 'app'"
iconSize: 22
iconBadge: "=(props.blind_slats3) ? '' : (items[props.blind3].state > 0 ) ? items[props.blind3].state : ''"
- component: oh-link
config:
style:
position: absolute
left: 190px
visible: "=(props.blind_slats3) && (items[props.blind3].state > 50) && (items[props.blind_slats3].state < 30 ) ? true : false"
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
iconF7: "=(items[props.blind_slats3].state === '0' ) ? 'arrow_down_square' : 'arrow_down_right_square'"
iconSize: 24
- component: oh-link
config:
style:
position: absolute
left: 190px
visible: "=(props.blind_slats3) && (items[props.blind3].state > 50) && (items[props.blind_slats3].state > 30 ) ? true : false"
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
iconF7: "=(items[props.blind_slats3].state === '50' ) ? 'arrow_right_square' : 'arrow_up_square'"
iconSize: 24
- component: oh-icon
config:
icon: "=items[props.door_state].state === 'OPEN' ? 'door-open' : 'door-closed'"
style:
position: absolute
left: 120px
bottom: 0px
height: 24px
visible: "=props.door_state ? true : false"
- component: f7-block
config:
style:
position: absolute
bottom: -50px
left: 5px
slots:
default:
- component: f7-chip
config:
style:
--f7-chip-bg-color: rgba(255, 255, 255, 0)
visible: "=props.temp ? true : false"
text: "=(items[props.temp].displayState ? items[props.temp].displayState : items[props.temp].state) + (props.settemp ? ' (' + items[props.settemp].state + ')' : '')"
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
iconF7: thermometer
iconSize: 18
- component: f7-chip
config:
style:
--f7-chip-bg-color: rgba(255, 255, 255, 0)
visible: "=props.humidity ? true : false"
text: =items[props.humidity].state + '%'
iconColor: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
iconF7: drop
iconSize: 18
- component: oh-image
config:
url: ='/static/icons/' + props.iconimage + '.png'
style:
position: absolute
left: 10px
top: 10px
height: 25px
opacity: 0.7
visible: "=props.iconimage ? true : false"
- component: oh-link
config:
action: popup
actionModal: ='page:' + props.page
style:
position: absolute
left: 0px
top: 0px
height: 110px
width: 100%
Cell_Shutter_Card_1:
uid: Cell_Shutter_Card_1
tags: []
props:
parameters:
- description: Small title on top of the card
label: Title
name: title
required: false
type: TEXT
- description: Header big sized
label: Header
name: header
required: false
type: TEXT
- description: icon name without ".png", located in static/icons/ folder
label: Icon
name: iconimage
required: false
type: TEXT
- description: HEX or rgba
label: Background Color
name: bgcolor
required: false
type: TEXT
- context: item
description: Shutter item to control
label: Item
name: item
required: false
type: TEXT
parameterGroups: []
timestamp: Jun 20, 2021, 5:24:18 PM
component: f7-card
config:
style:
noShadow: false
padding: 0px
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
background-color: "=props.bgcolor ? props.bgcolor : ''"
height: 120px
margin-left: 5px
margin-right: 5px
slots:
content:
- component: f7-block
config:
style:
position: absolute
top: -5px
left: 40px
flex-direction: row
display: flex
slots:
default:
- component: Label
config:
text: "=props.title ? props.title : ''"
style:
font-size: 12px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
bottom: -15px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=props.header ? props.header : 'Set Props'"
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
bottom: -35px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=(items[props.item].state !== '0' ) ? items[props.item].state + '% geschlossen' : 'offen'"
style:
font-size: 12px
margin-left: 0px
margin-top: 0px
- component: oh-button
config:
iconColor: red
iconF7: arrow_up_circle
iconSize: 34
action: command
actionItem: =props.item
actionCommand: UP
style:
position: absolute
top: 10px
right: 5px
height: 35px
background: transparent
- component: oh-button
config:
iconColor: red
iconF7: stop_circle
iconSize: 28
action: command
actionItem: =props.item
actionCommand: STOP
style:
position: absolute
top: 44px
right: 8px
height: 32px
background: transparent
- component: oh-button
config:
iconColor: red
iconF7: arrow_down_circle
iconSize: 34
action: command
actionItem: =props.item
actionCommand: DOWN
style:
position: absolute
top: 78px
right: 5px
height: 35px
background: transparent
- component: oh-image
config:
url: ='/static/icons/' + props.iconimage + '.png'
style:
position: absolute
left: 10px
top: 10px
height: 25px
opacity: 0.7
visible: "=props.iconimage ? true : false"
Cell_Shutter_Card_1A:
uid: Cell_Shutter_Card_1A
tags: []
props:
parameters:
- description: Small title on top of the card
label: Title
name: title
required: false
type: TEXT
- description: Header big sized
label: Header
name: header
required: false
type: TEXT
- description: icon name without ".png", located in static/icons/ folder
label: Icon
name: iconimage
required: false
type: TEXT
- description: HEX or rgba
label: Background Color
name: bgcolor
required: false
type: TEXT
- context: item
description: blinds item to control
label: Item
name: item
required: false
type: TEXT
- description: blinds value position 1
label: value pos1
name: value1
required: false
type: TEXT
- description: blinds value position 2
label: value pos2
name: value2
required: false
type: TEXT
- description: blinds value position 3
label: value pos3
name: value3
required: false
type: TEXT
parameterGroups: []
timestamp: Jun 20, 2021, 5:30:13 PM
component: f7-card
config:
style:
noShadow: false
padding: 0px
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
background-color: "=props.bgcolor ? props.bgcolor : ''"
height: 120px
margin-left: 5px
margin-right: 5px
slots:
content:
- component: f7-block
config:
style:
position: absolute
top: -5px
left: 40px
flex-direction: row
display: flex
slots:
default:
- component: Label
config:
text: "=props.title ? props.title : ''"
style:
font-size: 12px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
bottom: -15px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=props.header ? props.header : 'Set Props'"
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
bottom: -35px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=(items[props.item].state !== '0' ) ? items[props.item].state + '% geschlossen' : 'offen'"
style:
font-size: 12px
margin-left: 0px
margin-top: 0px
- component: oh-link
config:
iconColor: black
iconF7: equal_square
iconSize: 32
iconBadge: "=props.value1 ? props.value1 : ''"
action: command
actionItem: =props.item
actionCommand: "=props.value1 ? props.value1 : ''"
style:
position: absolute
top: 10px
right: 20px
height: 33px
background: transparent
- component: oh-link
config:
iconColor: gray
iconF7: equal_square_fill
iconSize: 32
iconBadge: "=props.value2 ? props.value2 : ''"
action: command
actionItem: =props.item
actionCommand: "=props.value2 ? props.value2 : ''"
style:
position: absolute
top: 44px
right: 20px
height: 33px
background: transparent
- component: oh-link
config:
iconColor: black
iconF7: equal_square_fill
iconSize: 32
iconBadge: "=props.value3 ? props.value3 : ''"
action: command
actionItem: =props.item
actionCommand: "=props.value3 ? props.value3 : ''"
style:
position: absolute
top: 78px
right: 20px
height: 33px
background: transparent
- component: oh-button
config:
iconColor: red
iconF7: arrow_up_circle
iconSize: 34
action: command
actionItem: =props.item
actionCommand: UP
style:
position: absolute
top: 10px
right: 48px
height: 35px
background: transparent
- component: oh-button
config:
iconColor: red
iconF7: stop_circle
iconSize: 28
action: command
actionItem: =props.item
actionCommand: STOP
style:
position: absolute
top: 44px
right: 50px
height: 32px
background: transparent
- component: oh-button
config:
iconColor: red
iconF7: arrow_down_circle
iconSize: 34
action: command
actionItem: =props.item
actionCommand: DOWN
style:
position: absolute
top: 78px
right: 48px
height: 35px
background: transparent
- component: oh-image
config:
url: ='/static/icons/' + props.iconimage + '.png'
style:
position: absolute
left: 10px
top: 10px
height: 25px
opacity: 0.7
visible: "=props.iconimage ? true : false"
Cell_Shutter_Card_2:
uid: Cell_Shutter_Card_2
tags: []
props:
parameters:
- description: Small title on top of the card
label: Title
name: title
required: false
type: TEXT
- description: Header big sized
label: Header
name: header
required: false
type: TEXT
- description: icon name without ".png", located in static/icons/ folder
label: Icon
name: iconimage
required: false
type: TEXT
- description: HEX or rgba
label: Background Color
name: bgcolor
required: false
type: TEXT
- context: item
description: blinds item to control
label: Item
name: blinds
required: false
type: TEXT
- context: item
description: blind slats item to control
label: Item
name: blind_slats
required: false
type: TEXT
parameterGroups: []
timestamp: Jun 20, 2021, 5:32:40 PM
component: f7-card
config:
style:
noShadow: false
padding: 0px
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
background-color: "=props.bgcolor ? props.bgcolor : ''"
height: 120px
margin-left: 5px
margin-right: 5px
slots:
content:
- component: f7-block
config:
style:
position: absolute
top: -5px
left: 40px
flex-direction: row
display: flex
slots:
default:
- component: Label
config:
text: "=props.title ? props.title : ''"
style:
font-size: 12px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
bottom: -15px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=props.header ? props.header : 'Set Props'"
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
bottom: -35px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=(items[props.blinds].state > 0) ? 'ausgefahren' : 'eingefahren'"
style:
font-size: 12px
margin-left: 0px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
bottom: -55px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=(items[props.blind_slats].state === '0') ? 'zu' : (items[props.blind_slats].state === '25') ? 'halb zu' : (items[props.blind_slats].state === '50')? 'offen' : '???'"
style:
font-size: 12px
margin-left: 0px
margin-top: 0px
- component: oh-button
config:
iconColor: blue
iconF7: arrow_right_square_fill
iconSize: 32
action: command
actionItem: =props.blind_slats
actionCommand: "50"
style:
position: absolute
top: 10px
right: 0px
height: 33px
background: transparent
- component: oh-button
config:
iconColor: blue
iconF7: arrow_down_right_square_fill
iconSize: 32
action: command
actionItem: =props.blind_slats
actionCommand: "25"
style:
position: absolute
top: 44px
right: 0px
height: 33px
background: transparent
- component: oh-button
config:
iconColor: blue
iconF7: arrow_down_square_fill
iconSize: 32
action: command
actionItem: =props.blind_slats
actionCommand: "0"
style:
position: absolute
top: 78px
right: 0px
height: 33px
background: transparent
- component: oh-button
config:
iconColor: red
iconF7: arrow_up_circle
iconSize: 34
action: command
actionItem: =props.blinds
actionCommand: UP
style:
position: absolute
top: 10px
right: 38px
height: 35px
background: transparent
- component: oh-button
config:
iconColor: red
iconF7: stop_circle
iconSize: 28
action: command
actionItem: =props.blinds
actionCommand: STOP
style:
position: absolute
top: 44px
right: 40px
height: 32px
background: transparent
- component: oh-button
config:
iconColor: red
iconF7: arrow_down_circle
iconSize: 34
action: command
actionItem: =props.blinds
actionCommand: DOWN
style:
position: absolute
top: 78px
right: 38px
height: 35px
background: transparent
- component: oh-image
config:
url: ='/static/icons/' + props.iconimage + '.png'
style:
position: absolute
left: 10px
top: 10px
height: 25px
opacity: 0.7
visible: "=props.iconimage ? true : false"
Cell_Light_Color_Card_2:
uid: Cell_Light_Color_Card_2
tags: []
props:
parameters:
- description: Small title on top of the card
label: Title
name: title
required: false
type: TEXT
- description: Header big sized
label: Header
name: header
required: false
type: TEXT
- description: icon name without ".png", located in static/icons/ folder
label: Icon
name: iconimage
required: false
type: TEXT
- description: rgba or HEX
label: Background Color
name: bgcolor
required: false
type: TEXT
- context: item
description: Item to control on/off
label: Item ON OFF
name: item_schalter
required: false
type: TEXT
- context: item
description: Item to control color
label: Item light color
name: item_color
required: false
type: TEXT
parameterGroups: []
timestamp: May 24, 2021, 2:35:19 PM
component: f7-card
config:
style:
noShadow: false
padding: 0px
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
background-color: "=props.bgcolor ? props.bgcolor : ''"
height: 165px
margin-left: 5px
margin-right: 5px
slots:
default:
- component: f7-card-content
config:
class:
- display-flex
- flex-direction-column
- justify-content-flex-start
- align-items-left
style:
--f7-color-picker-slider-size: 18px
--f7-color-picker-slider-knob-size: 20px
slots:
default:
- component: f7-row
config:
style:
position: absolute
top: 10px
left: 40px
flex-direction: row
display: flex
slots:
default:
- component: Label
config:
text: "=props.title ? props.title : ''"
style:
font-size: 12px
margin-top: 0px
- component: f7-block
config:
class:
- no-padding
style:
position: absolute
top: 40px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=props.header ? props.header : 'Set Props'"
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
- component: f7-block
config:
class:
- no-padding
style:
position: absolute
top: 70px
left: 10px
flex-direction: row
width: calc(100% - 100px)
margin-top: 7px
--f7-range-bar-size: 12px
--f7-range-bar-border-radius: 10px
--f7-range-knob-size: 20px
--f7-range-bar-active-bg-color: transparent
--f7-range-bar-bg-color: linear-gradient(to right, rgba(246,158,81,0.8), rgba(246,158,81,0))
--f7-range-knob-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3)
--f7-range-label-text-color: black
--f7-color-picker-slider-size: 12px
--f7-color-picker-slider-knob-size: 20px
z-index: 99 !important
slots:
default:
- component: oh-colorpicker
config:
color: red
label: true
item: =props.item_color
modules:
- hsb-sliders
- component: oh-toggle
config:
item: =props.item_color
style:
position: absolute
top: 15px
right: 90px
- component: oh-button
config:
iconColor: red
iconF7: app_fill
iconSize: 34
action: command
actionItem: =props.item_color
actionCommand: 0,100,100
style:
position: absolute
top: 10px
right: 35px
height: 35px
background: transparent
- component: oh-button
config:
iconColor: deeporange
iconF7: app_fill
iconSize: 34
action: command
actionItem: =props.item_color
actionCommand: 15,100,100
style:
position: absolute
top: 45px
right: 35px
height: 34px
background: transparent
- component: oh-button
config:
iconColor: orange
iconF7: app_fill
iconSize: 34
action: command
actionItem: =props.item_color
actionCommand: 30,100,100
style:
position: absolute
top: 80px
right: 35px
height: 35px
background: transparent
- component: oh-button
config:
iconColor: yellow
iconF7: app_fill
iconSize: 34
action: command
actionItem: =props.item_color
actionCommand: 60,100,100
style:
position: absolute
top: 115px
right: 35px
height: 35px
background: transparent
- component: oh-button
config:
iconColor: purple
iconF7: app_fill
iconSize: 34
action: command
actionItem: =props.item_color
actionCommand: 300,100,100
style:
position: absolute
top: 10px
right: 0px
height: 33px
background: transparent
- component: oh-button
config:
iconColor: blue
iconF7: app_fill
iconSize: 34
action: command
actionItem: =props.item_color
actionCommand: 240,100,100
style:
position: absolute
top: 45px
right: 0px
height: 33px
background: transparent
- component: oh-button
config:
iconColor: lightblue
iconF7: app_fill
iconSize: 34
action: command
actionItem: =props.item_color
actionCommand: 180,100,100
style:
position: absolute
top: 80px
right: 0px
height: 33px
background: transparent
- component: oh-button
config:
iconColor: green
iconF7: app_fill
iconSize: 34
action: command
actionItem: =props.item_color
actionCommand: 120,100,100
style:
position: absolute
top: 115px
right: 0px
height: 33px
background: transparent
- component: oh-image
config:
url: ='/static/icons/' + props.iconimage + '.png'
style:
position: absolute
left: 10px
top: 10px
height: 25px
opacity: 0.7
visible: "=props.iconimage ? true : false"
Cell_Light_Card_2:
uid: Cell_Light_Card_2
tags: []
props:
parameters:
- description: Small title on top of the card
label: Title
name: title
required: false
type: TEXT
- description: Header big sized
label: Header
name: header
required: false
type: TEXT
- description: icon name without ".png", located in static/icons/ folder
label: Icon
name: iconimage
required: false
type: TEXT
- description: rgba or HEX
label: Background Color
name: bgcolor
required: false
type: TEXT
- context: item
description: Item to control on/off
label: Item
name: item_schalter
required: false
type: TEXT
- context: item
description: Item to control brightness
label: Item brightness
name: item_brightness
required: false
type: TEXT
- context: item
description: Item to control color temperature
label: Item light temperature
name: item_light_temperature
required: false
type: TEXT
parameterGroups: []
timestamp: May 24, 2021, 5:57:07 AM
component: f7-card
config:
style:
noShadow: false
padding: 0px
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
background-color: "=props.bgcolor ? props.bgcolor : ''"
height: 120px
margin-left: 5px
margin-right: 5px
slots:
content:
- component: f7-block
config:
style:
position: absolute
top: -5px
left: 40px
flex-direction: row
display: flex
slots:
default:
- component: Label
config:
text: "=props.title ? props.title : ''"
style:
font-size: 12px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
top: 50px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=props.header ? props.header : 'Set Props'"
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
- component: f7-block
config:
class:
- no-padding
style:
position: absolute
top: 70px
flex-direction: row
width: 100%
slots:
default:
- component: oh-slider
config:
visible: "=(props.item_light_temperature) ? true : false"
color: red
label: true
min: 0
max: 100
item: =props.item_light_temperature
style:
left: 20px
margin-top: 7px
width: calc(100% - 40px)
--f7-range-bar-size: 12px
--f7-range-bar-border-radius: 10px
--f7-range-knob-size: 20px
--f7-range-bar-active-bg-color: transparent
--f7-range-bar-bg-color: linear-gradient(to right, rgba(215, 226, 255), rgba(224, 238, 238),rgba(255, 215, 44, 0.5),rgba(255, 215, 44, 0.8))
--f7-range-knob-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3)
--f7-range-label-text-color: black
z-index: 99 !important
- component: f7-block
config:
class:
- no-padding
style:
position: absolute
top: 100px
flex-direction: row
width: 100%
slots:
default:
- component: oh-slider
config:
visible: "=(props.item_brightness) ? true : false"
color: red
label: true
item: =props.item_brightness
style:
left: 20px
width: calc(100% - 40px)
--f7-range-bar-size: 12px
--f7-range-bar-border-radius: 10px
--f7-range-knob-size: 20px
--f7-range-bar-active-bg-color: transparent
--f7-range-bar-bg-color: linear-gradient(to right, rgba(113,113,113,0.8), rgba(246,158,81,0.1))
--f7-range-knob-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3)
--f7-range-label-text-color: black
z-index: 99 !important
- component: oh-toggle
config:
item: =props.item_schalter
style:
position: absolute
top: 15px
right: 10px
- component: oh-image
config:
url: ='/static/icons/' + props.iconimage + '.png'
style:
position: absolute
left: 10px
top: 10px
height: 25px
opacity: 0.7
visible: "=props.iconimage ? true : false"
Cell_Toggle_Card_2:
uid: Cell_Toggle_Card_2
tags: []
props:
parameters:
- description: Small title1 on top of the card
label: Title
name: title
required: false
type: TEXT
- description: Header1 big sized
label: Header
name: header
required: false
type: TEXT
- description: icon1 name without ".png", located in static/icons/ folder
label: Icon
name: iconimage
required: false
type: TEXT
- context: item
description: Item1 to control on/off
label: Item
name: item_schalter
required: false
type: TEXT
- description: Small title2 on top of second half of the card
label: Title2
name: title2
required: false
type: TEXT
- description: Header2 big sized of second half of the card
label: Header2
name: header2
required: false
type: TEXT
- description: icon2 name without ".png", located in static/icons/ folder
label: Icon2
name: iconimage2
required: false
type: TEXT
- context: item
description: Item2 to control on/off
label: Item2
name: item_schalter2
required: false
type: TEXT
- description: rgba or HEX
label: Background Color
name: bgcolor
required: false
type: TEXT
parameterGroups: []
timestamp: Jun 9, 2021, 3:18:18 PM
component: f7-card
config:
style:
noShadow: false
padding: 0px
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
background-color: "=props.bgcolor ? props.bgcolor : ''"
height: 120px
margin-left: 5px
margin-right: 5px
slots:
content:
- component: f7-block
config:
style:
position: absolute
top: -5px
left: 40px
flex-direction: row
display: flex
slots:
default:
- component: Label
config:
text: "=props.title ? props.title : ''"
style:
font-size: 12px
margin-top: 0px
- component: f7-block
config:
style:
position: absolute
top: 50px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=props.header ? props.header : ''"
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
- component: oh-toggle
config:
item: =props.item_schalter
style:
position: absolute
top: 15px
right: 10px
- component: oh-image
config:
url: ='/static/icons/' + props.iconimage + '.png'
style:
position: absolute
left: 10px
top: 10px
height: 25px
opacity: 0.7
visible: "=props.iconimage ? true : false"
- component: Label
config:
text: "=props.title2 ? props.title2 : ''"
style:
position: absolute
font-size: 12px
margin-top: 50px
left: 40px
- component: f7-block
config:
style:
position: absolute
top: 105px
left: 10px
flex-direction: row
slots:
default:
- component: Label
config:
text: "=props.header2 ? props.header2 : ''"
style:
font-size: 17px
font-weight: 600
margin-left: 0px
margin-top: 0px
- component: oh-toggle
config:
item: =props.item_schalter2
style:
position: absolute
top: 70px
right: 10px
- component: oh-image
config:
url: ='/static/icons/' + props.iconimage2 + '.png'
style:
position: absolute
left: 10px
top: 65px
height: 25px
opacity: 0.7
visible: "=props.iconimage2 ? true : false"
Please let me know if you have questions or problems with the widgets also if and how they work in your context.
I have corrected the formatting of the YAML code - sorry … I learn new things every day … I hope the YAML code is usable now
with OH3.0 I used the following code within the widget to display a icon from folder /etc/openhab/html/icons
- component: oh-image
config:
url: ='static/icons/' + props.iconimage + '.png'
a slash was missing at the beginning of the url. OH3.1 does no longer tolerate that. The relative url has to start with slash
- component: oh-image
config:
url: ='/static/icons/' + props.iconimage + '.png'
If you use my posted widgets you have to adjust the YAML code of these widgets whenever “oh-image” is used. Sorry! I have corrected the code