Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

DIY SCENE


pooya.zamani1@yahoo.com

Question

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.

 

 

Please login or register to see this attachment.

Edited by [email protected]
Wrong forum.
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...