sure, it’s pretty straight forward as I explained in the first post:
{
title: 'Lights',
bg: 'images/bg3.jpg',
icon: 'mdi-lightbulb', // icon
groups: [{
// title: 'Lights',
width: 8,
height: 5,
items: [
{
position: [0, 0],
width: 0.01,
height: 0.01,
title: false,
state: false,
id: {},
type: TYPES.ROOM,
url: '../floorplan/floorplan_transparent.png'
},
{
position: [0, 0],
width: 0.01,
height: 0.01,
title: false,
state: false,
id: "light.kitchen",
type: TYPES.ROOM,
url: function(item, entity) {
if (entity.state == 'on') {
return '../floorplan/kitchen.png';
} else {
return '';
}
}
},
{
position: [0, 0],
width: 0.01,
height: 0.01,
title: false,
state: false,
id: "switch.entry_lights",
type: TYPES.ROOM,
url: function(item, entity) {
if (entity.state == 'on') {
return '../floorplan/entry.png';
} else {
return '';
}
}
},
////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
{
position: [5, 1.1],
height: 1.5,
width: 1.4,
type: TYPES.TRANSPARENT_LIGHT,
id: "light.kitchen",
title: false, //'Kitchen',
subtitle: false, //'Lights',
icons: false, //{
state: false, //{
customStyles: { backgroundColor: 'rgba(255,0,0,0)' }
},
{
position: [4.7, 2.6],
height: 1,
width: 1.7,
theme: ITEM_TRANSPARENT,
type: TYPES.TRANSPARENT_LIGHT,
id: 'switch.entry_lights',
title: false, //'ENTRY',
subtitle: false, //'Lights',
icons: false, //{
state: false, //{
customStyles: { backgroundColor: 'rgba(255,0,0,0)' }
},
....
....
....