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 hour ago, Neo Andersson said:

    @jgabJan, if i have a truefor rule, or a rule with wait function, and I restart the QA, should all these timers reset, or the timers will run off, and finish the job after QA has restarted?

     

    When the QA restarts everything is reset.

    The QA shouldn't restart :-)

    So, if you have a rule that if a window is open for 30min (trueFor) send a message, the timer will be reset when the QA restarts.

    If you really need that to survive a QA restart, you need to save that yourself.

     

    Ex.

    Please login or register to see this code.

     

    Here we use the :last, assuming it's available, but for other properties we can trigger and store the change time  ourself...

    Posted

    @jgabJan, hello. Will you plan to implement the backup possibility into ER5? I would really love to set up an autobackup on some customer's systems. I managed to create backups with my own HTTP calls, but i am not able to disallow saving histroical data while creating backup, so the downloaded file is huge, and i want to avoid saving backups with historical data. Also checking the backup availability / if user has enough space etc/ is important there.

    Posted (edited)

    @jgab This error I don't understand.

    There are multiple triggers to set this GV and the GV is listed in the tab "variable"

    [14.12.2023] [08:31:21] [WARNING] [QUICKAPP1062]: Variable Gordijn_Licht_Ochtend not found

    Edited by Sjakie
    removed error
  • Topic Author
  • Posted
    2 hours ago, Sjakie said:

    @jgab This error I don't understand.

    There are multiple triggers to set this GV and the GV is listed in the tab "variable"

    [14.12.2023] [08:31:21] [WARNING] [QUICKAPP1062]: Variable Gordijn_Licht_Ochtend not found

     

    Well, It's not my message. It's fibaro that logs that if you do a self:getVariable("Gordijn_Licht_Ochtend")

    and the quickAppVariable "Gordijn_Licht_Ochtend" doesn't exist.

     

    Do you have a quickAppVariable named "Gordijn_Licht_Ochtend" ?

     

    If not, do you use $$Gordijn_Licht_Ochtend. somewhere in a rule?

    Because that's translated to a self:getVariable("Gordijn_Licht_Ochtend").

    18 hours ago, Neo Andersson said:

    @jgabJan, hello. Will you plan to implement the backup possibility into ER5? I would really love to set up an autobackup on some customer's systems. I managed to create backups with my own HTTP calls, but i am not able to disallow saving histroical data while creating backup, so the downloaded file is huge, and i want to avoid saving backups with historical data. Also checking the backup availability / if user has enough space etc/ is important there.

     

    Well, I don't have an answer to the history backup.

     

    I plan to come up with some optional modules for ER5 so I don't have to include everything and the kitchen sink...

    • Like 1
  • Topic Author
  • Posted (edited)

    Try this, if it works I will add the ask function  to ER5

     

    Inside main()

     

    Please login or register to see this code.

     

    The last argument to ask, 10 in the example is the timeout in seconds.

    ask returns true or false depending on if user chose Yes" or "No"

    Interactive push doesn't seem to return anything when "No" is pressed. Instead we timeout after the specified number of seconds, 10s in this case, and return false.

     

    and we can make rules with it. ex.

    Please login or register to see this code.

     

    Edited by jgab
    • Thanks 1
    Posted
    5 hours ago, jgab said:

     

    Well, It's not my message. It's fibaro that logs that if you do a self:getVariable("Gordijn_Licht_Ochtend")

    and the quickAppVariable "Gordijn_Licht_Ochtend" doesn't exist.

     

    Do you have a quickAppVariable named "Gordijn_Licht_Ochtend" ?

     

    If not, do you use $$Gordijn_Licht_Ochtend. somewhere in a rule?

    Because that's translated to a self:getVariable("Gordijn_Licht_Ochtend").

     

    Well, I don't have an answer to the history backup.

     

    I plan to come up with some optional modules for ER5 so I don't have to include everything and the kitchen sink...

    @jgab Well, meanwhile @m.roszak   helped me out..this is the parametrer that should be used when doing the backup

     

    Please login or register to see this code.

    so it won't download historical data 

    • Like 1
    Posted
    On 12/11/2023 at 10:44 AM, jgab said:

    Well, your (virtual) deviceIds has nothing to do with userIds so you need a mapping table

    Please login or register to see this code.

     

    So, USER(name) is an existing function that returns the HC3 user with the name name. It returns the whole struct, like you get from swagger.

    Then we just retrieve the .id that is the user Id and map it to the virtual device id

    Please login or register to see this code.

    should then work...

     

    Actually, there is a small bug - but it will work in v0.82 coming later this afternoon.

    Hi Jan

     

    I integrated the PeopleMap and it works in Rules with One person being detected like this,

    Please login or register to see this code.

     

    Having Rule returning more than one person at home - i cant see how to use the table

    I tried wrap it in like this, but no success

    Please login or register to see this code.


     

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

    Hi Jan

     

    I integrated the PeopleMap and it works in Rules with One person being detected like this,

    Please login or register to see this code.

     

    Having Rule returning more than one person at home - i cant see how to use the table

    I tried wrap it in like this, but no success

    Please login or register to see this code.

     

     

    Please login or register to see this code.

     

    • Thanks 1
    Posted (edited)
    1 hour ago, jgab said:

     

     

    Please login or register to see this code.

     

    How can i use Peoplemap with the ASK functionality ?
     

    Please login or register to see this code.

     

    At this Rule - some bonus characters like [" are added to the Output, can this be avoided ?. 

    Please login or register to see this code.

    Some at Home ["Sxxx","EX"]

    Edited by ChristianSogaard
    Typo
    Posted (edited)

    Jan can we somehow get admin's paswword with a rule, or a lua code? I need it when creating auto backups, so would be nice if i did not need use it in hardcoded way on each customer's systems

     

    Edited by Neo Andersson
  • Topic Author
  • Posted (edited)
    32 minutes ago, Neo Andersson said:

    Jan can we somehow get admin's paswword with a rule, or a lua code? I need it when creating auto backups, so would be nice if i did not need use it in hardcoded way on each customer's systems

     

    where should the password be stored so people can't find it?

    I guess you don't want to put it in a Fibaro globalVariable or a quickAppVariable?

    Edited by jgab
    Posted

    Guys is am I the only one with this error?

    Besides a few not requested restarts of the HC3 this is a long time ago for this errror

    Please login or register to see this code.

     

    Posted
    1 hour ago, Sjakie said:

    Guys is am I the only one with this error?

    Besides a few not requested restarts of the HC3 this is a long time ago for this errror

    Please login or register to see this code.

     

    I am running 5 systems with ER5. Never noticed similar issues. 

    20 hours ago, jgab said:

     

    where should the password be stored so people can't find it?

    I guess you don't want to put it in a Fibaro globalVariable or a quickAppVariable?

    I need to put is somewhere. At this moment it is in QA variables, as for my Backup manager QA. In ER5 probably i will hardcode it

  • Topic Author
  • Posted
    49 minutes ago, Neo Andersson said:

    I am running 5 systems with ER5. Never noticed similar issues. 

    I need to put is somewhere. At this moment it is in QA variables, as for my Backup manager QA. In ER5 probably i will hardcode it

    You don't need admin password to do backup,

    try something like

    Please login or register to see this code.

     

    Posted
    5 minutes ago, jgab said:

    You don't need admin password to do backup,

    try something like

    Please login or register to see this code.

     

    Jan, i am not familiar with proxys approach, but even if i was, i think this example is for getting backups, not creating a new one. Am i right? When posting, so when we create a new backup, we need to provide credentials i think, at least that is what you told me in another topic.

  • Topic Author
  • Posted
    1 hour ago, Neo Andersson said:

    Jan, i am not familiar with proxys approach, but even if i was, i think this example is for getting backups, not creating a new one. Am i right? When posting, so when we create a new backup, we need to provide credentials i think, at least that is what you told me in another topic.

    Nop, you can do post and put too...

    Posted
    5 minutes ago, jgab said:

    Nop, you can do post and put too...

    Jan, just a bit more explanationi is needed please. What is that proxy server? Is that a Fibaro inbuilt proxy, or should i have one on my network? Sorry for stupid questions, but i am afriad of using a code that i dont understand, so i won't have control over it.

  • Topic Author
  • Posted

    It's provided by the HC3 - it's always there.

    Posted

    @jgab I want to come back on the HUE dimmer.

    Now I connect the dimmer on 3 HUE lights. I guess HC3 is not acting as the HUE dimmer does

    In ER5 I create rules:

    Please login or register to see this code.

    Below I pressed key 1 and key 4

    As you can see it only gave one time in debug pressed!!!

    In my opinion it should by pressed>>released and so on

    I will try to use both pressed and released in my rules

     

    Please login or register to see this code.

     

    in history ingedrukt = Pressed

    Please login or register to see this code.

     

    Posted (edited)
    1 hour ago, jgab said:

    It's provided by the HC3 - it's always there.

    Jan, it is working for /backups endpoint, but it doesnt work for others, like the examples below, one for canCreateBackup 

     

    Please login or register to see this code.

    the example above returns empty data. I tried also with some header combinations but no success.

    Please login or register to see this attachment.

     

    Also tried to delete some backups , but no success. In old fashion way, with hardcoded credentials i used to use this for deletion. and its working

     

    Please login or register to see this code.

     

     

     

    Edited by Neo Andersson

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