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

Heat based on occupancy


Question

Posted

Hello 

I’m just wondering has anyone come up with a method to open the valves based on occupancy? 
 

So what I’m trying to achieve is on motion detection, open the TRVs. 
motion detection provided by external sensor 

TRV open to heat rather than room temp. 
 

so in this case, walk into a bathroom, motion is detected, boiler turn on check, TRV open to heat towel rails. 
 

Also on some bathrooms I have multiple TRVs so I would like it if one heat controller is open the other is open as well; so the actions are always linked. 
 

3 answers to this question

Recommended Posts

  • 0
Posted

 

  • Like 1
  • 0
  • Inquirer
  • Posted
    On 9/30/2019 at 9:02 AM, morpheus75 said:

     

    This is what I'm looking for but the VD controls are you able to publish the files? 

    At the moment I'm using Call to Heat LUA from Dave but the set points its pulling is incorrect for some reason. I also find they do not update when you change the HC TRV temperature level. 

     

    Its almost like there's a conflict between the Heating panel (which I assume you're using as well), manually setting the TRV and old data somewhere between the devices. 

    • 0
    Posted

    Hi

    I don't use the heating panel.

    All the code is custom written in LUA. The VD is also custom meaning that it wont work on your system as all the data and naming is different.

    The way I have done is this:

    Global variables for each room to store set point

    When I want to change set point I write it to global variable, whether it's a scheduled temp change or a manual temp change.

    The current temps are just values pulled from the temp sensors (in my case the fibaro multisensor)

    Then relays on the boiler to activate the boiler.

    (I had a 2 zone system before this so had to use 2 relays)

    A 2nd set of global variables which define if a room is hot or cold. Hot means current temp is greater than set point and cold means below.

    A 3rd set of global variables which define if a room has had any motion in last 15 mins.

    Then LUA code that basically tells it to do a calc if set point is greater than current temp and motion has been detected in that room then write 'cold' for that room in the global variable.

    Finally a scene which then reads all the global variables for 'hot' and 'cold' and then activates the relevant relay.

    I cant activate relays directly as I only have 1 relay to control boiler so if 2 rooms are cold and one room comes up to temp it will send off signal to relay, this then switches heating off without warming up room 2.

    Another thing that it does if heat is required in a room the TRV opens ie I send a 28 command. Once room warmed I send a 18 command effectively closing the TRV.

     

    This sounds complicated but you need to break it down into segments and write the relevant scenes.

    From memory i think I have about 6 scenes in total for this.

    I've also had to factor in morning heat where I want to heat the house irrespective of motion so once we are awake and go into living room, kitchen etc. Its warm!

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