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 (edited)

    The attached version has an option to set actions based on users/mobiles GPS location.

    Please see GPS user guide.

    In addition the state definition has a default property "value" and not required in jM line. For example:

    Standard format:

    state="value=true"

    state="value>10"

    New optional format

    state="true"

    state=">10"

    This new format available for property "value" only. For any other properties, use standard syntax.

    Standard format is supported also.

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Edited by cag014
  • Topic Author
  • Posted
    1 hour ago, Rover said:

    This jM lines was triggert: {0,"`VoordeurSwitch`",{trigAll=true,trigAct={{"VoordeurSwitchHC3","sendEmail,2","@`VoordeurSwitch`>sceneActivation"}}}},

    but I was not aware that besides the desired sceneActivation triggers like  {0,"`VoordeurSwitch`",{state="sceneActivation=`But1Release`",trueAct={

    also a trigger batterylevel could occur. Why? the trigger was 92 (and the VoordeurSwitch has 92% batterylevel indeed), but why a trigger?

    Yes, in case no state defined then trigAct{} will be executed on any received value of any property. This feature designed to check device activity to verify it's not stuck.

    Posted
    1 hour ago, cag014 said:

    Yes, in case no state defined then trigAct{} will be executed on any received value of any property. This feature designed to check device activity to verify it's not stuck.

    It looks like HC2 scenes still influences now HC3 devices, while all HC2 devices have gone to non configured after the migration to HC3.

    Posted
    On 12/28/2020 at 7:36 PM, Rover said:

    It looks like HC2 scenes still influences now HC3 devices, while all HC2 devices have gone to non configured after the migration to HC3.

    It is sure because the battery check scenes of HC2 are still functioning.

    Posted

    Hi cag014,

    I want to thank you for GPS option, works excellent.

    But it doesn't support HC2 slave users and their location (works for HC3 only).

    Any Idea how to do it on HC2? 

  • Topic Author
  • Posted

    To my opinion it will be very confusing to support slave's GPS because it could have same users, same places and you'll never know who is the user? I mean in which controller.

    But I have upgraded the AOS for HC2 to support geo-fencing also and you can run AOS on HC2.

    Currently AOS has been released and waits for Fibaro's approval.

    Let me know how it works on AOS?

     

     

    Posted

    {0, "$24clock",{state="value=02:55", trueAct={

    {"$lineId","setTimeSlot","?3:00+(random(0,`RandomMaxTijd`)*60)?~","{$24clock:value=02:55}"},

    did not function this night, also

    {0, "$24clock",{state="value=04:00",initOnStartup=false,lineState={"if {&XRaamGloriaLamp:value=start}"}, trueAct={

    did not function. Why?

    [30.12.2020] [23:55:11] [TRACE] [AOQ372]: 9.3jM{74} T$24clock[23:55] => setTimeSlot,01:35~'{$24clock>HitteBijkeuken)  {$24clock:value=23:55}

    but no $24clock activity later also not at fixed time 04:00 while lineState value was valid.

     

    HitteBijkeuken is number 74 (cosmetic error I think).

  • Topic Author
  • Posted
    23 hours ago, Rover said:

    {0, "$24clock",{state="value=02:55", trueAct={

    {"$lineId","setTimeSlot","?3:00+(random(0,`RandomMaxTijd`)*60)?~","{$24clock:value=02:55}"},

    did not function this night, also

    {0, "$24clock",{state="value=04:00",initOnStartup=false,lineState={"if {&XRaamGloriaLamp:value=start}"}, trueAct={

    did not function. Why?

    [30.12.2020] [23:55:11] [TRACE] [AOQ372]: 9.3jM{74} T$24clock[23:55] => setTimeSlot,01:35~'{$24clock>HitteBijkeuken)  {$24clock:value=23:55}

    but no $24clock activity later also not at fixed time 04:00 while lineState value was valid.

     

    HitteBijkeuken is number 74 (cosmetic error I think).

    Don't see any problem with that, is it worked tonight ?

    Posted
    37 minutes ago, cag014 said:

    Don't see any problem with that, is it worked tonight ?

    Yes, it has worked tonight.

     

    Happy New Year cag ?

    Keep up the good work ?

  • Topic Author
  • Posted

    Happy new year to all....

    Posted
    14 hours ago, cag014 said:

    Don't see any problem with that, is it worked tonight ?

    {$24clock>HitteBijkeuken) ?

  • Topic Author
  • Posted
    9 hours ago, Rover said:

    {$24clock>HitteBijkeuken) ?

     

    {$24clock:value>HitteBijkeuken}

    Posted (edited)
    On 1/2/2021 at 10:29 AM, cag014 said:

     

    {$24clock:value>HitteBijkeuken}

    No, the jM line was:

    {0, "$24clock",{state="value=23:55", trueAct={

    {"$lineId","setTimeSlot","?00:00+(random(5,120)*60)?~","{$24clock:value=23:55}"},

     

    Result in Debug screen:

    [30.12.2020] [23:55:11] [TRACE] [AOQ372]: 9.3jM{74} T$24clock[23:55] => setTimeSlot,01:35~'{$24clock>HitteBijkeuken)  {$24clock:value=23:55}

     

    jS2n: HitteBijkeuken="74"

     

    Today: 

    {0, "$24clock",{state="value=02:55", trueAct={

    {"$lineId","setTimeSlot","?3:00+(random(0,`RandomMaxTijd`)*60)?~","{$24clock:value=02:55}"},

    Please login or register to see this spoiler.

     

    Edited by Rover
  • Topic Author
  • Posted
    10 hours ago, Rover said:

    No, the jM line was:

    {0, "$24clock",{state="value=23:55", trueAct={

    {"$lineId","setTimeSlot","?00:00+(random(5,120)*60)?~","{$24clock:value=23:55}"},

     

    Result in Debug screen:

    [30.12.2020] [23:55:11] [TRACE] [AOQ372]: 9.3jM{74} T$24clock[23:55] => setTimeSlot,01:35~'{$24clock>HitteBijkeuken)  {$24clock:value=23:55}

     

    jS2n: HitteBijkeuken="74"

     

    Today: 

    {0, "$24clock",{state="value=02:55", trueAct={

    {"$lineId","setTimeSlot","?3:00+(random(0,`RandomMaxTijd`)*60)?~","{$24clock:value=02:55}"},

    Please login or register to see this spoiler.

    Beside strange message in debug window ( I'll see what the problem is), is it works.

    What do you see in HCwebEye in timeSLot column?

    Posted
    2 hours ago, cag014 said:

    Beside strange message in debug window ( I'll see what the problem is), is it works.

    What do you see in HCwebEye in timeSLot column?

    Yes it works! Like I said before it is a cosmetic "problem".

    Please login or register to see this spoiler.

     

    Posted

    {0, "$24clock",{state="value=02:55", trueAct={

    {"$lineId","setTimeSlot","?3:00+(random(0,`RandomMaxTijd`)*60)?~","{$24clock:value=02:55}"},

    {"`XRandomLichten`","setGlobal","stop","{$24clock:value>02:59}"}, --{"RandomLichten","sendEmail,2","Stop","{$24clock:value>02:59}"},

    {"`RandomLichten`","turnOff","{$24clock:value>02:59}"}}}}, 

     

    and

     

    {"$lineId","setTimeSlot","?3:00+(random(0,`RandomMaxTijd`)*60)?~","{$24clock:value=02:55}"},

    {"Randomlichten","sendEmail,2","Randomlichten uit tussen 3:00 en 4:00"},}}}, 

     

    and

     

    {0, "$24clock",{state="value=04:00",initOnStartup=false,lineState={"if {&XRaamGloriaLamp:value=start}"}, trueAct={

        {"`RandomLichten`","turnOff","if {&Lichten:value=Uit}"},{"`XRandomLichten`","setGlobal","stop"},}}}, 

     

    did not function again this night.

    Common functionality: $24clock.

    Posted

    Hi @cag014,

     

    How can I set the next lines in one line? This lines doesn't work accurately, sometimes all the three lines run, but only the proper should.

     

    Thanks!

     

    {0, "$24clock",{state="value=18:00",timeSlot="w=1",trueAct={"&AttilaWork","setGlobal","Afternoon","{&AttilaWork:value=Night}"}}},
     
    {0, "$24clock",{state="value=18:00",timeSlot="w=1",trueAct={"&AttilaWork","setGlobal","Day","{&AttilaWork:value=Afternoon}"}}},
     
    {0, "$24clock",{state="value=18:00",timeSlot="w=1",trueAct={"&AttilaWork","setGlobal","Night","{&AttilaWork:value=Day}"}}},
  • Topic Author
  • Posted (edited)
    6 hours ago, SmartLifeSystems said:

    Hi @cag014,

     

    How can I set the next lines in one line? This lines doesn't work accurately, sometimes all the three lines run, but only the proper should.

     

    Thanks!

     

    {0, "$24clock",{state="value=18:00",timeSlot="w=1",trueAct={"&AttilaWork","setGlobal","Afternoon","{&AttilaWork:value=Night}"}}},
     
    {0, "$24clock",{state="value=18:00",timeSlot="w=1",trueAct={"&AttilaWork","setGlobal","Day","{&AttilaWork:value=Afternoon}"}}},
     
    {0, "$24clock",{state="value=18:00",timeSlot="w=1",trueAct={"&AttilaWork","setGlobal","Night","{&AttilaWork:value=Day}"}}},

    Sometimes all the three lines run? It should run all of them all the time...

    Please take in considerations that hour =18:00 lasts for one minute! So during this minute the state will constantly changes between these lines.

    Could you please elaborate what you're trying to achieve....?

    By the way please see $dayTime user Keyword as defined in user_data.

    userKeyWord={{"$dayTime"},

        {function() return  os.date("*t",os_time()).hour<6 and "Good night," or os.date("*t",os_time()).hour<12 and "Good morning," or os.date("*t",os_time()).hour<18 and "Good afternoon," or os.date("*t",os_time()).hour<=23 and "Good evening," end}}

    You can remove word Good or to chnage the string to wht you need.

    Edited by cag014
  • Topic Author
  • Posted
    13 hours ago, Rover said:

    {0, "$24clock",{state="value=02:55", trueAct={

    {"$lineId","setTimeSlot","?3:00+(random(0,`RandomMaxTijd`)*60)?~","{$24clock:value=02:55}"},

    {"`XRandomLichten`","setGlobal","stop","{$24clock:value>02:59}"}, --{"RandomLichten","sendEmail,2","Stop","{$24clock:value>02:59}"},

    {"`RandomLichten`","turnOff","{$24clock:value>02:59}"}}}}, 

     

    and

     

    {"$lineId","setTimeSlot","?3:00+(random(0,`RandomMaxTijd`)*60)?~","{$24clock:value=02:55}"},

    {"Randomlichten","sendEmail,2","Randomlichten uit tussen 3:00 en 4:00"},}}}, 

     

    and

     

    {0, "$24clock",{state="value=04:00",initOnStartup=false,lineState={"if {&XRaamGloriaLamp:value=start}"}, trueAct={

        {"`RandomLichten`","turnOff","if {&Lichten:value=Uit}"},{"`XRandomLichten`","setGlobal","stop"},}}}, 

     

    did not function again this night.

    Common functionality: $24clock.

    Few questions

    1. The second part (marked red) belongs to what?

    2. Are you sure the {&XRaamGloriaLamp:value=start} condition is true? Maybe add debug command at this time to verify the condition.

    3. Is it runs on HC3?

     

     

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