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
13 minutes ago, Rover said:

All fine this night with v9.7 ?

After this third successful night with the timing function I declare the problem for solved ?

 

Yes, I think too.

Posted

Cosmetic issue: 

Please login or register to see this spoiler.

The first and the second column are not really synchronyzed.

  • Topic Author
  • Posted (edited)
    6 hours ago, SmartLifeSystems said:

     

    I tried the command, but I think the os.Date don't working.

    I tested a simple line, but the AOQ don't do anything.

     

    Here is the line:

     

    {0, "$osDate",{state="value=&CalendarDate",trueAct={{"`cinemaSystem`","turnOn",""},{"`sonyTV`","pressButton,26","6"},{"`sonyTV`","pressButton,11","10"},{"Foci EB","sendPush,3370","Hamarosan kezdődik a &Calendar , bekapcsoltam a TV-t!"}}}},

    the osDate format is the Lua date/time %c.  i.g. = "Mon Jan 11 15:41:07 2021"

    Is &CalendarDate has same format?

    Could you post &CalendarDate value, I mean how it looks like?

    Edited by cag014
    Posted (edited)
    5 minutes ago, cag014 said:

    the osDate format is the Lua date/time %c.  i.g. = "Mon Jan 11 15:41:07 2021"

    Is &Calendar has same format?

    Could you post &Calendar value, I mean how it looks like?

     

    Yes it is.

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Edited by SmartLifeSystems
  • Topic Author
  • Posted (edited)
    5 hours ago, SmartLifeSystems said:

     

    Yes it is.

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Found the problem with CalendarDate... the resolution in this format is a second!, which can not be used in AOQ therefore have created a new keyword w/o seconds

    $actDate. Same date format but no seconds - resolution of one minute)

    Download attached version....

    Please change as following

    1. CalendarDate variable:

    fibaro.setGlobalVariable("CalendarDate",tostring(os.date("%a %b %d %H:%M %Y",e.startDate)))

    2. jM line:

    {0,"&CalendarDate",{state="value=$actDate",truAct..................}}},

     

    Regrading

    {0,"&Calendar",{state="value==Hungary", truAct......}}}, it does work. Could you please post the debug window (like below)

     

    Please login or register to see this spoiler.

     

    Please login or register to see this attachment.

    Edited by cag014
    Posted
    12 minutes ago, cag014 said:

    Megtalálta a CalendarDate problémáját ... a felbontás ebben a formátumban egy másodperc !, ami nem használható az AOQ-ban, ezért új kulcsszót hozott létre másodpercek nélkül

    $ actDate. Ugyanaz a dátumformátum, de nincs másodperc - egy perc felbontás)

    A mellékelt verzió letöltése ....

    Kérjük, változtassa meg a következőket

    1. CalendarDate változó:

    fibaro.setGlobalVariable ("CalendarDate", tostring (os.date ("% a% b% d% H:% M% Y", e.startDate))

    2. jM vonal:

    {0, "& CalendarDate", {state = "value = $ actDate", truAct ..................}}},

     

    Átminősítés

    {0, "& Calendar", {state = "value == Hungary", truAct ......}}}, működik. Feladhatnád a hibakereső ablakot (mint alább)

     

    Please login or register to see this spoiler.

     

     

    I changed in the Calendar QA to your code. That is working fine, but I have got from the AOQ an error message.

    Please login or register to see this attachment.

     

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

     

     

    I changed in the Calendar QA to your code. That is working fine, but I have got from the AOQ an error message.

    Please login or register to see this attachment.

     

    Please download the new version...9.8

    Posted (edited)
    1 hour ago, cag014 said:

    Please download the new version...9.8

     

    So, the $actDate is working fine. But here is my test line, and the value==Hungary is don't. No error message. What did I wrong?

     

    {0, "$actDate",{state="value=&CalendarDate",trueAct={"Teszt","sendPush,3370","Hamarosan kezdődik a &Calendar , bekapcsoltam a TV-t!","{&Calendar:value==Hungary}"}}},
    Edited by SmartLifeSystems
  • Topic Author
  • Posted
    43 minutes ago, SmartLifeSystems said:

     

    So, the $actDate is working fine. But here is my test line, and the value==Hungary is don't. No error message. What did I wrong?

     

    {0, "$actDate",{state="value=&CalendarDate",trueAct={"Teszt","sendPush,3370","Hamarosan kezdődik a &Calendar , bekapcsoltam a TV-t!","{&Calendar:value==Hungary}"}}},

    Ooops, it's misunderstanding... the "==" works as part of state not as a part of conditions....

    Let me try to implement that in conditions as well.

     

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

     

    So, the $actDate is working fine. But here is my test line, and the value==Hungary is don't. No error message. What did I wrong?

     

    {0, "$actDate",{state="value=&CalendarDate",trueAct={"Teszt","sendPush,3370","Hamarosan kezdődik a &Calendar , bekapcsoltam a TV-t!","{&Calendar:value==Hungary}"}}},

    @SmartLifeSystems

    Attached version should compare part of value in conditions also.

    Let me know if your jM line now  works

     

    Please login or register to see this attachment.

    Edited by cag014
    Posted (edited)
    1 hour ago, cag014 said:

    @SmartLifeSystems

    Attached version should compare part of value in conditions also.

    Let me know if your jM line now  works

     

    Please login or register to see this attachment.

     

    That's great! Working fine.

    If you don't anger, I repaired the \n problem in the push notifications. In the v9.9, every space vice was the \n characters.

     

     

    Please login or register to see this attachment.

    Edited by SmartLifeSystems
    Posted
    15 hours ago, SmartLifeSystems said:

     

    That's great! Working fine.

    If you don't anger, I repaired the \n problem in the push notifications. In the v9.9, every space vice was the \n characters.

     

     

    Please login or register to see this attachment.

     

    Hi @cag014, have any solution, code in the AOQ for example for the $actDate-20minutes?  

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

     

    Hi @cag014, have any solution, code in the AOQ for example for the $actDate-20minutes?  

    Could you please provide more info what exactly do you need?

    Is it related to &CalendarDate?

    Edited by cag014
    Posted
    3 minutes ago, cag014 said:

    Could you please provide more info what exactly do you need?

    Is it related to &CalendarDate?

     

    Yes. For example the &CalendarDate-20 min, turn on the TV.

  • Topic Author
  • Posted (edited)
    3 minutes ago, SmartLifeSystems said:

     

    Yes. For example the &CalendarDate-20 min, turn on the TV.

    My suggestion is to shift the &CalendarDate -20 minutes.

    fibaro.setGlobalVariable("CalendarDate",tostring(os.date("%a %b %d %H:%M %Y",e.startDate-1200)))

    in case you need &CalendarDate for other purposes, just define new variable like &CalendarTime

    fibaro.setGlobalVariable("CalendarTime",tostring(os.date("%a %b %d %H:%M %Y",e.startDate-1200)))

    Edited by cag014
    Posted
    1 hour ago, cag014 said:

    My suggestion is to shift the &CalendarDate -20 minutes.

    fibaro.setGlobalVariable("CalendarDate",tostring(os.date("%a %b %d %H:%M %Y",e.startDate-1200)))

    in case you need &CalendarDate for other purposes, just define new variable like &CalendarTime

    fibaro.setGlobalVariable("CalendarTime",tostring(os.date("%a %b %d %H:%M %Y",e.startDate-1200)))

     

    Nice, thank you very much!

    Posted

    @cag014, I have an another noticed. I think the lastModified command don't working.

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

    @cag014, I have an another noticed. I think the lastModified command don't working.

    There is no  lastModified, you mean lastBreached ?

    Posted
    2 hours ago, cag014 said:

    There is no  lastModified, you mean lastBreached ?

     

    Sorry, I mean valueModified.

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

     

    Sorry, I mean valueModified.

    Have teste and works fine....

    Any specific example?

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