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

Jan,

If I check HC3 I see the same (this is myLog)

Please login or register to see this code.

Please login or register to see this image.

/monthly_2021_05/afbeelding.png.428af2d921af69086ec2c884fe000746.png" />

Please login or register to see this code.

 

  • Topic Author
  • Posted
    36 minutes ago, Sjakie said:

    Jan,

    If I check HC3 I see the same (this is myLog)

    Please login or register to see this code.

    Please login or register to see this link.

    Please login or register to see this code.

     

    It needs to pass the extra arguments to the function 

    Please login or register to see this code.

     

    Posted

    jan

    I don't think the profile is working

     

     

    rule ("@@00:01 => 1:profile=true ")

     

     

     

    [27.05.2021] [22:56:54] [[31;1mERROR[0m] [QUICKAPP1965]: in Rule:2[@@00:01 => 1:profile=true ]: {"msg":"Error executing instruction:'["%setprop",1,[true],["profile"]]'","ERR":true,"err":"[string "EventRunner4Engine.lua"]:1623: Wrong parameter type, number required. Provided param 'activateProfile' is type of string","src":"Rule:2[@@00:01 => 1:profile=true ]"}
     

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

    jan

    I don't think the profile is working

    rule ("@@00:01 => 1:profile=true ")

    [27.05.2021] [22:56:54] [[31;1mERROR[0m] [QUICKAPP1965]: in Rule:2[@@00:01 => 1:profile=true ]: {"msg":"Error executing instruction:'["%setprop",1,[true],["profile"]]'","ERR":true,"err":"[string "EventRunner4Engine.lua"]:1623: Wrong parameter type, number required. Provided param 'activateProfile' is type of string","src":"Rule:2[@@00:01 => 1:profile=true ]"}
     

    I think. it was fibaroapiHC3.lua. that was buggy.  
    fibaro.profile have it's argument swapped between Scenes and QAs...

    I pushed. .308 with a fix.

    Posted
    On 5/28/2021 at 12:52 AM, jgab said:

    I think. it was fibaroapiHC3.lua. that was buggy.  
    fibaro.profile have it's argument swapped between Scenes and QAs...

    I pushed. .308 with a fix.

    thanks 

     

    It works

    Posted

    Hi, is it possible to send critical alert from ER4 to phone? For example for alarm breach?

    Posted

    @michal85pl,

    PhoneID is working for me 9126), userID not.

    Please login or register to see this code.

    For incase Fibaro mess it up I also use Telegram msg

    Succes

    //Sjakie

  • Topic Author
  • Posted
    10 hours ago, michal85pl said:

    Hi, is it possible to send critical alert from ER4 to phone? For example for alarm breach?

    You mean catching alarm breach and send a push to the phone?

    ...or picking up any critical alert in the notification center and push it to the phone?

     

    Catching alarms I showed in an earlier post. If that's it I can repost if you want.

     

    If it's catching all critical then

    ...when notifications are created one can catch that event in ER4

    Please login or register to see this code.

     

    The m.data is a table with title, text etc.

    Posted
    2 godziny temu, Sjakie napisał:

    @michal85pl,

    PhoneID is working for me 9126), userID not.

    Please login or register to see this code.

    For incase Fibaro mess it up I also use Telegram msg

    Succes

    //Sjakie

     

    1 godzinę temu, jgab napisał:

    You mean catching alarm breach and send a push to the phone?

    ...or picking up any critical alert in the notification center and push it to the phone?

     

    Catching alarms I showed in an earlier post. If that's it I can repost if you want.

     

    If it's catching all critical then

    ...when notifications are created one can catch that event in ER4

    Please login or register to see this code.

     

    The m.data is a table with title, text etc.

    I meant the push to the phone, which will bypass silencing the ringer and the do not disturb mode, so that I would be woken up by it in the event of a violation of the alarm, and not find out about it in the morning after waking up :) something like this is described here, but I do not know where and how to implement it with android -

     

    Well, unless you have another idea to solve this problem?

  • Topic Author
  • Posted
    32 minutes ago, michal85pl said:

     

    I meant the push to the phone, which will bypass silencing the ringer and the do not disturb mode, so that I would be woken up by it in the event of a violation of the alarm, and not find out about it in the morning after waking up :) something like this is described here, but I do not know where and how to implement it with android -

     

    Well, unless you have another idea to solve this problem?

     

    Nope, I don't know how to generate a "critical" push. I suspect that it's something that is hidden by Fibaro and only used for some devices notifications....

    Posted

    Jan,

    how to locate where this error is?

    [31.05.2021] [00:00:00] [ERROR] [QUICKAPP1301]: in Event({"type":"%MIDNIGHT"}) => ..: ./include/EventRunner.lua:2178: bad argument #2 to 'date' (number has no integer representation)

    Please advice,

    //Sjakie

     

     

  • Topic Author
  • Posted
    11 minutes ago, Sjakie said:

    Jan,

    how to locate where this error is?

    [31.05.2021] [00:00:00] [ERROR] [QUICKAPP1301]: in Event({"type":"%MIDNIGHT"}) => ..: ./include/EventRunner.lua:2178: bad argument #2 to 'date' (number has no integer representation)

    Please advice,

    //Sjakie

     

     

    Pushed fix59 that fixes that bug.

    Posted

    @jgab

    in newest version I have this error (I didn't do any changes):

    in Rule:48[trueFor(timeLightsOff,Satna.PohybSatna:isOff & _roomSatnaManual==0) => SwitchOff...]: {"msg":"Error executing instruction:'["SwitchOffL",1]'","ERR":true,"err":"./include/main.lua:76: attempt to perform arithmetic on a nil value","src":"Rule:48[trueFor(timeLightsOff,Satna.PohybSatna:isOff & _roomSatnaManual==0) => SwitchOff...]"}

     

    in this rule:

    Please login or register to see this code.

    It looks that error appeared a few version ago.

  • Topic Author
  • Posted
    33 minutes ago, petrkl12 said:

    @jgab

    in newest version I have this error (I didn't do any changes):

    in Rule:48[trueFor(timeLightsOff,Satna.PohybSatna:isOff & _roomSatnaManual==0) => SwitchOff...]: {"msg":"Error executing instruction:'["SwitchOffL",1]'","ERR":true,"err":"./include/main.lua:76: attempt to perform arithmetic on a nil value","src":"Rule:48[trueFor(timeLightsOff,Satna.PohybSatna:isOff & _roomSatnaManual==0) => SwitchOff...]"}

     

    in this rule:

    Please login or register to see this code.

    It looks that error appeared a few version ago.

    It looks like the SwitchOffL function crashes. 

    The line

    main.lua:76

    refers to the main file in the QA with the rules.

    Is line 76 pointing into SwitchOffL and in that case what is the lua code in that line?

    Posted

    thanks, solved

    Posted

    Thanks Jan for fix 59

    //Sjakie

    Posted

    Jan,

    How to get in my QA a debug log of wich fix  number is the present one?

    Can you advice me something?

    Thanks for your time,

    //Sjakie

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

    Jan,

    How to get in my QA a debug log of wich fix  number is the present one?

    Can you advice me something?

    Thanks for your time,

    //Sjakie

    Lua global E_VERSION and E_FIX

    rule("log('Current version is %s - %s',E_VERSION,E_FIX)")

    Edited by jgab
    Posted

    Thanks!!!

    //Sjakie

    Posted

    Jan,

    I made a typo in date no error in debug, perhaps for a next update?

    /05/161/00:00
     

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