{
    "name": "5xSwitch",
    "author": "OliRanks",
    "description": "5xSwitch",
    "template": "<!DOCTYPE html>\n<html>\n<head>\n<style>\n#switch_table, #switch_td, #switch_th {\n    border: 0px;\n    padding: 3px;\n    font-size: 16px;\n    text-align: center;\n}\n#switch_table {\n    border-collapse: collapse;\n    width: 100%;\n}\n#switch_row1 {\n    width: 32px;\n}\n</style>\n</head>\n<body>\n<h2>{{config.top_label}}</h2>\n<table id=\"switch_table\">\n  <tr>\n    <td id=\"switch_row1\">\n      <span>\n  \t<widget-icon iconset=\"'eclipse-smarthome-classic'\" icon=\"'switch'\" size=\"32\" state=\"itemValue(config.switch1_item)\" ng-click=\"sendCmd(config.switch1_item, (itemValue(config.switch1_item)=='OFF') ? 'ON':'OFF')\" />\n\t</span></td>\n    <td id=\"switch_td\">  <span style=\"color: {{itemValue(config.switch1_item)=='ON' ? '#ffaa00' : '#7B879C'}}\">\n\t\t{{config.switch1_label}}\n  </span></td>\n  </tr>\n    <tr>\n    <td id=\"switch_row1\">\n      <span>\n  \t<widget-icon iconset=\"'eclipse-smarthome-classic'\" icon=\"'switch'\" size=\"32\" state=\"itemValue(config.switch2_item)\" ng-click=\"sendCmd(config.switch2_item, (itemValue(config.switch2_item)=='OFF') ? 'ON':'OFF')\" />\n\t</span></td>\n    <td id=\"switch_td\">  <span style=\"color: {{itemValue(config.switch2_item)=='ON' ? '#ffaa00' : '#7B879C'}}\">\n\t\t{{config.switch2_label}}\n  </span></td>\n  </tr>\n      <tr>\n    <td id=\"switch_row1\">\n      <span>\n  \t<widget-icon iconset=\"'eclipse-smarthome-classic'\" icon=\"'switch'\" size=\"32\" state=\"itemValue(config.switch3_item)\" ng-click=\"sendCmd(config.switch3_item, (itemValue(config.switch3_item)=='OFF') ? 'ON':'OFF')\" />\n\t</span></td>\n    <td id=\"switch_td\">  <span style=\"color: {{itemValue(config.switch3_item)=='ON' ? '#ffaa00' : '#7B879C'}}\">\n\t\t{{config.switch3_label}}\n  </span></td>\n  </tr>\n      <tr>\n    <td id=\"switch_row1\">\n      <span>\n  \t<widget-icon iconset=\"'eclipse-smarthome-classic'\" icon=\"'switch'\" size=\"32\" state=\"itemValue(config.switch4_item)\" ng-click=\"sendCmd(config.switch4_item, (itemValue(config.switch4_item)=='OFF') ? 'ON':'OFF')\" />\n\t</span></td>\n    <td id=\"switch_td\">  <span style=\"color: {{itemValue(config.switch4_item)=='ON' ? '#ffaa00' : '#7B879C'}}\">\n\t\t{{config.switch4_label}}\n  </span></td>\n  </tr>\n      <tr>\n    <td id=\"switch_row1\">\n      <span>\n  \t<widget-icon iconset=\"'eclipse-smarthome-classic'\" icon=\"'switch'\" size=\"32\" state=\"itemValue(config.switch5_item)\" ng-click=\"sendCmd(config.switch5_item, (itemValue(config.switch5_item)=='OFF') ? 'ON':'OFF')\" />\n\t</span></td>\n    <td id=\"switch_td\">  <span style=\"color: {{itemValue(config.switch5_item)=='ON' ? '#ffaa00' : '#7B879C'}}\">\n\t\t{{config.switch5_label}}\n  </span></td>\n  </tr>\n</table>\n\n</body>\n</html>\n",
    "settings": [
        {
            "type": "string",
            "id": "top_label",
            "label": "Top label",
            "default": "5xSwitch"
        },
        {
            "type": "item",
            "id": "switch1_item",
            "label": "Switch1 item"
        },
        {
            "type": "string",
            "id": "switch1_label",
            "label": "Switch1 label",
            "default": "Switch1"
        },
        {
            "type": "item",
            "id": "switch2_item",
            "label": "Switch2 item"
        },
        {
            "type": "string",
            "id": "switch2_label",
            "label": "Switch2 label",
            "default": "Switch2"
        },
        {
            "type": "item",
            "id": "switch3_item",
            "label": "Switch3 item"
        },
        {
            "type": "string",
            "id": "switch3_label",
            "label": "Switch3 label",
            "default": "Switch3"
        },
        {
            "type": "item",
            "id": "switch4_item",
            "label": "Switch4 item"
        },
        {
            "type": "string",
            "id": "switch4_label",
            "label": "Switch4 label",
            "default": "Switch4"
        },
        {
            "type": "item",
            "id": "switch5_item",
            "label": "Switch5 item"
        },
        {
            "type": "string",
            "id": "switch5_label",
            "label": "Switch5 label",
            "default": "Switch5"
        }
    ]
}