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

Another one from me :)

 

I would like to show in Fibaro HCL if hot water is passing or not through tube, but on the following way. I want to install temperature probe on tube to detect temperature. Binary sensor will send information about temperature to HCL which will monitor it continuously. After temperature gets above predetermined value, it will set Variable to state 1. Once temperature gets below some value, it will set Variable to state 0. Those states 1 and 0 should be shown on HCL panel with ICON of some device as On and Off.

 

How can I do it? The part where I see device being turned off or on... :)

Guest FredrikKarlsson
Posted

Hi, 

 

You describe the algorithm for this very well, so implementation of the detection involves simply the conversion of it to blocks scenes. 

I don't have an HCL, but as I understand things, you will run into problems with displaying the state of the variable. This will require a Virtual device, and as I understand it, you cannot develop them in HCL. Only use them? So, you'll need to find a friend with a HC2 nearby to help you develop the Virtual device. Or find someone here? I have not tried Virtual devices myself, so I cannot help you, unfortunately.

  • Topic Author
  • Posted

    Hmm, as I understood you, it is possible to make such device on HC2 but not on HCL. Do you have some code which will represent such variable monitoring "device"?

    Posted

    In HCL you can't trigger something on the panel as far as I know. I Even don't know if you can do it in HC2 (I don't own one).

    But are you looking for something like the screenshot below? 'Boiler' failed is the same what you want to do. If the temperature is too low for some time, send me alert (or in this particular case, set a label in the VD). If temperature is recoverd, update the label again (or any intermediate action like 'temperature is increasing', ....).

     That's possible in HCL. Create your virtual device with labels. Create your alogorithm in a scene and write the result in the VD label. That's, as far as I'm aware off, the only possibility in HCL.

     

     

    Please login or register to see this attachment.

  • Topic Author
  • Posted

    Would you be kind and share with me code and procedure for creating this?

    Posted

    Ok, here we go. Remember the scene's mentioned below are for temperature failure purpose. So not exactly what you want but it's certainly useable and I can recommend to make something simular in order to decrease the number of scene instances running or having scene's running all the time with updates when it's not necessary.

     

    1) first create a virtual device. Go to devices tab --> Add device --> add a virtual device. give it a name, assign a room, type in the ip '127.0.0.1' and port '11111' (settings for a virtual device pointing to your hcl).
        You can add kind of a header by adding a fake button and give it a name (for example 'status of the house' in the label field). Give the button an id (the id is used in scene's). Next add a label and add the labelname and id (for example 'temperature')

    2) Next, create the necessary variables. Go to panels and variables tab. Add two variables with default value 0. For example 'TubeTemperatrueOn' and ''TubeTemperatrueOff'.

    3) Create the scenes. I have created 4 scenes to accomplish this. It can be done with 2 (certainly what you want to do), however it's more reliable (at least I think) with those 4.

     

    Scene A : scene A is checking if it is not already in failure (variable Boilertempfailure) and if the temperature is below a certain value. If so, it will increase the variable 'BoilertempLow' with 1 (To avoid false alerts in my case).

       and more important for you, it will write your preferred text in the label value 'statusBoiler' of the virtual device to 'temperatuur is laag'.

    Scene B : scene B is based upon the increased value of the variable (to simulate a temperature drop for at least 10 minutes in combination with the temperature reporting interval of the binary sensor) and if it was not in failure yet during a previous run.

       if condition is met then it will send an alert via mail and push and update the label in the virtual device.

    Scene C and D are more less doing the same but in opposite in order to report if the temperature is back increasing.
     

    Be aware of the triggering devices and variables on top of the scenes.

    I hope this could help.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

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