Advertisement
Guest User

Untitled

a guest
Jul 1st, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.67 KB | None | 0 0
  1. {
  2.   "id": 18,
  3.   "name": "HC2 Power",
  4.   "roomID": 294,
  5.   "type": "virtual_device",
  6.   "visible": true,
  7.   "enabled": true,
  8.   "properties": {
  9.     "categories": ["other"],
  10.     "deviceIcon": 0,
  11.     "ip": "\"\"",
  12.     "port": 0,
  13.     "categories": "[\"other\"]",
  14.     "currentIcon": "0",
  15.     "log": "",
  16.     "logTemp": "",
  17.     "mainLoop": "",
  18.     "ui.Label1.value": "0",
  19.     "visible": "true",
  20.     "rows": [
  21.       {
  22.         "type": "button",
  23.         "elements": [
  24.           {
  25.             "id": 1,
  26.             "lua": true,
  27.             "waitForResponse": false,
  28.             "caption": "Ein",
  29.             "name": "Button11",
  30.             "empty": false,
  31.             "msg": "RASP = Net.FHttp(\"192.168.100.110\", \"81\") \nRASP:setBasicAuthentication(\"daniel\", \"XXX\")\nRASP:GET('/api/device/cul_switch3/turnOn')\ntime = os.date(\" - %H:%M Uhr\")\nfibaro:log(\"TV Ein\"..time)\nfibaro:call(fibaro:getSelfId(), \"setProperty\", \"ui.Label1.value\", \"1\")",
  32.             "buttonIcon": 230,
  33.             "favourite": false,
  34.             "main": false
  35.           }
  36.         ]
  37.       },
  38.       {
  39.         "type": "button",
  40.         "elements": [
  41.           {
  42.             "id": 2,
  43.             "lua": true,
  44.             "waitForResponse": false,
  45.             "caption": "Aus",
  46.             "name": "Button21",
  47.             "empty": false,
  48.             "msg": "RASP = Net.FHttp(\"192.168.100.110\", \"81\") \nRASP:setBasicAuthentication(\"daniel\", \"XXX\")\nRASP:GET('/api/device/cul_switch3/turnOff') \ntime = os.date(\" - %H:%M Uhr\")\nfibaro:log(\"TV Aus\"..time)\nfibaro:call(fibaro:getSelfId(), \"setProperty\", \"ui.Label1.value\", \"0\")",
  49.             "buttonIcon": 229,
  50.             "favourite": false,
  51.             "main": false
  52.           }
  53.         ]
  54.       },
  55.       {
  56.         "type": "label",
  57.         "elements": [{ "id": 3, "lua": false, "waitForResponse": false, "caption": "Status", "name": "Label1", "favourite": false, "main": false }]
  58.       },
  59.       {
  60.         "type": "button",
  61.         "elements": [
  62.           {
  63.             "id": 4,
  64.             "lua": true,
  65.             "waitForResponse": false,
  66.             "caption": "Ein/Aus",
  67.             "name": "Button91",
  68.             "empty": false,
  69.             "msg": "if tonumber(fibaro:getValue(fibaro:getSelfId(), \"ui.Label1.value\")) > 0 then\n  fibaro:call(fibaro:getSelfId(), \"pressButton\", \"2\")\nelse\n  fibaro:call(fibaro:getSelfId(), \"pressButton\", \"1\")\nend",
  70.             "buttonIcon": 229,
  71.             "favourite": false,
  72.             "main": true
  73.           }
  74.         ]
  75.       }
  76.     ]
  77.   },
  78.   "actions": { "pressButton": 1, "setSlider": 2 },
  79.   "created": 1593535947,
  80.   "modified": 1593535947,
  81.   "sortOrder": 11
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement