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

Temprature inside and outside Scene


Question

Posted

Hi

 

First of all sorry for my bad English.

 

I have hC2 and i want to know if anyone can help me on this and if tis possible.

 

I want to make a scene, if the temperature outside its superior than temperature inside of house, then active Variable Summer.

i don't know if we can put a average of some hours superior than average of some hours inside of home.

 

Hope if someone can help 

 

Thanks

From Portugal

Recommended Posts

  • 0
  • Inquirer
  • Posted
    On 8/12/2020 at 10:42 PM, Jeroen_ said:

    First I had only the first part. I made this last winter when the humidity outside is very low most of the time (cold weather). But a few months ago it got warmer and rained a lot and the humidity level often got above 60% outside and also inside. Because of this the fan in the bathroom never went to the low setting and stayed in medium. This was something I did not want, so I added a separate humidity sensor to be able to control the fan based on the outside humidity level. The reason I choose the Multisensor 6 is because it can be powered by USB and can send more reports without draining the battery.

    How you change, the settings for winter and summer?

    On 8/12/2020 at 10:42 PM, Jeroen_ said:

    Everything is possible, but I don't have experience with using averages, but I can experiment with this in the weekend. I have a few separate scene and in these scene's I set variables. With these variables I control the main "control" script for the CMV which is trigger by these variables. With the averages you can also set a variable and make the scene do different thing based on this variable. You can do the same with the timing, for example make CMV_night and set it to "Night" at 22:00 and to "Day" at 11:00. I have 1 main script in a 1 minute loop to set many different variables and have scenes run on a timer interval. I copied the code from someone on this forum. There are some Dutch words in the script, but I think you get the picture. I still have to modify the code. Now I only use English in my code.

    The code you send it’s yours already modify?

    im really not god in codes, I need to go to university to learn and understand this...

    • 0
    Posted (edited)
    Quote

    How you change, the settings for winter and summer?

     

    I do not change between winter and summer, but I check the humidity in the house and change my program based on that. The reason why i said winter and summer, is because the humidity is very low in the winter (cold weather) and high in the summer (warm weather). In the winter (before with got a humidifier) the humidity indoor was sometimes below 20% and now it is 66%.

     

    Quote

    The code you send it’s yours already modify?

    im really not god in codes, I need to go to university to learn and understand this...

     

    I learned coding in the last year by trial and error and never learned this in school. I started by making block scenes and converting them to LUA and try to understand what is happening.

     

     

    Below is the code for the bathroom. This is completely in English now. I use the Global variable Ventilation_bath to set the CMV to Off, Low, Medium or High. To get this working you only must change 3 ID numbers. If you have 2 bathrooms, make to separate scenes with to correct ID numbers and change the Global variables to Ventilation_bath1 and Ventilation_bath2. Below the code is the deug messages I get each time the scene triggers. I will make post with the rest of my code later today or tomorrow.

     

    Please login or register to see this code.

    Please login or register to see this image.

    /monthly_2020_08/afbeelding.png.8858555381ea9c7820d81af02d7d1f88.png" />

    Edited by Jeroen_
    • Like 1
    • 0
    Posted (edited)

    I had the same issue. Increase of the outside humidity, and thus also some of it inside, and the Fan not turning off because of too optimistic tresholds. I am not completely satisfied with the settings. Sometimes the inside humidity reacts more or less on the outside humidity. My scene only runs between 6:00 and 24:00 every 2 hours. 

    These are my settings now:

    Please login or register to see this code.

     

    Thanks for your script, yours is more finetuned. I study it. 

    Edited by SmartHomeEddy
    • 0
    Posted
    17 minutes ago, SmartHomeEddy said:

    I had the same issue. Increase of the outside humidity, and thus also some of it inside, and the Fan not turning off because of too optimistic tresholds. I am not completely satisfied with the settings. Sometimes the inside humidity reacts more or less on the outside humidity. My scene only runs between 8:00 and 23:00 every 2 hours. 

    These are my settings now:

    Please login or register to see this code.

     

    Thanks for your script, yours is more finetuned. I study it. 

     

    Thanks Eddy, I always have the feeling that my code is not efficient at all and at beginner level, but it works very good. I assume the trigger in your bathroom doesn't run every 2 hours, because that would me that the fan doesn't turn on while showering.

    • 0
    Posted (edited)

    It runs every two hours between 6:00 and 24:00. 
     

    The script only alters the on and off level of the bathroom (and house) fan. I have made some extra code if the “on level” becomes below the actual bathroom level because of the script, the fan turnes on. Otherwise the fan indeed won’t turn on. 
     

    i am thinking about using my house humidity sensor to combine the house and outside humidity levels. 
     

    (My fan runs on an association with an MCO humidity sensor)

     

     

    Edited by SmartHomeEddy
    • Like 1
    • 0
    Posted (edited)

    Here is also my code for the CO2 level in the living room. Only 2 ID numbers have to be changed. Example of debug messages are below the code.

     

    Please login or register to see this code.

    Please login or register to see this image.

    /monthly_2020_08/afbeelding.png.39814399e24857b9685a75a0f534c36f.png" />

    Edited by Jeroen_
    • Like 1
    • 0
    Posted

    @SmartHomeEddy I like that sensor also and I think it is better than the Netatmo solution, but not WAF approved for the living room and the bathroom ? and also quite expensive if you want them in multiple rooms. The range on the netatmo devices is very bad in a new house and I don't like to have so many battery operated devices. I already have ±40  ? (I need to build a new housing with domotica engineered in from the start)

    • 0
    Posted (edited)

    Also CO2 sensor from MCO in the living room. I upgrade the WAF level with other products like Trophies from matches, they are removed within hours, but my MCO can stay in his place ?

     

    The MCO works great with associations and reacts therefor fast on changes values. 
     

     

     

    Edited by SmartHomeEddy
    • 0
    Posted
    2 minutes ago, SmartHomeEddy said:

    Also CO2 sensor from MCO in the living room. I upgrade the WAF level with other products like Trophies from matches, they are removed within hours, but my MCO can stay in his place ?

     

    The MCO works great with associations and reacts therefor fast on changes values. 
     

     

     

     

    I have never used associations. How does that work. Can you set an association for the CO2 in the living room and he humidity in the bathroom? Won't they interfere with each other when they both want to control the fan?

    • 0
    Posted

    Here is to English and modified control scene. Only the code for the WC is still missing, but if you want I can share it also. I use presence detection to set "Ventilation_H_A" to "Low" when we are home and "Off" when nobody is home. Last thing is the manual override where I use a Switch to set the values of "Ventilation_switch". 1 press is low, 2 presses is high, and 3 presses is back automatic. When the switched is set manual to low or high a scene will run to set it back to automatic after 1 hour.

     

    Please login or register to see this code.

    Please login or register to see this image.

    /monthly_2020_08/afbeelding.png.768688ee02fe225308bde902ebc64b2d.png" />

    • Like 1
    • 0
    Posted

    The MCO humidity sensor is associated with a relais switch on the fan. Because it is battery operated, the humidity changes won’t get realtime to the Homecenter. Therefor the association works perfect. On the MCO you can configure tresholds when to turn on and of the fan. With the script I change the tresholds according to the outside humidity levels. 
     

    The MCO CO2 sensor is 220V operated and the on and off levels I manage with a simple block scene. 

    • 0
  • Inquirer
  • Posted
    On 8/17/2020 at 8:41 AM, Jeroen_ said:

    Below is the code for the bathroom. This is completely in English now. I use the Global variable Ventilation_bath to set the CMV to Off, Low, Medium or High. To get this working you only must change 3 ID numbers. If you have 2 bathrooms, make to separate scenes with to correct ID numbers and change the Global variables to Ventilation_bath1 and Ventilation_bath2. Below the code is the deug messages I get each time the scene triggers. I will make post with the rest of my code later today or tomorrow.

     

    Please login or register to see this code.

     

     

    Hi, i m back, i don't have time to came here lasts days... work hard . Sorry.

     

    I have some questions here:

     

    what is local phone id ? this is mobile phone ?

     

    local hum2 its the second humidity sensor right ? what he does hear? if one of this 2 sensor are above 52 low for example ?

    or the local hum2 its for humidity in house high ?

     

     

    "If you have 2 bathrooms, make to separate scenes with to correct ID numbers and change the Global variables to Ventilation_bath1 and Ventilation_bath2. "

     

    what this means? to simplify i can't have all sensores in this scene ? or not they will conflict ?

     

     

     

     

     

    • 0
  • Inquirer
  • Posted
    On 8/17/2020 at 10:58 AM, Jeroen_ said:

    Here is to English and modified control scene. Only the code for the WC is still missing, but if you want I can share it also. I use presence detection to set "Ventilation_H_A" to "Low" when we are home and "Off" when nobody is home. Last thing is the manual override where I use a Switch to set the values of "Ventilation_switch". 1 press is low, 2 presses is high, and 3 presses is back automatic. When the switched is set manual to low or high a scene will run to set it back to automatic after 1 hour.

     

    Please login or register to see this code.

    Please login or register to see this link.

     

     

    This code control the other code ?

     

     

    • 0
    Posted (edited)

    @Jurassik

     

    Quote

    what is local phone id ? this is mobile phone ?

     

    This is the ID number of my mobile phone stored in a global variable. When I change phone I only have to change the variable in stead of all my LUA scripts where I use notifications.

     

    Quote

    local hum2 its the second humidity sensor right ? what he does hear? if one of this 2 sensor are above 52 low for example ?

    or the local hum2 its for humidity in house high ?

     

    This is a sensor in the house, outside the bathroom for the local humidity. If it is above 52 the script behaves in a different way.

     

    Quote

    what this means? to simplify i can't have all sensores in this scene ? or not they will conflict ?

     

    The way this script is setup, you will need a copy of this scipt for each bathroom. I can change the script to combine both bathrooms in 1 script, but I can't test it fully. I would need the following from you:

     

    ID number humidity sensor bathroom 1

    ID number humidity sensor bathroom 2

    ID number humidity sensor bathroom 3

    ID number humidity sensor bathroom 3

    and so on

    ID number of 1 humidity sensor in another place in the house

     

     

    11 hours ago, Jurassik said:

     

     

    This code control the other code ?

     

     

     

    This script is indeed controlled by the other scripts and triggerd by changes in the variables.

    Edited by Jeroen_
    • Like 1
    • 0
  • Inquirer
  • Posted

    Hi guys 

     

    There is any dev or someone could help me, on create this scene, it will be a pay job. 
     

    very thanks 

    • 0
    Posted (edited)
    1 hour ago, Jurassik said:

    Hi guys 

     

    There is any dev or someone could help me, on create this scene, it will be a pay job. 
     

    very thanks 

    Please try

    Please login or register to see this link.

     no LUA knowledge required and could be done very easily what you need.

    Let me know if you need help to define the action...

     

    Edited by cag014
    • Thanks 1
    • 0
  • Inquirer
  • Posted
    On 4/1/2022 at 12:53 AM, cag014 said:

    Please try

    Please login or register to see this link.

     no LUA knowledge required and could be done very easily what you need.

    Let me know if you need help to define the action...

     

    Hi cag014

     

    very thanks for your replay, will try to install that scene, then I will need help to configure I think, very thanks 

    • 0
    Posted
    5 hours ago, Jurassik said:

    Hi cag014

     

    very thanks for your replay, will try to install that scene, then I will need help to configure I think, very thanks 

    No problem, let me know when you need any help...

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