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

[Solved] [VD] Heating, Turn off the device


Question

Posted (edited)

Heating works with scenes and variables. Sometimes you need to turn off the heating in some rooms. For convenience, I created a virtual device in which you can change the value of variables. Below is the LUA code for one of the buttons that turns off the heating in the basement (Changes the variable Heat_basement from auto to manual). 

 

Please login or register to see this code.

Please login or register to see this attachment.

 

 

Please login or register to see this image.

/monthly_2017_05/888.png.2f936854d39e95cb52cd012cb71abe8b.png" />

Variables change successfully. But I need to turn off the devices with ID 74 to 75 when changing the variable to "manual". As I understand, i need to insert the code

 

Please login or register to see this code.

I tried to insert it in different places but it does not work.

 

Prompt please where exactly it is necessary to insert the code of deenergizing of devices. Maybe I need to add something to the LUA code?

Edited by Flash226

3 answers to this question

Recommended Posts

  • 0
Posted

Hi @Flash226,

 

Try this code:

Please login or register to see this code.

 

  • 0
  • Inquirer
  • Posted

    It's works. Many thanks.
     

    • 0
    Posted

    Always happy to help!

     

    Enjoy coding! :-) 

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