Welcome to Smart Home Forum by FIBARO
Search the Community
Showing results for tags 'diy scene'.
Hi There I want to discuss a bout the new way of scene creation. This is DIY. It comes from " Do It Yourself". By this, smarthome user can introduce a scene with out any knowledge of computer. It would implement by 3 steps: 1- change the house appliances as the way you want ( like turn on the dimmer and fan, close the curtain and ...) 2- just click on save condition (save all the statuses of appliances) 3- Run the scene ( home will change as the save conditions like the statuses step 2) However Fibaro has 3 kinds of adding scene, but DIY can be perform as the newest and easiest way of smarthome learning, So, I want to make a scene to create panel for DIY in VirtualDevice like below: code of SAVE Button: local mystat = fibaro:getValue(135, "Value") fibaro:debug(mystat) fibaro:debug(tonumber(mystat)) code of RUN Button: if (tonumber(mystat) == tonumber("0")) then fibaro:debug("off"); fibaro:call(135, "turnOff") else fibaro:debug("on"); fibaro:call(135, "turnOn") end fibaro:debug(mystat) But, it just save and does not work (RUN). Would you please help me in this way ? How to save statuses and the run them again ? ADMIN NOTE: Please, read carefully descriptions of forum before posting.