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

Virtual Device Buttons


christos

Question

Hello

I need some help configuring a virtual device....

i have created 2 buttons ON and OFF .... when i press on i want to activate a scene and when i press OFF i want to deactivate it.....

what is the string i must put under each virtual button ????? can't figure it out

Christos

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0
Guest deraaij

You can enable a scene with:

Please login or register to see this code.

and disable with:

Please login or register to see this code.

You can start a scene with:

Please login or register to see this code.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • WOW!!!!!

    Thank you for your replies...... That did the trick.....

    but when i use the disable function ....

    fibaro:setSceneEnabled(5, false);

    my scene starts again after the sleep period....

    these buttons do not appear in iphone app..... is this a Bug?

    christos

    Link to comment
    Share on other sites

    • 0
    Guest deraaij
    WOW!!!!!

    Thank you for your replies...... That did the trick.....

    but when i use the disable function ....

    fibaro:setSceneEnabled(5, false);

    my scene starts again after the sleep period....

    these buttons do not appear in iphone app..... is this a Bug?

    christos

    No, unfortunately virtual devices are not yet part of the iPhone/ipad app.

    You can also try

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • oufff

    this shouldn't be that difficult....... but seems that it is at least for me.....

    all i want is to have control on when the scene will start and when to stop

    ON or Off ... thats why i thought of the virtual device.... make 2 buttons ... one on one off

    hmmmm what i'm i doing whrong here??? i don't get it...

    BTW thank you for helping me out here... all of you !!!

    christos

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
    Guest deraaij

    I would try it like this:

    On --> no changes

    Off:

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Thanks Mark...

    see the problem is that the scene won't even start!!!

    has anybody out there tried to activate a scene whith virtual device using latest beta software???

    maybe there is a bug OR i'm very very dumb.......

    cheers

    christos

    Link to comment
    Share on other sites

    • 0
    Guest deraaij

    mmmh that could be the case....

    You could change the scene so it triggers based on a variable change. Make the button change the value on on and off

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Well That last trick you told me did the trick.....

    i have put on the variable button the code

    fibaro:setGlobal("XXXXXX", "VALUE")

    thus having only one scene running and behave like i want it to based on a variable change that is set by the virtual device.....

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    getting better and better each day.... thank you very much for the help.....

    my life would have been much much easier IF there was a way to add custom temperatures in HEATING PANEL....... and not the temperatures that fibaro thinks it is good to have......

    Please login or register to see this image.

    /emoticons/default_icon_rolleyes.gif" alt=":roll:" />

    Link to comment
    Share on other sites

    • 0
    Guest deraaij
    Well That last trick you told me did the trick.....

    i have put on the variable button the code

    fibaro:setGlobal("XXXXXX", "VALUE")

    thus having only one scene running and behave like i want it to based on a variable change that is set by the virtual device.....

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    getting better and better each day.... thank you very much for the help.....

    my life would have been much much easier IF there was a way to add custom temperatures in HEATING PANEL....... and not the temperatures that fibaro thinks it is good to have......

    Please login or register to see this image.

    /emoticons/default_icon_rolleyes.gif" alt=":roll:" />

    I am glad to hear it works now!

    Link to comment
    Share on other sites

    • 0
    Guest Kuuno

    About the temp

    You want to get 21,7 instead of 21,5?

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • you mean at the heating panel??

    no i want temps higher than 33.5......

    because it is HEATING panel not climate panel.....

    thats the way i see things at least

    that would be a very nice feature to have temps that we need to set and adjust....

    Christos

    Link to comment
    Share on other sites

    • 0

    christos, you can that now only by lua

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hello Mr. Socha

    Yes i know ..... i have done this with help from other forum memebers... which are really nice people..... i have had Zero knowlage of lua coding but with their help i have managed to do this little lua code...

    Please login or register to see this code.

    then i had to make a variable temps... first temp was 0 then 50 52 54 55 60

    then i had to make a virtual button where i could change the value of the target temperature.... one of the buttons ( OFF ) has value of 0 so it is like having the pumps to OFF state.....

    BUT wait.....

    why did i have to go all the way to programming and vreating virtual buttons and make my life so complicate when you can just add to heating panel custom temperatures..... and let alone i cannot see the virtual buttons on the iphone interface..... So i have to login with my pc just to push a virtual button and set the temperature......

    does this sound little bit weird...???

    i think that the heating panel needs some improvement here.... thats all i'm saying...

    or maybe i'm the only one out there that wants to do this thing...

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Christos

    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...