Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "id": 18,
- "name": "HC2 Power",
- "roomID": 294,
- "type": "virtual_device",
- "visible": true,
- "enabled": true,
- "properties": {
- "categories": ["other"],
- "deviceIcon": 0,
- "ip": "\"\"",
- "port": 0,
- "categories": "[\"other\"]",
- "currentIcon": "0",
- "log": "",
- "logTemp": "",
- "mainLoop": "",
- "ui.Label1.value": "0",
- "visible": "true",
- "rows": [
- {
- "type": "button",
- "elements": [
- {
- "id": 1,
- "lua": true,
- "waitForResponse": false,
- "caption": "Ein",
- "name": "Button11",
- "empty": false,
- "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\")",
- "buttonIcon": 230,
- "favourite": false,
- "main": false
- }
- ]
- },
- {
- "type": "button",
- "elements": [
- {
- "id": 2,
- "lua": true,
- "waitForResponse": false,
- "caption": "Aus",
- "name": "Button21",
- "empty": false,
- "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\")",
- "buttonIcon": 229,
- "favourite": false,
- "main": false
- }
- ]
- },
- {
- "type": "label",
- "elements": [{ "id": 3, "lua": false, "waitForResponse": false, "caption": "Status", "name": "Label1", "favourite": false, "main": false }]
- },
- {
- "type": "button",
- "elements": [
- {
- "id": 4,
- "lua": true,
- "waitForResponse": false,
- "caption": "Ein/Aus",
- "name": "Button91",
- "empty": false,
- "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",
- "buttonIcon": 229,
- "favourite": false,
- "main": true
- }
- ]
- }
- ]
- },
- "actions": { "pressButton": 1, "setSlider": 2 },
- "created": 1593535947,
- "modified": 1593535947,
- "sortOrder": 11
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement