Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. {
  2. "template": "<style>\n.icon-tile.colorize {\n filter: invert(75%) sepia(10%) hue-rotate(170deg);\n-webkit-filter: invert(75%) sepia(10%) hue-rotate(170deg);\n}\n</style>\n<div style=\"padding: 20px; height: 100%;\">\n <div ng-if=\"(config.TITLE!='')\">\n <div class=\"text-center\" ng-if=\"config.item_showsummary\">\n <div ng-if=\"(config.TITLE=='Switch')\">\n <h4>{{config.item_header}} : {{(itemsInGroup(config.item_groupid) | filter:{state:'ON'}).length}} von {{(itemsInGroup(config.item_groupid)).length}}</h4>\n </div>\n <div ng-if=\"(config.TITLE=='Contact')\">\n <h4>{{config.item_header}} : {{(itemsInGroup(config.item_groupid) | filter:{state:'OPEN'}).length}} von {{(itemsInGroup(config.item_groupid)).length}}</h4>\n </div>\n </div>\n <div class=\"text-center\" ng-if=\"!config.item_showsummary\"><h2>{{config.TITLE}}</h2></div>\n </div>\n <div style=\"display: flex; justify-content: center; align-items: center;\">\n \t<div style=\"display: inline-block;\">\n <div ng-repeat=\"item in itemsInGroup(config.item_groupid)\">\n <div ng-if=\"(itemState(item.name)=='OPEN') || (itemState(item.name)=='ON')\" style=\"color: #ffe203; font-size: 16pt;\">\n <div style=\"margin-left: 10px; float: left; height: 40px; line-height: 37px; width: 55px;\">\n <widget-icon style=\"margin: auto;\" iconset=\"config.ICON_iconset\" icon=\"config.ICON\" size=\"config.ICONSIZE\" state=\"itemState(item.name)\"/>\n </div>\n <div style=\"margin-right: 10px; overflow:hidden; height: 40px; line-height: 42px; width: auto;\">\n <div>\n {{item.label.substr(config.item_skipncharsindescription,99)}}\n </div>\n </div>\n </div>\n <!--<div ng-if=\"(itemState(item.name)=='CLOSED') || (itemState(item.name)=='OFF')\" style=\"background-color: transparent; font-size: 16pt;\">\n <div style=\"margin-left: 10px; float: left; height: 40px; line-height: 37px; width: 55px;\">\n <widget-icon style=\"margin: auto;\" iconset=\"config.ICON_iconset\" icon=\"config.ICON\" size=\"config.ICONSIZE\" state=\"itemState(item.name)\"/>\n </div>\n <div style=\"margin-right: 10px; overflow:hidden; height: 40px; line-height: 42px; width: auto;\">\n <div>\n {{item.label.substr(config.item_skipncharsindescription,99)}}\n </div>\n </div>\n </div>\n <div ng-if=\"(itemState(item.name)=='NULL')\" style=\"background-color: red; font-size: 16pt;\">\n <div style=\"margin-left: 10px; float: left; height: 40px; line-height: 37px; width: 55px;\">\n <widget-icon style=\"margin: auto;\" iconset=\"config.ICON_iconset\" icon=\"config.ICON\" size=\"config.ICONSIZE\" state=\"itemState(item.name)\"/>\n </div>\n <div style=\"margin-right: 10px; overflow:hidden; height: 40px; line-height: 42px; width: auto;\">\n <div>\n {{item.label.substr(config.item_skipncharsindescription,99)}}\n </div>\n </div>\n </div>-->\n </div>\n </div>\n\t</div>\n</div>\n",
  3. "name": "Contacts and Switches",
  4. "author": "",
  5. "description": "",
  6. "settings": [
  7. {
  8. "type": "icon",
  9. "id": "ICON",
  10. "label": "Icon",
  11. "default": "16pt"
  12. },
  13. {
  14. "type": "string",
  15. "id": "ICONSIZE",
  16. "label": "Icon size",
  17. "default": "50"
  18. },
  19. {
  20. "type": "string",
  21. "id": "TITLE",
  22. "label": "Title",
  23. "default": "",
  24. "description": ""
  25. },
  26. {
  27. "type": "item",
  28. "id": "item_groupid",
  29. "label": "Group",
  30. "default": "",
  31. "description": ""
  32. }
  33. ],
  34. "readme_url": "https://community.openhab.org/t/35913"
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement