Here the config i tried for the page:
{
title: 'Main page',
bg: 'images/bg2.jpg',
icon: 'mdi-home-outline', // home icon
groups: [
{
title: 'Gang',
width: 1,
height: 1,
groupMarginCss: '10px 20px',
row: 0, // optional; index of the row used for the GRID layout. If not specified, the default is 0
items: [
{
position: [0, 0],
type: TYPES.INPUT_BOOLEAN,
id: 'input_boolean.lock',
title: 'Inngangsdør',
states: {
off: "Låst",
on: "Ulåst"
},
icons: {
off: "mdi-door-closed",
on: "mdi-door-open",
}
},
]
},
{
title: 'Soverom',
width: 6,
height: 1,
groupMarginCss: '10px 20px',
row: 1, // optional; index of the row used for the GRID layout. If not specified, the default is 0
items: [
{
position: [0, 0],
width: 1,
type: TYPES.LIGHT,
id: 'switch.nattbord_andre',
title: 'Nattbord André',
subtitle: 'Soverom',
states: {
on: "På",
off: "Av"
},
icons: {
on: "mdi-lamp",
off: "mdi-lamp",
}
},
{
position: [1, 0],
width: 1,
type: TYPES.LIGHT,
id: 'switch.nattbord_martine',
title: 'Nattbord Martine',
subtitle: 'Soverom',
states: {
on: "På",
off: "Av"
},
icons: {
on: "mdi-lamp",
off: "mdi-lamp",
}
},
{
position: [2, 0],
type: TYPES.INPUT_BOOLEAN,
id: 'input_boolean.tak_soverom',
title: 'Taklampe',
subtitle: 'Soverom',
states: {
off: "Av",
on: "På"
},
icons: {
off: "mdi-ceiling-light",
on: "mdi-ceiling-light",
}
},
{
position: [3, 0],
width: 1,
type: TYPES.LIGHT,
id: 'light.kleskap',
title: 'Kleskap',
subtitle: 'Soverom',
states: {
on: "På",
off: "Av"
},
icons: {
on: "mdi-wall-sconce-flat",
off: "mdi-wall-sconce-flat",
}
},
{
position: [4, 0],
width: 1,
type: TYPES.SWITCH,
id: 'switch.rullegardin',
title: 'Rullegardin',
subtitle: 'Soverom',
states: {
on: "Åpen",
off: "Lukket"
},
icons: {
on: "mdi-blinds-open",
off: "mdi-blinds",
}
},
],
},
]
},