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


Support for Germany speakers Fibaro User, i need help?


Recommended Posts

Posted

OK, i hope for help here. We are 5 Users (friends) of Fibaro.

I will Translate the difficult think with google Translator.

I have follow problem:

The Scene i wish was follow:

1.) After the Sun goes up the Roller goes to open

2.) the Problem is my door Sensor

3.) I have one Door Sensor. When the Sensor is closed in the evening (after the sun goes down) the Rollo goes down.

4.) Is the Door Sensor open, then the Rollo does not closed (than i am sitting in the garden :- )

5.) After i closed the door than can closed the rollo

door sensor is FGK-101 from Fibaro

My Problem is when the Rollo is open and i open the door than goes the rollo up to closes

Please login or register to see this image.

/emoticons/default_icon_smile.gif" alt=":-)" />

I closed the door! The Rollo goes to open ?????

1

--[[

2

%% autostart

3

%% properties

4

58 value

5

%% globals

6

--]]

7

8

local sourceTrigger = fibaro:getSourceTrigger();

9

if (sourceTrigger["type"] == "autostart") then

10

while true do

11

12

local currentDate = os.date("*t");

13

local startSource = fibaro:getSourceTrigger();

14

if (

15

( ((currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and os.date("%H:%M", os.time()-45*60) == fibaro:getValue(1, "sunsetHour")) )

16

and

17

( tonumber(fibaro:getValue(58, "value")) == 0 )

18

)

19

then

20

fibaro:call(31, "close");

21

fibaro:call(31, "setValue2", "0");

22

end

23

Please login or register to see this attachment.

Posted

can you not set a GLOBAL VARIABLE?

ISOPEN

ISCLOSED

so when door is open check rollo ISOPEN or ISCLOSED?

set the variable by block scene

when rollo open then set variable ISOPEN

or

scene 2

when rollo closed then set variable ISCLOSED

Please login or register to see this image.

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

  • Topic Author
  • Posted

    Sorry i am so new, i worked only with the color blocks an the are no way to choose this one!

    Posted

    Here is my scene. It works great.

    12 is roller shutter 2 FGRM222

    39 is FGK101 Door/Window Sensor

    Please login or register to see this code.

  • Topic Author
  • Posted

    Please what is here wrong?

    I will that the Rollo open after 6.00 in the morning or after sun goes up!

    Momently open the Rollo in the evening too....... but i think is is every time after the sun goes up.....

    I have one motion sensor and the roller shutter.....

    Please give it some features to say, open when motion only at daytime or so?

    -[[

    %% autostart

    %% properties

    59 value

    %% globals

    --]]

    local sourceTrigger = fibaro:getSourceTrigger();

    if (sourceTrigger["type"] == "autostart") then

    while true do

    local currentDate = os.date("*t");

    local startSource = fibaro:getSourceTrigger();

    if (

    ( ((currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and os.date("%H:%M", os.time()-30*60) == fibaro:getValue(1, "sunsetHour")) )

    and

    ( tonumber(fibaro:getValue(59, "value")) == 0 )

    )

    then

    fibaro:call(33, "close");

    fibaro:call(33, "setValue2", "0");

    end

    fibaro:sleep(60*1000);

    end

    else

    local currentDate = os.date("*t");

    local startSource = fibaro:getSourceTrigger();

    if (

    ( (currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) )

    and

    ( tonumber(fibaro:getValue(59, "value")) == 0 )

    or

    startSource["type"] == "other"

    )

    then

    fibaro:call(33, "close");

    fibaro:call(33, "setValue2", "0");

    end

    end

    Posted

    Here is how it works in my house.

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