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


Recommended Posts

Posted (edited)

Just want to share a temp sensor QA :)

Please login or register to see this attachment.

Please login or register to see this attachment.

 

or 

 

Please login or register to see this attachment.

 

 

 

 

Gives the option to send push or email massage with temp data from QA view :)

 

Feel free to comment other wishes for more features :D 

Might upload to marketplace later :)

 

Thanks to @jgab for his fibemue, eventlib and tutorials!! :D 

 

Better temp sensor:
image.png.ab433f89425ca201324fa566c09f0bc8.png

 

image.png.d16fa184457e53fca1cfdd5d516d7b9e.png

Please login or register to see this attachment.

 

 

 

 

Temp Sensor overview:

image.png.961c512f29e9f71caa1874d41c68b6e8.png

 

 

 

Edited by Brors94
New Version
  • Like 2
  • Thanks 2
Posted (edited)

Hi, just a quick question: What is the variable „setup“ used for? Default value is 0. Anything to change here? Thanks! Cheers Alfons

Edited by awlieser
  • Topic Author
  • Posted
    1 hour ago, awlieser said:

    Hi, just a quick question: What is the variable „setup“ used for? Default value is 0. Anything to change here? Thanks! Cheers Alfons

     

    if you change it to anything it does restart the QA to orginal state or it should do that 😅 Just somthing I have in all my QA's :) So nothing you have to do with it :)

    Posted

    Thanks, understood! Cheers Alfons

    • 4 weeks later...
    Posted (edited)
    On 2/19/2025 at 6:32 PM, Brors94 said:

     

    if you change it to anything it does restart the QA to orginal state or it should do that 😅 Just somthing I have in all my QA's :) So nothing you have to do with it :)

    Is it possible to make the interval a variable ? I'm not ure what the current interval for each measurement is?

    I Do get an error in the debug log:

     timer handler failed with error: ./include/main.lua:413: bad argument #1 to 'for iterator' (table expected, got nil)

     

    I'm looking for a way to run a scene and use a drop of temperature as a trigger.

    Quick explanation, I Also use the climate and have my thermostats configured but when someone opens a window the temperature drops, the thermostat notices this and begins to heat up the room immediately. I Would like to prevent this by reducing the thermostats automatically for like half an hour or an hour, re-measure the actual temperature and when it's still below a certain value but stable, heat up, when it's still dropping, window is still open, re-measure again after half an hour etc.

    Edited by GeeMoney
  • Topic Author
  • Posted (edited)
    21 minutes ago, GeeMoney said:

    Is it possible to make the interval a variable ? I'm not ure what the current interval for each measurement is?

    I Do get an error in the debug log:

     timer handler failed with error: ./include/main.lua:413: bad argument #1 to 'for iterator' (table expected, got nil)

     

    I'm looking for a way to run a scene and use a drop of temperature as a trigger.

    Quick explanation, I Also use the climate and have my thermostats configured but when someone opens a window the temperature drops, the thermostat notices this and begins to heat up the room immediately. I Would like to prevent this by reducing the thermostats automatically for like half an hour or an hour, re-measure the actual temperature and when it's still below a certain value but stable, heat up, when it's still dropping, window is still open, re-measure again after half an hour etc.

     

    Aha,  it isnt actually an interval :D (uses eventlib by jgab to trigger on value reports)
    It updates everytime the device sends an update on the value. 

    So if you example got an smart implant with ds18b20 you can adjust the report interval and minimum change before the sensor should send a value.


    and is it the overview or the better temp sensor you are using? :)



     

    Edited by Brors94
    Posted (edited)
    9 hours ago, Brors94 said:

     

    Aha,  it isnt actually an interval :D (uses eventlib by jgab to trigger on value reports)
    It updates everytime the device sends an update on the value. 

    So if you example got an smart implant with ds18b20 you can adjust the report interval and minimum change before the sensor should send a value.


    and is it the overview or the better temp sensor you are using? :)

     

     

    Ok, that explains, I'm using the Better Temp Sensor . Showing exactly what I needed but now I would like to be able to use it in a scene to trigger if the drop is bigger than X in time Y . :)

    The alternative is 14 window/door sensors of course but that seems a bit overkill to me.

    Edited by GeeMoney
  • Topic Author
  • Posted
    11 hours ago, GeeMoney said:

     

    Ok, that explains, I'm using the Better Temp Sensor . Showing exactly what I needed but now I would like to be able to use it in a scene to trigger if the drop is bigger than X in time Y . :)

    The alternative is 14 window/door sensors of course but that seems a bit overkill to me.


    Yea, I understand that :D Overkill to have 14 door/windows sensors 😅

    But Should be possible to make a program/script for it I guess 🤔

    Do you got an example graph from a sensor that have a temperature drop like you describe? :D

    Posted (edited)
    2 hours ago, Brors94 said:


    Yea, I understand that :D Overkill to have 14 door/windows sensors 😅

    But Should be possible to make a program/script for it I guess 🤔

    Do you got an example graph from a sensor that have a temperature drop like you describe? :D

    Unfortunately not right now from HC3 directly. The charts are not really sufficient to show that in history over time. Per day charts are fine for temp sensors but anything larger than that is impossible to show it.

    I Do have evidence of it from HomeAssistant which is keeping track on the same sensors but historically graphs can be created on manual timeframes.

    attached you can clearly see that just before 10 in the morning a window is opened. The temp drops 0.2 degrees within 10 minutes and 0.4 degrees in 20 minutes.

     

    It would be really cool that if a temp drop of 0.2 (or make it a variable) degrees is detected between 2 or 3 samples that a global variable can be triggered/changed. I Can than use that global variable as a trigger in a scene. Should be an easy adjustment I think as it's already now able to send a push notification so instead of a push, a global var can be altered ? But push is now being send on what condition? 

    Please login or register to see this attachment.

    Edited by GeeMoney
  • Topic Author
  • Posted
    1 hour ago, GeeMoney said:

    Unfortunately not right now from HC3 directly. The charts are not really sufficient to show that in history over time. Per day charts are fine for temp sensors but anything larger than that is impossible to show it.

    I Do have evidence of it from HomeAssistant which is keeping track on the same sensors but historically graphs can be created on manual timeframes.

    attached you can clearly see that just before 10 in the morning a window is opened. The temp drops 0.2 degrees within 10 minutes and 0.4 degrees in 20 minutes.

     

    It would be really cool that if a temp drop of 0.2 (or make it a variable) degrees is detected between 2 or 3 samples that a global variable can be triggered/changed. I Can than use that global variable as a trigger in a scene. Should be an easy adjustment I think as it's already now able to send a push notification so instead of a push, a global var can be altered ? But push is now being send on what condition? 

    Please login or register to see this attachment.


    What if I make it an "Event"      example name:   "better_temp_59_tempdrop"   59=ID that you could trigger on instead of a variabel?
     

    But I have to think about it how to do it 🤔 
    how should we define what is normal temp and what is fast droping  🤔 


    and ill add buttons to adjust "timeframe" and the temp diff for now I think  🤔 
    and enable/disable 


    I will also add and avrage for the last 10 readings I think. 
    And an all time high and low would also be nice to see I think :D


    and the autopush function now send push on everyreading so could be to mutch 😅
    It is easy to just make a scene to send the readings every day for example instead :)






     

    Posted
    11 hours ago, Brors94 said:


    What if I make it an "Event"      example name:   "better_temp_59_tempdrop"   59=ID that you could trigger on instead of a variabel?
     

    But I have to think about it how to do it 🤔 
    how should we define what is normal temp and what is fast droping  🤔 


    and ill add buttons to adjust "timeframe" and the temp diff for now I think  🤔 
    and enable/disable 


    I will also add and avrage for the last 10 readings I think. 
    And an all time high and low would also be nice to see I think :D


    and the autopush function now send push on everyreading so could be to mutch 😅
    It is easy to just make a scene to send the readings every day for example instead :)
     

    I Don't want to make your summer miserable by coding a lot of stuff that you will probably never use yourself haha.

     

    A fast drop can be different for everyone, that's why having it as a variable would be nice. I'm having a very good isolated house so temperature is really stable and only very slowly goes down if heating is off (0.4 degrees per 12 hours something) so if I have a drop of 0.2 degrees within 2 samples (that are 20 minutes apart) that means a door or window is open or someone put the thermostat in the freezer :P .

    • Like 1
  • Topic Author
  • Posted
    On 3/20/2025 at 11:15 AM, GeeMoney said:

    I Don't want to make your summer miserable by coding a lot of stuff that you will probably never use yourself haha.

     

    A fast drop can be different for everyone, that's why having it as a variable would be nice. I'm having a very good isolated house so temperature is really stable and only very slowly goes down if heating is off (0.4 degrees per 12 hours something) so if I have a drop of 0.2 degrees within 2 samples (that are 20 minutes apart) that means a door or window is open or someone put the thermostat in the freezer :P .

     

    May you test this? 
    I think this might work for you 🤔

    Please login or register to see this attachment.

     

     

    • Like 1
  • Topic Author
  • Posted

    @GeeMoney

    Does it work with the child device if the temperature drop fast? 
    Or do we need to do some changes? 🤔

     

    Posted
    On 3/25/2025 at 11:29 PM, Brors94 said:

     

    May you test this? 
    I think this might work for you 🤔

    Please login or register to see this attachment.

     

     

    Really nice work!!

    I'm still verifying stuff right now.

    The trigger device seems to work as expected. However on the first attempt I did not receive the push message besides that trigger device?

     

     

    Please login or register to see this attachment.

  • Topic Author
  • Posted (edited)
    49 minutes ago, GeeMoney said:

    Really nice work!!

    I'm still verifying stuff right now.

    The trigger device seems to work as expected. However on the first attempt I did not receive the push message besides that trigger device?

     

     

    Please login or register to see this attachment.


    Push when the trigger happen you mean? 🤔

    I havent made an alternative to get push when the trigger happen :)
    The "send push" button send the list of last 10 temps for now
    But I could add a button in the "hystiresis control" for Auto push when the trigger happen and send last 10 values with a warning 🤔

    Edited by Brors94
    Posted
    2 minutes ago, Brors94 said:


    Push when the trigger happen you mean? 🤔
     

    Yes, I have another scene that uses the new trigger device and that worked as expected.

    I'm now testing again if I receive a push from the main QA when temp drops. Thermostat is now in the freezer :P 

  • Topic Author
  • Posted
    3 minutes ago, GeeMoney said:

    Yes, I have another scene that uses the new trigger device and that worked as expected.

    I'm now testing again if I receive a push from the main QA when temp drops. Thermostat is now in the freezer :P 


    aha :) I dont think you get a push then :D 
    But I will add a option to automatic get push when the "Trigger event" happen :) 

    Posted
    1 minute ago, Brors94 said:


    aha :) I dont think you get a push then :D 
    But I will add a option to automatic get push when the "Trigger event" happen :) 

    Wait, maybe I misunderstood the Auto Push on the main QA? What should that do ?

    I Thought that it should sent me a Push when the temp drop happens?

     

  • Topic Author
  • Posted
    Just now, GeeMoney said:

    Wait, maybe I misunderstood the Auto Push on the main QA? What should that do ?

    I Thought that it should sent me a Push when the temp drop happens?

     


    If I remember correctly it pushes every temp reading 🤔 (Have to make a description label there 😆

    But I will add a description and a autopush for the trigger event to.
    I actually think the "Auto push user" and "auto push device" will be remade to by what type of push you want from the other autopush buttons  🤔 
    Example:
    Auto push trigger event  (do you got an idea for a name for the event?  😆) is on and
    the auto push device is on and
    the event trigger  and we will get an push about the event happened and only on the devices choosen. 

    If both auto push device and user is on we get push about the event on both the users and devices choosen                

     

    I think I will also add auto push massage center as an option to user and device since the last update gave us that option in the app to :D 
     

    Posted
    10 minutes ago, Brors94 said:


    If I remember correctly it pushes every temp reading 🤔 (Have to make a description label there 😆

    But I will add a description and a autopush for the trigger event to.
    I actually think the "Auto push user" and "auto push device" will be remade to by what type of push you want from the other autopush buttons  🤔 
    Example:
    Auto push trigger event  (do you got an idea for a name for the event?  😆) is on and
    the auto push device is on and
    the event trigger  and we will get an push about the event happened and only on the devices choosen. 

    If both auto push device and user is on we get push about the event on both the users and devices choosen                

     

    I think I will also add auto push massage center as an option to user and device since the last update gave us that option in the app to :D 
     

    Not sure why the push options were originally built in? I personally don't need them perse. I Just want to receive a push when the temp drop happens that would be nice but that can also be done by the child trigger device because I use that one as a trigger in a scene which works perfect.


    Really a nice job, thanks for all the coding and helping out really appreciate it!

    You also have experience with MQTT and Fibaro/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
    Reply to this topic...

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