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

Help with HC3 lua


hTiger1

Question

Hi

I control my district heating with Fibaro, it worked well with HCL.

The water temperature in the radiators is controlled by the outside temperature.

But I will try to make an even better system with HC3.

 

My house is equipped with a "1 string system" - there is very little cooling of the water in this type of system. The greater the cooling in the radiators, the greater the need for heat, which is why I want to send warmer water to the radiators and vice versa.

 

See the picture of the luascene.

 

Please login or register to see this spoiler.

 

I have 2 temperature sensors:

ForwardFlow = id 90

ReturnFlow = id 91

and

1 valve for regulating water temperature:

FJVvalve = id 166

 

Here I need help with a very simple lua scene.

 

The scene on the picture needs to be changed as below

 

If id91 minus id90 <2.2

then fibaro.call (166, 'setValue', 55)

 

Thanks in advance for help, maybe I'll need some more help later.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

You need to set conditions that every value change on ID(91) and ID(90) will trigger the scene. Then in scene you can read values of these devices and do what ever you need.

 

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Thanks cag014 @

    Still need to get started with HC3 LUA.
    I don't know how to write the simple line,
    If you can write it for me, it will help me a lot with new scenes.

    Link to comment
    Share on other sites

    • 0

    Set  in conditions :

    Please login or register to see this code.

    Actions

    Please login or register to see this code.

    Since I don't have such devices, hope it works

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Thanks 

    Please login or register to see this link.

     

    Please login or register to see this link.


    I want to test it.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • You got me started with HC3 lua, thanks.
    The declaration section worked perfectly, the action section did not work, but I have mixed something from the Fibaro manuals and your proposal, so now it works perfectly.
    I have made it with 2 output values.
    Can I get 3 outputs in the same scene?

     

    Please login or register to see this spoiler.

     

     

    Link to comment
    Share on other sites

    • 0
    1 hour ago, hTiger1 said:

    Can I get 3 outputs in the same scene?

    What do you mean by that?

    Link to comment
    Share on other sites

    • 0
    2 hours ago, hTiger1 said:

    Can I get 3 outputs in the same scene?

    Hi @hTiger1,

     

    Please login or register to see this code.

    as many as you like :-D

    Enjoy coding :-)

     

    • Thanks 1
    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...