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

Are you sure? Have tested that and it triggered only when state is changed. Not every value above 25

not tested in the last days but i'm pretty sure that with hc2 and first version of aoq in hc3 line worked that way.

And just a clarification, how the state is saved? Isn't cheched at every report?

  • Topic Author
  • Posted (edited)
    12 minutes ago, gggizmo said:

    not tested in the last days but i'm pretty sure that with hc2 and first version of aoq in hc3 line worked that way.

    And just a clarification, how the state is saved? Isn't cheched at every report?

    trueAct and falseAct triggered only on status change.

    trigAct triggered on value changes. Means every different value report, it's triggered regardless status

    when trigAll set to true then trigAct triggered on every value report, even if the value is the same as previous.

    No other options....

    Edited by cag014
    Posted
    8 minutes ago, cag014 said:

    trueAct and falseAct triggered only on status change.

    trigAct triggered on value changes. Means every different value report, it's triggered regardless status

    when trigAll set to true then trigAct triggered on every value report, even if the value is the same as previous.

    No other options....

    Better you remove me from mentions in forum download:-( 

     

    shame on me...

    Posted

    Hi cag014

    First of all thank you for AOQ, does better job than block scenes. (I'm not so familiar with Lua programming)

    I have a question - I want to set my old HCL at my mother home, can I control it for HC3 using slave option?

     

  • Topic Author
  • Posted
    2 minutes ago, gggizmo said:

    Better you remove me from mentions in forum download:-( 

     

    shame on me...

    No at all... you did help to debug the code and some of yours remarks are implemented in AOQ.

     

  • Topic Author
  • Posted
    7 minutes ago, AR27690 said:

    Hi cag014

    First of all thank you for AOQ, does better job than block scenes. (I'm not so familiar with Lua programming)

    I have a question - I want to set my old HCL at my mother home, can I control it for HC3 using slave option?

     

    Hi

    Yes, you can control remote HCL (make sure you have an access over internet and to make it stable a fixed IP required)

    Two observation:

    1. In case internet is down, HCL won't work from HC3. I suggest some critical actions should be implemented directly in HCL block scenes (like alarms)

    2. I suggest to run second AOQ on HC3 which is dedicated to HCL, otherwise it can slow down your AOQ due to internet connection and in case your mother's internet is down your AOQ will be almost dead (unless you'll remove HCL from slaves list)

    Hope this is understandable and makes any sense to you.

     

    Posted
    12 minutes ago, cag014 said:

    Hi

    Yes, you can control remote HCL (make sure you have an access over internet and to make it stable a fixed IP required)

    Two observation:

    1. In case internet is down, HCL won't work from HC3. I suggest some critical actions should be implemented directly in HCL block scenes (like alarms)

    2. I suggest to run second AOQ on HC3 which is dedicated to HCL, otherwise it can slow down your AOQ due to internet connection and in case your mother's internet is down your AOQ will be almost dead (unless you'll remove HCL from slaves list)

    Hope this is understandable and makes any sense to you.

     

    Thanks.. will follow your suggestions.

    Posted (edited)
    7 hours ago, cag014 said:

    Do you need to trigger the line on every LUX  change ?

    No, I want to trigger one time between 15:00 and 22:00, but next day (and every day) I want again to trigger one time between 15:00 and 22:00.

    Does

    Please login or register to see this spoiler.

    will do this job (every day)?

     

    The scenario is:

    • If it is getting darker (>20 lux) from 15:00 (till 22:00) then put all lights on.
    • If lights not on yet at 1 hour before sunset, then put all lights on.
    • By button on scenemaster or keyfobs: put all lights on.

    So not only lux measurement is the trigger but more types of triggering.

    That is why my idea is to set a global variable at a number of ways in order to trigger the lights on by these global.

    Better idea?

     

    Edited by Rover
    Posted
    8 hours ago, gggizmo said:

    Please can you share infos about pir device and post debug screen?

    I use a similar line and it' works as expected. My line it's temp triggered but i think it's same concept

    The PIR is a Fibaro motion sensor.

    For temperature settings see parameters 60, 62, 64

    Please login or register to see this spoiler.

     

    Posted
    22 hours ago, cag014 said:

    I think you can try  a new idea by using old smartphone (with unique email account) connected to local wifi  and in case no internet, to send email to this smartphone and to forward the message to your email account.

    How can I send email to a smartphone only connected to local wifi (without using the email server of the email provider by internet)?

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

    No, I want to trigger one time between 15:00 and 22:00, but next day (and every day) I want again to trigger one time between 15:00 and 22:00.

    Does

    Please login or register to see this spoiler.

    That's what I thought

     So why need global variable for? You can do it in two lines only

    {0,"`lux`",{state="value<20",timeSlot="15:00~22:00, true?$sunsetHour-3600?",trueAct={"`lights`","turnOn"," if {`lights`:value=false}"}}},

     

    As an example using sceneActivation

    {0,"`keyFob`",{state="sceneActivation=1" ,trueAct={"`lights`","turnOn"," if {`lights`:value=false}"}}},

     

    Please keep in your mind that actions by timestamp are always triggered at time, regardless the state status

     

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

    How can I send email to a smartphone only connected to local wifi (without using the email server of the email provider by internet)?

     

    16 hours ago, Rover said:

    How can I send email to a smartphone only connected to local wifi (without using the email server of the email provider by internet)?

    Yes, the implementation is the tricky part, you need to receive email on WiFi and send it on cellular... phone setup doesn't have that by default

     

    That's exactly what I have answered, the tricky part

  • Topic Author
  • Posted
    1 hour ago, cag014 said:

    That's what I thought

     So why need global variable for? You can do it in two lines only

    {0,"`lux`",{state="value<20",timeSlot="15:00~22:00, true?$sunsetHour-3600?",trueAct={"`lights`","turnOn"," if {`lights`:value=false}"}}},

     

    As an example using sceneActivation

    {0,"`keyFob`",{state="sceneActivation=1" ,trueAct={"`lights`","turnOn"," if {`lights`:value=false}"}}},

     

    Please keep in your mind that actions by timestamp are always triggered at time, regardless the state status

     

    @Rover

    I don't if you are using another button on keyFob to turn OFF,  but you can use same button to turn lights On / Off.

     

    {0,"`keyFob`",{state="sceneActivation=1" ,trueAct={"`lights`","turnOn;else;turnOff"," if {`lights`:value=false}"}}},

    Posted
    {0,"$24clock",{lineState={"{&vmc:value=true}"},initOnStartup=false,timeSlot="07:30~",timeSlot="~14:00",trueAct={"`vmcs`","turnOn",""},falseAct={"`vmcs`","turnOff",""}}},
     
    What am i doing wrong?
    Goal is to start ventilation at 7:30 and stop at 14, but nothing happens at 7:30. Already checked: devices id. and global var. Except for initonstarup stamement it's the same line perfectly working on aos in hc2
     
    [08.10.2020] [07:24:36] [TRACE] [AOQ1385]: 4.1jM{5} GBedroom:931:remote camera[4.Pressed] => turnOff{lcamera)[08.10.2020] [07:25:57] [TRACE] [AOQ1385]: 4.1jM{27} Fbagno:444:porta bagno[false] => turnOn{stufabagno)[08.10.2020] [07:31:42] [TRACE] [AOQ1385]: 4.1jM{27} Tbagno:444:porta bagno[true] => turnOff{stufabagno)[08.10.2020] [07:54:01] [TRACE] [AOQ1385]: 4.1jM{26} Tt$24clock[07:54] => setGlobal,false{&luci_attive)
     
     
    Posted
    7 hours ago, cag014 said:

    timeSlot="15:00~22:00, true?$sunsetHour-3600?"

    This true<time> is new for me, also not to be found in the recent Advanced User's Guide v4.0...

    Posted
    8 hours ago, cag014 said:

    trueAct={"`lights`","turnOn"," if {`lights`:value=false}"}}},

    The only issue is that it is not a simple turnOn but a longer conditional line:

    Please login or register to see this spoiler.

    But of course I could use the new feature Shortcuts to use this line at several places in the trueAct.

    Posted
    8 hours ago, cag014 said:

    {0,"`lux`",{state="value<20",timeSlot="15:00~22:00, true?$sunsetHour-3600?",trueAct={"`lights`","turnOn"," if {`lights`:value=false}"}}},

    This line does not trigger anymore the next day (timeSlot not yet present for testing purposes):

    Please login or register to see this spoiler.

    Why should your AOQ line will do it each day?

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

    This true<time> is new for me, also not to be found in the recent Advanced User's Guide v4.0...

    It's not new...

    ccordingly you can define true/false instead of tilde (at any combination)

    timeslot="true 05:00, false 07:00"

    timeslot="05:00 true, 07:00 false"

    Please login or register to see this attachment.

  • Topic Author
  • Posted
    53 minutes ago, Rover said:

    This line does not trigger anymore the next day (timeSlot not yet present for testing purposes):

    Please login or register to see this spoiler.

    ???

    It should work according to the state, there is no reference to day time at all.

    Like any simple line when value<80 trueAct executed, now when LUX will be > 80 next time when it goes again <80 trueAct executed. That's all.

    Are you sure that sometime LUX is actually > 80?

  • Topic Author
  • Posted
    2 hours ago, gggizmo said:
    {0,"$24clock",{lineState={"{&vmc:value=true}"},initOnStartup=false,timeSlot="07:30~",timeSlot="~14:00",trueAct={"`vmcs`","turnOn",""},falseAct={"`vmcs`","turnOff",""}}},
     
    What am i doing wrong?
    Goal is to start ventilation at 7:30 and stop at 14, but nothing happens at 7:30. Already checked: devices id. and global var. Except for initonstarup stamement it's the same line perfectly working on aos in hc2
     
    [08.10.2020] [07:24:36] [TRACE] [AOQ1385]: 4.1jM{5} GBedroom:931:remote camera[4.Pressed] => turnOff{lcamera)[08.10.2020] [07:25:57] [TRACE] [AOQ1385]: 4.1jM{27} Fbagno:444:porta bagno[false] => turnOn{stufabagno)[08.10.2020] [07:31:42] [TRACE] [AOQ1385]: 4.1jM{27} Tbagno:444:porta bagno[true] => turnOff{stufabagno)[08.10.2020] [07:54:01] [TRACE] [AOQ1385]: 4.1jM{26} Tt$24clock[07:54] => setGlobal,false{&luci_attive)
     
     

    Makes sense ... when it's turned Off, I think &vmc = false, so the line is not executed due to lineState.

    I the goal is to start at 7:30 and to stop at 14:00, why you need lineState?

    Are you sure it works in AOS?

     

     

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