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

Motion sensor triggering lamp; should be simple!!!


Question

Posted

Hey all

I thought I would start simple!. But can't even get this to work.

Simple scene script as below.

Any advice welcome.

thanks

Please login or register to see this attachment.

10 answers to this question

Recommended Posts

  • 0
Posted

is your sensor "armed" in the fibaro interface?

  • 0
Posted

Do you need the status to be armed and breached?? As Stevenvd said, is the sensor armed? If you don't want to use it based on that, change it to breached and that should work.

  • 0
  • Inquirer
  • Posted

    Hi,

    Yes. Sensor is armed. tried 'breached' and 'breached and armed' ; still nothing

    Please login or register to see this image.

    /emoticons/default_icon_sad.gif" alt=":-(" />

    Done a simple test in lua :

    fibaro:call(6, "sendEmail" ,"fghfhfg" ,"pump" );

    6 is the 'id' of my email . Nothing gets sent

    Please login or register to see this image.

    /emoticons/default_icon_sad.gif" alt=":-(" />

    • 0
    Posted

    Have you checked how many of those scenes do you have running?? May be need to stop and restart that..

    This is my scene based on sensor breach.

    The following works for me for email.

    fibaro:call(2, "sendEmail", "Drive Lights On", "Drive Lights On");

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted

    No joy.

    Given up with the 'block' approach so gone into Lua hoping that the more control makes for a better experience.....

    [ Added: 2014-11-12, 10:16 ]

    Hmmm,

    All kinds of 'issues'. It would seem through experience and going through these forums that the firmware is very buggy; making the system unusable and certainly unreliable. Time to look at Indigo I guess.

    • 0
    Posted

    pocster, you are running beta software, hence bugs and unstable behavior may occur. Please return to 3.590 if you are using FIBARO in working installation.

    • 0
    Posted

    rajp...

    Can you please tell me how to configure DayTime -variable?

    I am trying to do the same scene (block based) as you have done. Door breached -> light will turn on. I want that to happen only at evening. At daytime the light will not turn on.

    So how to configure daytime ?

    Thanks...

    • 0
    Posted

    I have the following scene that sets 2 variables (Night and Daytime) according to what time it is.. It sets 45 mins before Sunset to Night = 1 and Daytime to be Off and then reverts back to opposite 25 mins after Sunrise.

    Make sure your location is set correctly as it bases the Sunset and Sunrise time according to that.

    I use Night and Daytime as Global variables.

    Hope this helps.

    Raj

    ------------------------------------------------------------------------------------------------------

    --[[

    %% properties

    %% autostart

    %% globals

    --]]

    local BeforeSunset = 45

    local AfterSunrise = 25

    while true do

    if (os.date("%H:%M", os.time()+BeforeSunset*60) >= fibaro:getValue(1, "sunsetHour"))

    or (os.date("%H:%M", os.time()-AfterSunrise*60) < fibaro:getValue(1, "sunriseHour"))

    then

    fibaro:setGlobal("Night", 1);

    fibaro:setGlobal("DayTime", "Off");

    else

    fibaro:setGlobal("Night", 0);

    fibaro:setGlobal("DayTime", "On");

    end

    fibaro:sleep(60*1000);

    end

    • 0
  • Inquirer
  • Posted

    Sigh.

    I had to upgrade because other things did not work in the "stable" version of the software.

    2 steps forward 2.1 steps backward.....

    [ Added: 2014-11-14, 18:25 ]

    Is the most BASIC home automation task such as:

    Motion sensor turns on light OR

    Read power consumption from socket OR

    In the room view I have listed an alarm which I don't OR

    I turn on a light in the room view and the wrong light turns on OR

    Devices become dead nodes for no reason (next to the unit only a few devices) OR

    Fibaro's own 'eye' doesn't report luminance or temperature OR

    etc. etc.

    On that basis as a software engineer that tells me the system is unstable and unusable.

    What hope is there to achieve complex tasks.

    Although I changed from Vera 3 with it's ugly unfriendly UI and upsetting slow speed these basic tasks worked. I upgraded to beta because most of the basics don't work. So what now?

    Stays with v4 where things don't work or downgrade to v3 where things don't work.

    No thanks!

    STOP!. Fix bugs!. NO NEW FEATURES and glossy adverts promising the world!

    MAKE IT WORK FIRST!

    What worries me is Fibaro are on V4 and it's still unstable.

    Go and LOOK at the Indigo forum; just look!....... 100's of problem and complaints?

    No!; a working system is what you detect where everyone is happy. Yes; of course there are some issues - and you'll see in the forum [ANSWERED] or [FIXED].

    Indigo requires a Mac ; too expensive?. 2nd hand mac mini + z wave USB + indigo license cheaper than HC 2.

    Just my view. Sure this will get deleted. Apologies to users with HC 2 trying to work theire way through.

    Cheers

    • 0
    Posted

    I am on 3.590 version on my HC2 and it works just fine.. what is it that is forcing you to upgrade to v4?? Remember V4 is still a Beta. Though saying that 3.590 is not without pain but is a pretty stable version. Keep in mind, you can pick up a mac mini for £399 in the UK where as HC2 is £499 so indigo is also an option.

    And people agree with you that, Fibaro should stop doing other activities and concentrate on getting a stable version that does what they advertise.

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