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
9 minutes ago, jgab said:

Yes,

and if. you set it to nil the next rules will not be tagged.

 

Wow, that's a very amazing feature! Does the rule of nill tag stop when tag(winter) is activated?

  • Topic Author
  • Posted
    Just now, Earybeongbeong7 said:

     

    Wow, that's a very amazing feature! Does the rule of nill tag stop when tag(winter) is activated?

    No, only tagged (~= nil)  rules are affected by enable/disable

    Posted (edited)
    11 minutes ago, jgab said:

    No, only tagged (~= nil)  rules are affected by enable/disable

     

    Thank you for answer.

     

    I enjoy every time with amazing features.

     

    Do you have any plans to make WIKI for all functions?

     

    It seems that accessibility is inferior because I keep searching for the contents of the forum each time or receiving answers through questions.

     

    I organize the rules I learned here and organize them using a program called Notion.

     

    It can be managed like a WIKI page and can be shared.

     

    However, please understand that it is in Korean.

    Edited by Earybeongbeong7
  • Topic Author
  • Posted
    Just now, Earybeongbeong7 said:

     

    Thank you for answer.

     

    I enjoy every time with amazing features.

     

    Do you have any plans to make WIKI for all functions?

     

    It seems that accessibility is inferior because I keep searching for the contents of the forum each time or receiving answers through questions.

     

    I organize the rules I learned here and organize them using a program called Notion.

     

    It can be managed like a WIKI page and can be shared.

     

    Please login or register to see this link.

     

    However, please understand that it is in Korean.

     

    I would really like that the Fibaro forum had a wiki so the members could collaborate on documenting things and sharing tips. A topic thread is not very good at organising stuff. In my "HC3 tips and tricks" thread I try/tried to keep the first post like an index with pointer to interesting posts in the thread but it's not easy to maintain - and only I have write access to the first post.

    External wiki? yeah, maybe but it's always hard to keep spread out resources up to date....

    • Like 1
    Posted
    3 minutes ago, jgab said:

     

    I would really like that the Fibaro forum had a wiki so the members could collaborate on documenting things and sharing tips. A topic thread is not very good at organising stuff. In my "HC3 tips and tricks" thread I try/tried to keep the first post like an index with pointer to interesting posts in the thread but it's not easy to maintain - and only I have write access to the first post.

    External wiki? yeah, maybe but it's always hard to keep spread out resources up to date....

     

    Thanks for the much effort.

    On 1/26/2021 at 8:11 PM, jgab said:

    ER has the concept of rule sections that makes it easy to group rules. A feature that has been available in ER for a long time.

    Please login or register to see this code.

     

     

    Does only one tag work?

    For example, in the above rule, if the summer tag starts after Winter, does the winter tag stop?

     

    Posted

    Does only one tag work?

    For example, in the above rule, if the summer tag starts after Winter, does the winter tag stop?

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

    Does only one tag work?

    For example, in the above rule, if the summer tag starts after Winter, does the winter tag stop?

    Yes, if you enable with enable(<name>,true) all other rules with tags will be disabled.

    You can also do it explicitly like enable(<tag1>);disable(<tag2>);disable(<tag3>)

    Posted
    9 minutes ago, jgab said:

    Yes, if you enable with enable(<name>,true) all other rules with tags will be disabled.

    You can also do it explicitly like enable(<tag1>);disable(<tag2>);disable(<tag3>)

     

    That means it can be partially run?

     

    enable(<tag1>);enable(<tag2>);disable(<tag3>); disable(<tag4>); enable(<tag5>)

    Posted

    Jan,

    What kind offcause can give this error?

    [28.01.2021] [10:59:39] [ERROR] [QUICKAPP797]: refreshStates:End of file

     

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

    Jan,

    What kind offcause can give this error?

    [28.01.2021] [10:59:39] [ERROR] [QUICKAPP797]: refreshStates:End of file

     

    Your HC3 didn't respond correctly to an api call (refreshstates) - maybe too busy? ER4 will report and continue. If you see the error repeating every second you have a serious problem where the HC3 stopped responding to api call all together...

    Posted

    Hi @jgab 

     

    thank you for your amazing work on 

    Please login or register to see this link.

    I was wondering if is possible to have triggers in EV4 from the HC3 MQTT Client?  

    and also do publish MQTT topics ?

     

     

  • Topic Author
  • Posted
    9 minutes ago, ChristianSogaard said:

    Hi @jgab 

     

    thank you for your amazing work on 

    Please login or register to see this link.

    I was wondering if is possible to have triggers in EV4 from the HC3 MQTT Client?  

    and also do publish MQTT topics ?

    Yes, with a bit of code

    If you have a MQTT message handler

    Please login or register to see this code.

    If the event look like (Example from <

    Please login or register to see this link.

    >)

    Please login or register to see this code.

    We can pick it up with a ER rule with

    Please login or register to see this code.

    Exactly how you want to recode the MQTT event to an ER event depends on usage. Note that the 'type' field of a MQTT event is a number and the 'type' field for an ER event is a string so we need another mapping

     

    To publish something, given that you have stored the MQTT client in self.client like in the example above:

    Please login or register to see this code.

     

     

    • Thanks 1
    Posted
    27 minutes ago, jgab said:

    Yes, with a bit of code

    If you have a MQTT message handler

    Please login or register to see this code.

    If the event look like (Example from <

    Please login or register to see this link.

    >)

    Please login or register to see this code.

    We can pick it up with a ER rule with

    Please login or register to see this code.

    Exactly how you want to recode the MQTT event to an ER event depends on usage. Note that the 'type' field of a MQTT event is a number and the 'type' field for an ER event is a string so we need another mapping

     

    To publish something, given that you have stored the MQTT client in self.client like in the example above:

    Please login or register to see this code.

     

     

    Hi Jan

     

    I have a QA with device ID 1117 where this function is called  and Eventrunner in another QA.

     

    I see the "onMessage" in the log each time a topic is posted to the MQTT,

    I dont see the {"payload": in eventrunner. - does it need to be in same QA?

     

    I still lack the proper understanding of using the self and UpdateProperty that could be usefull here..

    so you can point me in a direction I could read, i would be really great.?

     

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    47 minutes ago, ChristianSogaard said:

    Hi Jan

     

    I have a QA with device ID 1117 where this function is called  and Eventrunner in another QA.

     

    I see the "onMessage" in the log each time a topic is posted to the MQTT,

    I dont see the {"payload": in eventrunner. - does it need to be in same QA?

     

    I still lack the proper understanding of using the self and UpdateProperty that could be usefull here..

    so you can point me in a direction I could read, i would be really great.?

     

    Please login or register to see this code.

     

    Ok, I understand.

    Do you get an error from self:post or are you using my toolbox library?

    If you do you can replace self:post({...}) with

    self:postRemote(ID_of_ER_QA,{...}) 

    and it will send the event to the ER QA.

    1 minute ago, jgab said:

    Ok, I understand.

    Do you get an error from self:post or are you using my toolbox library?

    If you do you can replace self:post({...}) with

    self:postRemote(ID_of_ER_QA,{...}) 

    and it will send the event to the ER QA.

    If not you can implement postRemote yourself

    Please login or register to see this code.

     

    Posted
    19 minutes ago, jgab said:

    Ok, I understand.

    Do you get an error from self:post or are you using my toolbox library?

    If you do you can replace self:post({...}) with

    self:postRemote(ID_of_ER_QA,{...}) 

    and it will send the event to the ER QA.

    If not you can implement postRemote yourself

    Please login or register to see this code.

     

    I dont see any errors in the Log.

    I think is best to learn to implement you toolbox - does this seems correct?

    Please login or register to see this attachment.

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    4 minutes ago, ChristianSogaard said:

    I dont see any errors in the Log.

    I think is best to learn to implement you toolbox - does this seems correct?

    Please login or register to see this attachment.

    Please login or register to see this code.

     

     

    Just uncomment the evens module

    Please login or register to see this code.

     

    • Like 1
    Posted
    1 minute ago, jgab said:

     

    Just uncomment the evens module

    Please login or register to see this code.

     

    Please login or register to see this code.

    Do you know why this happens ?

    Posted
    22 minutes ago, ChristianSogaard said:

    Please login or register to see this code.

    Do you know why this happens ?

    I tried downloading the newest fibaroapiHC3.lua - this also gives a "unexpected symbol near '<'" 

    not sure how to fix this?

     

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    29 minutes ago, ChristianSogaard said:

    I tried downloading the newest fibaroapiHC3.lua - this also gives a "unexpected symbol near '<'" 

    not sure how to fix this?

     

    Please login or register to see this code.

     

    Open fibaroapiHC3.lua and run it.

    You should get a better error message and try to see what line is offending (line 7 is in the middle of a multi-line comment in the original file so that doesn't make sense)

    So, I can't repeat your problem.

     

    Can't see where the name'fibarapiHC3.lua' comes from either.

    You use the latest plugin? 

    Please login or register to see this link.

     

    Posted
    11 minutes ago, jgab said:

    Open fibaroapiHC3.lua and run it.

    You should get a better error message and try to see what line is offending (line 7 is in the middle of a multi-line comment in the original file so that doesn't make sense)

    So, I can't repeat your problem.

     

    Can't see where the name'fibarapiHC3.lua' comes from either.

    You use the latest plugin? 

    Please login or register to see this link.

     

    Thank you Jan. You cant repeat my problem because you didnt do the same stupid error as I did. ???

    Toolbox is downloaded.

     

    Need to look into this

    Please login or register to see this code.

     

     

    [30.01.2021] [13:58:02] |[35mSYS  [0m|: HC3 SDK v0.158
    [30.01.2021] [13:58:02] |[35mSYS  [0m|: Created Event server at 192.168.201.236:6872
    [30.01.2021] [13:58:02] |[31;1mERROR[0m|: Code crashed: cannot open Toolbox/Toolbox_basic.lua: No such file or directory
    cannot open Toolbox/Toolbox_basic.lua: No such file or directory

     

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