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


Recommended Posts

  • Topic Author
  • Posted

    Glade to hear it

    Is it works for you?

    let me know if you need any help

    Posted

    hi Cag014,

     

    Not sure if this possible in AOS, I work away from home a lot and link remotely via fibaro remote to my HC2, if the HC2 has lost connection to the internet for any reason I have no control.

    what i was hoping is there was some way the HC2 could be rebooted if AOS senses this connection is lost?

     

    Len (MagicMan)

     

  • Topic Author
  • Posted (edited)

    Yes it could be done

    I believe you've kept $HC2onLine default action-line  from download, so please add state delay and reboot command in this line

     

    {0, "$HC2onLine",{state="value=true#15",trueAct={"","tts","$dayTime, Home center is on line"},falseAct={{"","reboot","","{$internet:value=online}",false},{"","tts","$dayTime, Home center is off line"})}}, 


    The idea is when HC2 is off line, wait 15 sec.  (to prevent spikes in connection)  and if HC2 is still off line and Internet connection is OK (no sense to reboot if no internet) then reboot the system.

    You can change/remove the delay or internet connection condition. See example below w/o delay and internet condition:

     

    {0, "$HC2onLine",{state="value=true",trueAct={"","tts","$dayTime, Home center is on line"},falseAct={{"","reboot","",false},{"","tts","$dayTime, Home center is off line"})}}, 

     

    The false statement in reboot command is to prevent reboot on scene startup (to avoid reboot loop in case HC2 needs few seconds to be connected to fibaro remote at startup and scene is already activated)

    Edited by cag014
    Posted

    sorry Cag014 am i looking at this wrongly? If the hc2 is offline how can it run the AOS scene to complete this action?

    {0, "$HC2onLine",{state="value=true#15",trueAct={"","tts","$dayTime, Home center is on line"},falseAct={{"","reboot","","{$internet:value=online}",false},{"","tts","$dayTime, Home center is off line"})}}, 

     

    Len (MagicMan)

     

  • Topic Author
  • Posted (edited)

    What do you mean? All-in-One Scene runs on HC2, it doesn't need internet to perform reboot.

    It runs internally on HC2 always....

    $HC2onLine is a keyword value that gets from HC2 internal status.

    Just to clarify it a little bit more:

    For example if you have a scene that turns lights ON when motion sensor breached.

    You agree that the scene will run when you don't have internet or fibaro remotes access.

    Same for All-in-One Scene...

    Edited by cag014
    Posted

    yes Cag014 i see that but i am talking about when my HC2 "freezes" for a choice of a better word and i have to physically reset it.

    can it still reboot then using the scene ?

     

     

  • Topic Author
  • Posted (edited)

    OK. so it's not an internet, your system freeze!

    When the system freeze the reboot action could take a very long time...

    I suggest to investigate and to try to fix it... is doable.

    As a first step, please download

    Please login or register to see this link.

      to check if your devices "bombarding" zwave communication (in many cases this is the root cause) and to set better configuration of the devices .

    Please refer to 

    Please login or register to see this link.

    Please login or register to see this link.

    Please login or register to see this link.

     

     

    Edited by cag014
    Posted

    hi Cag014.

    i am asking about the vacation function,

     

    {0,"$timer",{timeSlot="6:00~9:00""},trueAct={{"`stat`","setTargetLevel,&maxtemp",""},{"settemp","setGlobal","22"}}}}, 

     

    In the above line i would like to setTargetLevel,&mintemp when vacation mode selected but setTargetLevel,&maxtemp when not

    Thanks

    Len

     

     

  • Topic Author
  • Posted

    Please use keyword $homeMode

    $homeMode has two value Home or Vacation

    There are two options to use it as condition

    1. Set same command with different condition

    Please login or register to see this code.

    2. Use ;else; statement for condition

    Please login or register to see this code.

    I recommend to use second option. Easier to "read" and to modify.

    Let me know if you've any issue with that

    Posted

    hi cag014,

    {0,"$timer",{timeSlot="6:00~9:00"},trueAct={{"`stat`","setTargetLevel,&maxtemp;else;setTargetLevel,&mintemp","","{$homeMode:value=Home}"},{"settemp","setGlobal","22"}}}},

    get an error message  with line as is but if i remove } at end of this line {0,"$timer",{timeSlot="6:00~9:00"} < and put this it runs is that ok?

    {0,"$timer",{timeSlot="6:00~9:00",trueAct={{"`stat`","setTargetLevel,&maxtemp;else;setTargetLevel,&mintemp","","{$homeMode:value=Home}"},{"settemp","setGlobal","22"}}}},

     

    Also how to i set keyword $homeMode to home or away?

  • Topic Author
  • Posted

    Yes, this is OK...  looks like too much }}}..

    To set $homeMode to "Vacation" - use command  {"","vacOn","<delay>") set back to "Home" use {"","vacOff","<delay>")

    But please pay attention that:

    By default, at vacation mode time span ignored. All line with Z-wave devices, global and keyword variables are converted to Activities (to keep your home running, without timeout alerts). Triggered scenes and Virtual devices monitoring is suspended. No changes on auto scenes.

     

    To override default mode, you can define vacation parameter as following:
    a) normal - keeps line's normal behavior during vacation. 20,”435|678”,{state=”power>5”,vacation=”normal”} }
    b) stop – suspend/disable the entire line.

     

    If you need to just to change the line that we working on, I suggest to use scene's variable.
     

     

     

    Posted

    hi cag014,

     

    {"","vacOn","<delay>"}

     

    what is the <delay> for?

     

    thanks

    Len

  • Topic Author
  • Posted

    Almost in all commands the third field is delay to execute (same as in block scene)

    For example:

    trueAct=("400","turnOn","20"}  -  turnOn device 400 after 20 seconds 

    Same for vacation mode

    trueAct={"","vacOn","20"} - set vacation after 20 seconds (in case you need to arm sensors and to get out from home)

    If you don't need any delay leave it blank

    trueAct={"",vacOn",""}

    • 3 weeks later...
    Posted

    Hi!

     

    Sorry for the beginners question, but I just can't figure out, how to set an action that is executed every 10 minutes, without any criteria.

     

    Basically I would like to press a virtual device's button every 10 minutes:

     

    {"170","pressButton,9",""}

     

    but can not figure out the hows...

     

    Thanks in advance for the help!

  • Topic Author
  • Posted

    Since there is no device state involved, the solution is to use $timeLoop "dummy" keyword and timeLoopAct{} action.

    Please add follow line to yours jM{} array

    jM={

    {10,"$timeLoop",{timeLoopAct={"170","pressButton,9",""}}},

    }

    Posted
    3 hours ago, cag014 said:

    Since there is no device state involved, the solution is to use $timeLoop "dummy" keyword and timeLoopAct{} action.

    Please add follow line to yours jM{} array

    jM={

    {10,"$timeLoop",{timeLoopAct={"170","pressButton,9",""}}},

    }

    Thanks, works as expected! :)

    Posted

    Will AOS work on a HC3?

     

  • Topic Author
  • Posted

    Yes it will.

    Working on new alarm concept in HC3...

    I believe first version will be released next week

     

    Posted

    Hi, i'm new on the forum, and i'm tring to move a lot of lua and magic scenes to aos. Maybe you can help me:

    I'tring to transfer on aos a scene:

    --[[
    %% autostart
    %% properties
    %% weather
    %% events
    911 CentralSceneEvent 1 Pressed
    911 CentralSceneEvent 2 Pressed
    911 CentralSceneEvent 3 Pressed
    911 CentralSceneEvent 4 Pressed
    %% globals
    --]]

    local startSource = fibaro:getSourceTrigger();
    if (
     ( (startSource["type"] == "event" and startSource["event"]["type"] == "CentralSceneEvent")  or  (startSource["type"] == "event" and startSource["event"]["type"] == "CentralSceneEvent")  or  (startSource["type"] == "event" and startSource["event"]["type"] == "CentralSceneEvent")  or  (startSource["type"] == "event" and startSource["event"]["type"] == "CentralSceneEvent") )
    or
    startSource["type"] == "other"
    )
    then
        local deviceValue1 = tonumber(fibaro:getValue(494, "value"));
        if (deviceValue1 > 0) then
            fibaro:call(494, "turnOff");
        else
            fibaro:call(494, "setValue", "100");
        end
    end
     

     

    I't used to control hue light by a wall remote...any hint?

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