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

Danfoss valves with Secure STR 321 - Heating Panel Scene


Question

Posted

Hello everyone, first off all I want to say that I'm not a programmer, I'm doing this as a hobby, and because I need to do it to make my house 'more clever' 

Please login or register to see this image.

/emoticons/default_icon_razz.gif" alt=":-P" />  This being said, my 'coding' may not be the best not even dreaming, but it's working and all that I made was by self learning and with help of some people in this forum, that what forums is all about. For those people, once more many thanks!

 

Feel free to help me improve this script, I'm sharing with you because at least one user ask me too, so it maybe helpful for others too.

If you want to share this script in other forums, blogs, etc you can do it, just refer this topic as source please.

 

As I had the need to turn ON/OFF my heating system when the heating panel sends the information to Danfoss valves, I made a Lua script, that its in beta stage and maybe still have bugs.

 

This scene as the objective to check all my Danfoss valves values, and set the higher one to my main Thermostat that turn ON/OFF my heater ( boiler ).

 

This is an auto start scene, that runs every 5 minutes, and if detect changes on any Danfoss valves values, it sets Thermostat value equal to higher Danfoss valve value and wait for 15 minutes, because my thermostat wakes up every 15 minutes.

 

Bugs to fix:

  • if Danfoss valve value don't end in .0 (example 16.0) but ends in .5 (example 16.5), it have to return 17.0 in this case, because thermostat only accept whole numbers;
  • others unknowing bugs;

 

Icon:

Please login or register to see this attachment.

 

Code:

Please login or register to see this code.

3 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Code:

    Please login or register to see this code.

     

     

    First bug detected, I can't put the sleep like I was doing, for now and for script works I'm going to remove that sleep timer of 15m, it was not changing the thermostat value :/

     

    It runs every 5 minutes, not 15 minutes sleeping for now because I don't know how to do it, but its changing the temperature

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

     

    Debug:

    Please login or register to see this code.

    Waiting for the device to wake up:

    Please login or register to see this attachment.

     

    Updated the code in the first post.

    • 0
    Posted

    Looking good so far! But first I need to convince my girlfriend we need those Danfoss valves

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    • 0
    Posted

    I've ordered 9 Devolo Home Control 9592 valves.

    @Morcegolas: How is your script working? Any adjustments made in the past year?

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