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

How to set Horstmann SRT321 from LUA?


Question

Posted

Hi all,

I'm struggling a bit with the following:

When using LUA to set my Danfoss thermostats, I use setTargetLevel and add the temperature.

fibaro:call(98, "setTargetLevel", "21")

When setting the Horstmann/Secure SRT321, it takes 2 parameters, but I'm unable to find any information about what of the 2 is what. I suppose, one of the two is temperature, the other is duration, but when trying it out, the results are quite inconclusive.

fibaro:call(218, "setThermostatSetpoint", "21", "2")

fibaro:call(218, "setThermostatSetpoint", "2", "21")

appear to have the same result: set temp to 21 degrees. Same difference?

I had to switch from Heating Panel to Lua, since my SRT321 would revert to the heating panel settings after a minute (which is according to specs, so not an error) when set manually to a different setting. So, setting it up in a Heating Panel is obviously not a workable alternative for me.

Any suggestions?

Regards!

- update: Just sent an inquiry about this to Horstmann in the UK.

2 answers to this question

Recommended Posts

  • 0
Posted

+1

  • 0
  • Inquirer
  • Posted

    Hi all,

    So far I have come up with the following:

    Please login or register to see this code.

    This gives the following results:

    [DEBUG] 01:42:24: 17

    [DEBUG] 01:42:24: 19

    [DEBUG] 01:42:24: 01:42

    [DEBUG] 01:42:24: 0

    [DEBUG] 01:42:24: WAITING_FOR_WAKEUP_TO_CONFIGURE

    This leads to 2 conclusions, for now:

    • 1. The timestamp differs from the Danfoss: in Danfoss it gives you the END time of the targetvalue you set; in SRT321 it is the moment it got the command to set the setpoint.
      2. The second parameter you give in the setThermostatSetpoint is the actual setpoint. Still no clue what the first one does, though. The only thing I can see is that it messes with the moment it sets the setpoint whenever it differs from the second parameter. In other words: when you set it as "21", "21", it switches to 21 as soon as it wakes up. Set it as "19", "21" or any different value, the SRT321 will take forever to wake up. Don't know how long, but (much) longer than the normal 300s.

    Any additions are welcome, people!

    For the time being, I will use this format:

    Please login or register to see this code.

    This will give you no control over the length of the heating period, like the Danfoss does when you use

    Please login or register to see this code.

    so you will have to control the heating period yourself.

    (The Danfoss will run for 2 hrs on 21 degrees Celsius, before returning to the previous setpoint (look at "value" before Danfoss sets the new value).)

    Regards.

    [ Added: 2015-01-31, 22:37 ]

    Hi all,

    It seems that

    Please login or register to see this code.

    Works just as well.....saves the trouble of figuring out the parameters of the other command.

    Bonus: it switches with the interval of 300s, so within 5 mins.

    I think I leave it at this, since the SRT321 doesn't accept time settings. It depends solely on you to program the timing right in the HC.

    Regards!

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