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

1 hour ago, jgab said:

\xE2\x8C\x9A are codes that a "..." string replaces with the byte values.

That substitution doesn't happen in [[....]] strings

Try
 

Please login or register to see this code.

 

 

rule([[#notify_power => log('Uptime *0.0f годин', (((ostime () -api.get('/settings/info/").serverStatus))/60)/60); fibaro.call(teleg_fastvd, 'sendMessage', fmt("\xE2\x8C\x9A Uptime
сисеми 80.0f годин', (((ostime () -api.get('/settings/info/*).serverStatus))/60/60),

 

error(

Please login or register to see this attachment.

Link to comment
Share on other sites

  • Topic Author
  • Sorry, it was the grey box with code that was the solution ... use fmt with the watchIcon value

     

    Please login or register to see this code.

     

     

     

    Edited by jgab
    Link to comment
    Share on other sites

    26 minutes ago, jgab said:

    Sorry, it was the grey box with code that was the solution ... use fmt with the watchIcon value

     

    Please login or register to see this code.

     

    26 minutes ago, jgab said:

     

     

     

     

     

    error(

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Edited by fastvd
    Link to comment
    Share on other sites

  • Topic Author
  • In your log it looks like 

    fmt (watchIcon 'Uptime системи *0.0f годин', (((ostime()-api.get('/settings/info/").serverStatus))/60)/60)

     

    but it should be 

    fmt("%s Uptime сисеми 0.0%f годин",watchIcon,(ostime.time()-api.get('/settings/info/').serverStatus)/3600)

     

    Link to comment
    Share on other sites

    15 minutes ago, jgab said:

    In your log it looks like 

    fmt (watchIcon 'Uptime системи *0.0f годин', (((ostime()-api.get('/settings/info/").serverStatus))/60)/60)

     

    but it should be 

    fmt("%s Uptime сисеми 0.0%f годин",watchIcon,(ostime.time()-api.get('/settings/info/').serverStatus)/3600)

     

     

     

    Please login or register to see this attachment.

    this work, thanks!

    Edited by fastvd
    Link to comment
    Share on other sites

  • Topic Author
  • 7 hours ago, lux said:

    @jgabIs there a simpler way for 

    Please login or register to see this link.

    If that scene works it should be able to replace it with these ER rules

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    27 minutes ago, jgab said:

    If that scene works it should be able to replace it with these ER rules

    Please login or register to see this code.

     


    Thank You!

    Link to comment
    Share on other sites

    • 3 weeks later...

    Jan,

    I want to use some information from Home Assistent in HC3 because I have a device what is not compatible, Aqara FP1 Human radar

    It's working nice if I use HA to switch light on/off but I want to do that in ER where all my rules are.

    In Node Red I have a flow: device>>>HC3>>>

    -device selected from list>>state=enter

    In debug I see some info

    -HC3 name>>IP adres>>>log in name>>password

    In browser I can open NodeRed

    In ER I have enabled your Node Red lines :

     

    Nodered.connect("http://192.168.1.194:6335/ER_HC3")

    >>Result no visual reporting in debug

     

    Can you please write rule how to use the info from NR?

    Thanks in advance

     

    Link to comment
    Share on other sites

    Hello Jan! Tell me how to track an error in ER4 in GENERAL and at the same time give a message in Telegram...the essence of the problem: from time to time some Zigbee devices disappear from the system and then the entire heating logic breaks down...and then we see an error in the console... so the idea came not to track a specific error, but ALL in general... and then we sit down at the console and see what has already broken!

    Link to comment
    Share on other sites

  • Topic Author
  • 3 hours ago, fastvd said:

    Hello Jan! Tell me how to track an error in ER4 in GENERAL and at the same time give a message in Telegram...the essence of the problem: from time to time some Zigbee devices disappear from the system and then the entire heating logic breaks down...and then we see an error in the console... so the idea came not to track a specific error, but ALL in general... and then we sit down at the console and see what has already broken!

    to capture ER errors do

    Please login or register to see this code.

    I don't think calling a non-existing device causes an error though...

    Edited by jgab
    Link to comment
    Share on other sites

    34 minutes ago, jgab said:

    to capture ER errors do

    Please login or register to see this code.

    I don't think calling a non-existing device causes an error though...

    1) 100% that one of my automations is breaking...if necessary, I can illustrate...but that's not the point
    2) there is a clear grammatical error in your rule, which does not trigger the rule...
    rule("#er_error{msg=msg} => log('Error:%s,msg)") - missing closure '

    3) well, as far as I understood, %s should extract the error text itself, but it also does not work (

     

    Link to comment
    Share on other sites

  • Topic Author
  • 1 hour ago, fastvd said:

    1) 100% that one of my automations is breaking...if necessary, I can illustrate...but that's not the point
    2) there is a clear grammatical error in your rule, which does not trigger the rule...
    rule("#er_error{msg=msg} => log('Error:%s,msg)") - missing closure '

    3) well, as far as I understood, %s should extract the error text itself, but it also does not work (

     

    Sorry, was a bit fast in typing this morning - I've edited the previous post (msg=msg should be  msg='$msg')

    • Like 1
    Link to comment
    Share on other sites

    Jan I have a problem, I use:

    Please login or register to see this code.

    Today at 07:30 I noticed the GV is still "Avond_Laat" instead of "Morgen_Vroeg"

    it skipped two time zones.

     

    Link to comment
    Share on other sites

  • Topic Author
  • I can't explain that - did the QA restart/crash? When you restart, do you see the rules load?

    Link to comment
    Share on other sites

    Nothing passed QA changed Avon_Laat was more or less the last action in debug.

    After restart QA rules are loading and values normal as far as I can see.

    This is the second time I notice Avond_Laat was still active in the morning.

     

    Link to comment
    Share on other sites

  • Topic Author
  • So it seems like the QA crashes and don't restart, which is strange - is the box stable otherwise?

    Link to comment
    Share on other sites

    Jan, if QA crashes It will try to restart. If QA restart or try to restart it will send push and telegram>>> Nothing between bedtime and breakfast.

    I did't notice any instability with HC3.

     

    Link to comment
    Share on other sites

    Box is stable

    Ram 51% 7% Cache 28% Buffer

    CPU 10-20 peak 60 

    5.140.17

    ER .994

    Link to comment
    Share on other sites

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