-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathSun.vfib
1 lines (1 loc) · 1020 Bytes
/
Sun.vfib
1
{"name":"Sun","type":"virtual_device","properties":{"deviceIcon":0,"currentIcon":"1007","mainLoop":"","saveLogs":"1","rows":[{"type":"button","elements":[{"id":1,"lua":true,"waitForResponse":false,"caption":"Sun has risen","name":"sunrise","empty":false,"msg":"-- Set the globalvariable to, in this example, to 0 (home)\nfibaro:setGlobal(\"Sun\", \"Risen\");\n-- Sets the text of the virtual device to 'Home'\nfibaro:call(fibaro:getSelfId(), \"setProperty\", \"ui.\"..sunrise..\".value\", \"Sun has risen\")\n","buttonIcon":1007,"favourite":false,"main":true},{"id":2,"lua":true,"waitForResponse":false,"caption":"Sun is set","name":"sunset","empty":false,"msg":"-- Set the globalvariable to, in this example, to 0 (home)\nfibaro:setGlobal(\"Sun\", \"Set\");\n-- Sets the text of the virtual device to 'Home'\nfibaro:call(fibaro:getSelfId(), \"setProperty\", \"ui.\"..sunset..\".value\", \"Sun is set\")\n","buttonIcon":1006,"favourite":false,"main":false}]}]},"actions":{"pressButton":1,"setSlider":2,"setProperty":2}}