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

Posted
20 minutes ago, cag014 said:

Sorry... one of leftovers of problem debugging.... removed

 

 

Please login or register to see this attachment.

It looks like a much faster initiation ?

  • Topic Author
  • Posted
    1 minute ago, Rover said:

    It looks like a much faster initiation ?

    Thanks for confirmation... especially faster when using devices on slave controllers.

    But I think @SmartLifeSystems has a point, somehow timeSlot calculations indeed create more CPU load...

    Working on that...

    Posted
    11 minutes ago, cag014 said:

    Thanks for confirmation... especially faster when using devices on slave controllers.

    But I think @SmartLifeSystems has a point, somehow timeSlot calculations indeed create more CPU load...

    Working on that...

    Please login or register to see this spoiler.

     

  • Topic Author
  • Posted
    Just now, Rover said:

    Please login or register to see this spoiler.

    Do you have a lot of timeSlot definitions? I mean a lot of them !

    Posted
    2 minutes ago, cag014 said:

    Do you have a lot of timeSlot definitions? I mean a lot of them !

    I have 4 timeSlot definitions.

  • Topic Author
  • Posted
    Just now, Rover said:

    I have 4 timeSlot definitions.

    That's nothing.... it starts somewhere over 70 definitions...

    Posted
    14 minutes ago, cag014 said:

    Thanks for confirmation... especially faster when using devices on slave controllers.

    But I think @SmartLifeSystems has a point, somehow timeSlot calculations indeed create more CPU load...

    Working on that...

     

    Yes. Some timeSlot codes i added to the if conditions.

    The CPU load a little bit lower, and the AOQ's answere time more better.

  • Topic Author
  • Posted
    3 minutes ago, SmartLifeSystems said:

     

    Yes. Some timeSlot codes i added to the if conditions.

    The CPU load a little bit lower, and the AOQ's answere time more better.

    in conditions not an issue because it calculated only when and if the action executed...

    Looks like the os.date() Lua function is the heavy one...

    Posted
    1 minute ago, cag014 said:

    in conditions not an issue because it calculated only when and if the action executed...

    Looks like the os.date() Lua function is the heavy one...

     

    In the past, we talk about the first day of week. So in Hungary the monday is the first day, but the AOQ using the sunday for me.

  • Topic Author
  • Posted
    10 minutes ago, SmartLifeSystems said:

     

    In the past, we talk about the first day of week. So in Hungary the monday is the first day, but the AOQ using the sunday for me.

    AOQ using system timezone... what timezone you have on HC3

    Posted
    7 minutes ago, cag014 said:

    AOQ using system timezone... what timezone you have on HC3

     

    Please login or register to see this image.

    /monthly_2020_10/image.png.a5550da5c6d8cc7410a46749161fbfa6.png" />

    1 minute ago, SmartLifeSystems said:

     

    Please login or register to see this link.

     

    The time, the sunset and sunrise hours is corrct. Only the days not.

    Posted
    4 minutes ago, SmartLifeSystems said:

     

     

     

    The time, the sunset and sunrise hours is corrct. Only the days not.

     

    But is not problem for me.

  • Topic Author
  • Posted
    13 minutes ago, SmartLifeSystems said:

     

    But is not problem for me.

    My bad... I'm using GMT days setup ..

    Please try attached version... it should reduce CPU load to normal average..

     

    Please login or register to see this attachment.

    Posted (edited)
    39 minutes ago, cag014 said:

    My bad... I'm using GMT days setup ..

    Please try attached version... it should reduce CPU load to normal average..

     

    Please login or register to see this attachment.

     

    Now better like was, but not looks like @Rover 's CPU. :)

     

    Please login or register to see this attachment.

    Edited by SmartLifeSystems
    Posted

    @SmartLifeSystems Some needs to work harder for the same result?

     

    @cag014 I want to try to slave  HC2 instead of using switch/ sensor slave sometimes I see the action is not done.

    Note HC2 is on Event Runner HC3 AOS

    I hope you have some time to support

    Getting error  user_data.lua:26: unexpected symbol near '<\226>'

     

    {0,”120’hc2”,{state=”value=true”,trueAct={“240’hc3”,”turnOn”},{“&variable’hc2”,”setGlobal”,”HC2”}}}},
    120 doorsensor, not in js HC3
    240 HUE lamp is in Js
    Do I need to set a variable in HC2?
    Please advice,
    //Sjakie
    Posted (edited)
    14 hours ago, cag014 said:

    Yes, if main loop will take over 4 seconds...

     

    @cag014, where can i look the main loop time?

    I can't press downer the CPU's load.

    Edited by SmartLifeSystems
  • Topic Author
  • Posted
    3 hours ago, Sjakie said:

    @SmartLifeSystems Some needs to work harder for the same result?

     

    @cag014 I want to try to slave  HC2 instead of using switch/ sensor slave sometimes I see the action is not done.

    Note HC2 is on Event Runner HC3 AOS

    I hope you have some time to support

    Getting error  user_data.lua:26: unexpected symbol near '<\226>'

     

    {0,”120’hc2”,{state=”value=true”,trueAct={“240’hc3”,”turnOn”},{“&variable’hc2”,”setGlobal”,”HC2”}}}},
    120 doorsensor, not in js HC3
    240 HUE lamp is in Js
    Do I need to set a variable in HC2?
    Please advice,
    //Sjakie

    I have asked you if you're using salve switch/sensor emulation...

    May be now we we can finally fix the delay issue.

    Please replace your slave QA by attached

    This new version has fixed the delay issues in @Rover system

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    3 hours ago, Sjakie said:

    {0,”120’hc2”,{state=”value=true”,trueAct={“240’hc3”,”turnOn”},{“&variable’hc2”,”setGlobal”,”HC2”}}}},

    First of all why you're using 240'hc3 ? You're running AOQ on HC3, so use as usual {“240”,”turnOn”}

    You're missing brackets - should be

    {0,”120’hc2”,{state=”value=true”,trueAct={{240’hc3”,”turnOn”},{“&variable’hc2”,”setGlobal”,”HC2”}}}},

    Posted (edited)
    14 minutes ago, cag014 said:

    I have asked you if you're using salve switch/sensor emulation...

    May be now we we can finally fix the delay issue.

    Please replace your slave QA by attached

    This new version has fixed the delay issues in @Rover system

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

     

    I have no slave devices. Only Fibaro switches, dimmers, RGBW modules, wallPlugs. One Qubino Z-Wave wall plug and a Hank Z-Wave wallPlug, Nice gate, SONY TV with Plugin and a SATEL alarm with plugin.

    The answere time has improved with one or two seconds with the 5.2 version.

    Edited by SmartLifeSystems
  • Topic Author
  • Posted

    OK... misunderstanding.

    Now you have two choices to use HC2 devices directly or to use SlaveSwitch/Sensor/Dimmer emualtions.

    To my opinion is better to use emulation of devices, I think it's slightly faster and you can see on HC3 UI  HC2 devices (their status and control)

    Again... @Rover has the best experience what is better?
    @Rover what is your recommendations?

     

    Posted

    Sorry I overlooked your question at this moment NO  slave devices

    I want to use the whole HC2 as slave.

    Do I need to use SlaveSwitch also if I use 

    jSlave={ 
           hc2={user=xxxxxxxxx?

    First of all why you're using 240'hc3 ? >>>> your documentation the line with example.

    .//Sjakie

     

    ok see your point. For me I dont mind the speed (at this moment)

    But to see in HC3 the status of the  devices is easy it will take a long time to do the all.

    Advantage I dont need to adapt my rules later?

    If I now add all with name and in Js

     

    //Sjakie

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