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

Horstmann HRT4 ASR-ZW script on/off fails


Question

Posted (edited)

Hi community, 

 

I installed this summer the horstmann HRT4 ASR-ZW to control my central heating and did some time scripting turning it on/off. 

 

Only it doesn't work, I used this magic Scene (image number 1)

 

Only at 5:45 nothing happens.  When I convert the script to LUA this is the result:

 

--[[
%% autostart
%% properties
%% events
%% globals
--]]

local sourceTrigger = fibaro:getSourceTrigger();
function tempFunc()
local currentDate = os.date("*t");
local startSource = fibaro:getSourceTrigger();
if (
 ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "05:45") )
)
then
end

setTimeout(tempFunc, 60*1000)
end
if (sourceTrigger["type"] == "autostart") then
tempFunc()
else

local currentDate = os.date("*t");
local startSource = fibaro:getSourceTrigger();
if (
startSource["type"] == "other"
)
then
end

end

 

Also nothing between then and end.  

 

How can I switch this device on/off?  Using the button works fine. (image number 2)

 

Help is much appreciated!

 

 

 

 

 

Please login or register to see this attachment.

Please login or register to see this attachment.

Edited by barend121

4 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Up :-) does anyone uses a script to manipulate the horstmann relais? And can share the LUA script?

    • 0
    Posted

    In your case the following code is to turn on the CV switch:

    Please login or register to see this code.

    Change it to "0" to turn it off.

     

    What is your whole script? How does it know to turn the heating off?

    • 0
  • Inquirer
  • Posted

    thanks a lot! will test it this weekend. 


    The script is time based, when one of the rooms is scheduled for heating it turns on. when a extra heating moment is needed it can be overrided. 

    • 0
    Posted

    It's time based, but what if the room is already at a comfortable temperature? Then it keeps heating?

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