forked from remibergsma/fibaro-hc2-scenes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhereIsRemi.vfib
1 lines (1 loc) · 925 Bytes
/
whereIsRemi.vfib
1
{"name":"Where is Remi?","type":"virtual_device","properties":{"deviceIcon":0,"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\nfibaro:setGlobal(\"remiAtHome\", 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":"away","name":"away","empty":false,"msg":"-- Set the globalvariable\nfibaro:setGlobal(\"remiAtHome\", 0);\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}]}]},"actions":{"pressButton":1,"setSlider":2,"setProperty":2}}