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

This night it has worked (v9.6).

  • Like 1
Posted

@cag014 I changed this line.

 

else fibaro.alert("push",uId,ctlChar(subject..""..body,"\n","\\n")) end end 

 

I deleted the \n characters between the subject and the ..body.

In this way in the push notification the \n characters is not there.

 

Working fine.

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

    @cag014 I changed this line.

     

    else fibaro.alert("push",uId,ctlChar(subject..""..body,"\n","\\n")) end end 

     

    I deleted the \n characters between the subject and the ..body.

    In this way in the push notification the \n characters is not there.

     

    Working fine.

    What was the problem???

    Posted

     

    When the AOQ sent the notifications, between the subject and the message, puted \n characters.

     

     

    Please login or register to see this attachment.

  • Topic Author
  • Posted

    @Rover

    Didn't find anything wrong, but might be AOQ with many lines is too busy and could miss the time.

    In attached version have added extra trigger (every 15 seconds) to run through lines.

    Let me know if it helps

    @SmartLifeSystems

    The \n is still exists in this version and the reason is that it works fine in old fibaro application. Will try to find out proper solution in next release.

     

    Please login or register to see this attachment.

    Posted (edited)
    5 minutes ago, cag014 said:

    @Rover

    Didn't find anything wrong, but might be AOQ with many lines is too busy and could miss the time.

    In attached version have added extra trigger (every 15 seconds) to run through lines.

    Let me know if it helps

    @SmartLifeSystems

    The \n is still exists in this version and the reason is that it works fine in old fibaro application. Will try to find out proper solution in next release.

     

    Please login or register to see this attachment.

     

    If I deleted the \n from the next line, working fine.

     

    else fibaro.alert("push",uId,ctlChar(subject..""..body,"\n","\\n")) end end 

     

    This is the original line:

     

    else fibaro.alert("push",uId,ctlChar(subject.."\n"..body,"\n","\\n")) end end 

     

    The AOQ has need this \n?

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

     

    If I deleted the \n from the next line, working fine.

     

    else fibaro.alert("push",uId,ctlChar(subject..""..body,"\n","\\n")) end end 

     

    This is the original line:

     

    else fibaro.alert("push",uId,ctlChar(subject.."\n"..body,"\n","\\n")) end end 

     

    The AOQ has need this \n?

    Honestly it's just to distinguish between subject to body of the message.

    Will try to find out different approach... maybe to include subject in parenthesis like

    (Subject): body message

    Do you have any suggestions?

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

    Honestly it's just to distinguish between subject to body of the message.

    Will try to find out different approach... maybe to include subject in parenthesis like

    (Subject): body message

    Do you have any suggestions?

     

    I think, dont't need the \n between the subject and the body in this line. Only the "" characters. I testing since some days, and working correctly.

    Edited by SmartLifeSystems
    Posted
    12 hours ago, cag014 said:

    @Rover

    Didn't find anything wrong, but might be AOQ with many lines is too busy and could miss the time.

    In attached version have added extra trigger (every 15 seconds) to run through lines.

    Let me know if it helps

    @SmartLifeSystems

    The \n is still exists in this version and the reason is that it works fine in old fibaro application. Will try to find out proper solution in next release.

     

    Please login or register to see this attachment.

    All fine this night with v9.7 ?

    Posted
    12 hours ago, cag014 said:

    Honestly it's just to distinguish between subject to body of the message.

    Will try to find out different approach... maybe to include subject in parenthesis like

    (Subject): body message

    Do you have any suggestions?

    Talking about subject and body:

    Why is the subject in an email not showed up as subject, but get a title "Bericht van Fibaro" (Message from Fibaro)?

    Please login or register to see this spoiler.

     

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

    Talking about subject and body:

    Why is the subject in an email not showed up as subject, but get a title "Bericht van Fibaro" (Message from Fibaro)?

    Please login or register to see this spoiler.

    Yes, this problem exists since the beginning of HC3. Have reported about that. no answer....

  • Topic Author
  • Posted
    On 1/8/2021 at 10:02 PM, SmartLifeSystems said:

     

    I think, dont't need the \n between the subject and the body in this line. Only the "" characters. I testing since some days, and working correctly.

    That's interesting on my phone (Samsung - android) I don't see "\n" character, but actually new line works!???

    Is it iPhone?

     

    Posted
    8 hours ago, cag014 said:

    That's interesting on my phone (Samsung - android) I don't see "\n" character, but actually new line works!???

    Is it iPhone?

     

     

    Yes, it is iPhone, and working without the \n.

     

    Please login or register to see this attachment.

    Posted

    All fine this night with v9.7 ?

    Posted (edited)

    Hi @cag014,

     

    Have you any idea, how can I set example the os.Date-20 min?

     

    And I have another interesting question. I integrated the Football Euro20 calendar in the HC3. This events save a global variable.

     

    Examples for the variable:

    Hungary - Portugal [Euro2020]

    France - Germany [Euro2020]

    Croatia - Scotland [Euro2020]

    Hungary - France [Euro2020]

     

    Can I use for trigger from this variable example the Hungary word?

    If the Hungarian team will play, turn on the TV. But from the calendar, every match will be in the variable before the match's time.

     

    Do you understand? :D

    Edited by SmartLifeSystems
  • Topic Author
  • Posted (edited)

    Actually, yes there is an option to compare part of value. use "=="

    {0,"&GV",{state="value==Hungary", trueAct={}......}},

    it means when word Hungary will be found in &GV the trueAct{} executed.

     

    Edited by cag014
    Posted
    9 hours ago, cag014 said:

    Actually, yes there is an option to compare part of value. use "=="

    {0,"&GV",{state="value==Hungary", trueAct={}......}},

    it means when word Hungary will be found in &GV the trueAct{} executed.

     

     

    Thanks, I will try.

     

    And you have idea for the os.Date-20 minutes?

    Posted (edited)
    58 minutes ago, SmartLifeSystems said:

     

    Thanks, I will try.

     

    And you have idea for the os.Date-20 minutes?

     

    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!"}}}},
    Edited by SmartLifeSystems
    Posted
    1 hour 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!"}}}},

     

    So I tried with an another mode.

    I think, the "==" don't working too. Maybe I doing something wrong?

     

    {0, "&Calendar",{state="value==Hungary",trueAct={{"`cinemaSystem`","turnOn","","={$24clock:value=&CalendarDate}"},{"`sonyTV`","pressButton,26","6","={$24clock:value=&CalendarDate}"},{"`sonyTV`","pressButton,11","10","={$24clock:value=&CalendarDate}"}}}},
    Posted

    All fine this night with v9.7 ?

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

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