-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathhomeStatus.vfib
1 lines (1 loc) · 1.73 KB
/
homeStatus.vfib
1
{"name":"Home Status","type":"virtual_device","properties":{"deviceIcon":1,"currentIcon":"1001","mainLoop":"","saveLogs":"1","rows":[{"type":"button","elements":[{"id":1,"lua":true,"waitForResponse":false,"caption":"home","name":"home","empty":false,"msg":"-- Set the globalvariable to, in this example, to 0 (home)\nfibaro:setGlobal(\"homeStatus\", 1);\n-- Sets the text of the virtual device to 'Home'\nfibaro:call(fibaro:getSelfId(), \"setProperty\", \"ui.\"..home..\".value\", \"Home\")\n","buttonIcon":1001,"favourite":false,"main":true},{"id":2,"lua":true,"waitForResponse":false,"caption":"sleep","name":"Sleeping","empty":false,"msg":"-- Set the globalvariable to, in this example, to 0 (home)\nfibaro:setGlobal(\"homeStatus\", 2);\n-- Sets the text of the virtual device to 'Home'\nfibaro:call(fibaro:getSelfId(), \"setProperty\", \"ui.\"..sleep..\".value\", \"Sleeping\")\n","buttonIcon":1002,"favourite":false,"main":false},{"id":3,"lua":true,"waitForResponse":false,"caption":"away","name":"Away","empty":false,"msg":"-- Set the globalvariable to, in this example, to 0 (home)\nfibaro:setGlobal(\"homeStatus\", 3);\n-- Sets the text of the virtual device to 'Home'\nfibaro:call(fibaro:getSelfId(), \"setProperty\", \"ui.\"..away..\".value\", \"Away\")\n","buttonIcon":1003,"favourite":false,"main":false},{"id":4,"lua":true,"waitForResponse":false,"caption":"hday","name":"Holiday","empty":false,"msg":"-- Set the globalvariable to, in this example, to 0 (home)\nfibaro:setGlobal(\"homeStatus\", 4);\n-- Sets the text of the virtual device to 'Home'\nfibaro:call(fibaro:getSelfId(), \"setProperty\", \"ui.\"..hday..\".value\", \"Holiday\")\n","buttonIcon":1004,"favourite":false,"main":false}]}]},"actions":{"pressButton":1,"setSlider":2,"setProperty":2}}