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
    1 minute ago, Rover said:

    Not sending notifications if dead is desired. Also not sending comands to dead device is preferred. But why not neglect condition of dead device instead of pretending a defined value ?

    You're using true/false state of device, right? But let assume user uses power value in conditions or calculation.

    I keep tracking air conditioners in my home by checking the power (it turned on/off by infra remotes). (i have 7 of them).

    In many cases kids left AC turned ON when they left the room, so I turn them off if no motion detected in the room for certain time.

    So I have the power of the device as part of the condition to turn off the AC switch and 'AC':power<200 couldn't be replaced by dead=true

    By the way using predefined values is exactly the same as using dead=true.

    if you have 'Wplug`:value=true  and in case it's dead you setting this to true, I don't see the different when the value is set to true when the device is dead in the table. It's exactly the same, but has more option to define other properties in case device is dead.

    Posted
    11 minutes ago, cag014 said:

    You're using true/false state of device, right? But let assume user uses power value in conditions or calculation.

    I keep tracking air conditioners in my home by checking the power (it turned on/off by infra remotes). (i have 7 of them).

    In many cases kids left AC turned ON when they left the room, so I turn them off if no motion detected in the room for certain time.

    So I have the power of the device as part of the condition to turn off the AC switch and 'AC':power<200 couldn't be replaced by dead=true

    By the way using predefined values is exactly the same as using dead=true.

    if you have 'Wplug`:value=true  and in case it's dead you setting this to true, I don't see the different when the value is set to true when the device is dead in the table. It's exactly the same, but has more option to define other properties in case device is dead.

    Yes, I am using true/false state of device.

    Indeed 'AC':power<200 couldn't be replaced by dead=true, because with a removed wallplug no power measurement is possible at all.

    I do not comprehence "By the way using predefined values is exactly the same as using dead=true". Has this the same effect as neglecting a device condition?

     

    Posted
    14 hours ago, cag014 said:

    `WallPlug2`:dead=true

    Works?

  • Topic Author
  • Posted (edited)

    To all,

    Although the commands in AOR user functions are in HC3 format, it does support HC2 also. Meams you can use AOR to control HC2 while HC3 could be a slave.

    I believe in answers to @AR27690 question, if HC2 could have slaves controllers.

     

    Please note that the user functions executed not in parallel and could have an impact on AOR performances. Please keep the function simple as much as possible and try to avoid any delays or loops.

    Edited by cag014
    Posted
    9 hours ago, Rover said:

    Works?

    And now how to stop the "dead" notifications?

  • Topic Author
  • Posted (edited)

    set

    wakeUpRate  = 0

    Now only for the first time when device is dead you will receive notification for that.

     

    Edited by cag014
    Posted
    1 hour ago, cag014 said:

    set

    wakeUpRate  = 0

    Now only for the first time when device is dead you will receive notification for that.

     

    I already had set wakeUpRate  = 0 in both AOS, but the dead notifications are coming back again.

  • Topic Author
  • Posted (edited)
    1 hour ago, Rover said:

    I already had set wakeUpRate  = 0 in both AOS, but the dead notifications are coming back again.

    looks like somehow  your device is waking up

    Do you have anything in the system that tries to communicate with the device?

    What about polling setting in your system?

    Please exclude the device from polling

    Please login or register to see this spoiler.

     

    Edited by cag014
  • Topic Author
  • Posted (edited)

    Attached AOR version could be run on VS code and/or on ZeroBrane (previous released version has been intended to run on VS code only)

     

     

     

    Please login or register to see this attachment.

    Edited by cag014
  • Topic Author
  • Posted (edited)

    In order to use VS code and ZeroBrane at same project directory, unzip attached file in your project

     

     

     

    Please login or register to see this attachment.

    Edited by cag014
    Posted
    8 hours ago, cag014 said:

    looks like somehow  your device is waking up

    Do you have anything in the system that tries to communicate with the device?

    What about polling setting in your system?

    Please exclude the device from polling

    Please login or register to see this spoiler.

    Yes, the standard polling state of Fibaro Wall Plug E/F is global polling. Useful?

    I have excluded the device from polling.

    Posted

    Hello Cag,

    How to write if internet connection HC3 is lost for 15 min

    <{0, "$internet",{state="value=online",
      trueAct={"`wallSocket`","turnOn","","},
      falseAct={"`wallSocket`","turnOff","(15*60)","`wallSocket`","turnOn","","}}},>

    Please advice,

    //Sjakie

  • Topic Author
  • Posted

    I'm a little bit confused here..

    Looking on your line you're turning wallSocket ON if internet on line and off line!?

    Do you want to turn ON wallSocket when internet is off line over 15 minutes and when is back on line to turn OFF?

    If so, then

    {0, "$internet",{state="value=online",
      trueAct={"`wallSocket`","turnOff"},
      falseAct={"`wallSocket`","turnOn","900"}}},

    Posted

    Sorry for not being clear.

    Online wallsocket is On

    After lets say 5 min no connection>>wallsocket Off>>wait 2 minutes>> wallsocket On.

    If internet connection HC3 is off wallsocket will restart my router because he failed after breakdown ISP.

     

    About dead devices

    Dead device window sensor (3 notifications because off sensor,temp and alarmtemp)

    6 minutes later again 3 notifications  device wake up>>>excelent

    Question can alert only send on main device?>>less notifications and main is leading

    Is AllinOne waking up the dead device? If yes a delay to prevent this notifications or is there something wrong with that device?

     

    Waiting your excellent advice,

    //Sjakie

     

  • Topic Author
  • Posted
    21 hours ago, SmartLifeSystems said:

    Hi @cag014!

     

    You got the old profile? :) 

    Yes, finally Fibaro has successfully restored my user at the forum

     

    • Like 1
  • Topic Author
  • Posted
    On 2/17/2021 at 10:28 AM, Sjakie said:

    Sorry for not being clear.

    Online wallsocket is On

    After lets say 5 min no connection>>wallsocket Off>>wait 2 minutes>> wallsocket On.

    If internet connection HC3 is off wallsocket will restart my router because he failed after breakdown ISP.

     

    Sorry about late response...

    There are several options to perform what you need...

    1. - the simple option

    {0, "$internet",{state="value=online",
      trueAct={"`wallSocket`","turnOn"},
      falseAct={{"`wallSocket`","turnOff","300"},{"`wallSocket`","turnOn","420"}}}},

     

    2.  - Here you can to add commands in timeLoopAct{} table to restart router and others..

    {0, "$internet",{state="value=online",  trueAct={"`wallSocket`","turnOn"},  falseAct={{"`wallSocket`","turnOff","300"}}},

     

    {120,"`walSocket`",{state="false", timeLoopAct={"`wallSocket`","turnOn"}}},

     

     

     

    Posted

    Cag no problem at all I am glad for your srvice excellent! Thanks!

    second part gives error I cant detect whats wrong

    <{120,"`halrouterAsus`",{state="false",timeloopAct={"`halrouterAsus`","turnOn"}}},>
     

    main.lua:465: attempt to call a nil value (method 'stop')

  • Topic Author
  • Posted
    19 hours ago, Sjakie said:

    Cag no problem at all I am glad for your srvice excellent! Thanks!

    second part gives error I cant detect whats wrong

    <{120,"`halrouterAsus`",{state="false",timeloopAct={"`halrouterAsus`","turnOn"}}},>
     

    main.lua:465: attempt to call a nil value (method 'stop')

    timeLoopAct not timeloopAct (capital L)

    Posted

    Hey Cag!

     

    Im in the starting process with this scene, and I'm trying to get the geoAction to work.

    I can se my devices and users, but I cant seem to get the "enter" or "leave" part to work.

     

    geoAction is NA

     

    Please login or register to see this image.

    /monthly_2021_02/image.png.e3b1e5248a2a4d41c9d0c16218d2af63.png" />

     

    You know what I'm missing?

     

    Geofencing is activated in the app etc.

    I followed the guides.

     

    Best Regards

    Martin

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