Announcement

Collapse
No announcement yet.

How to log less frequently

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Whitenoise
    replied
    Thank you sir, that solved it. Another dent in the ego

    Cheers

    Leave a comment:


  • randy
    replied
    Originally posted by Whitenoise View Post
    After reinstalling my HS, I get the same issue. I just cant get it to log:
    Click image for larger version  Name:	image.png Views:	0 Size:	45.0 KB ID:	1596626
    If I run this, all that comes into the log is this:
    Click image for larger version  Name:	image.png Views:	0 Size:	24.0 KB ID:	1596627
    I also tried with just some random text instead of the devicevalue. My log settings are:
    Click image for larger version  Name:	image.png Views:	0 Size:	42.8 KB ID:	1596628

    Any Ideas?

    Cheers

    Whitenoise​​
    The only thing I notice is that the Action is disabled.

    Click image for larger version

Name:	27551722-66EA-412F-9803-33232FE15460.jpg
Views:	65
Size:	17.5 KB
ID:	1596717

    Leave a comment:


  • Whitenoise
    replied
    After reinstalling my HS, I get the same issue. I just cant get it to log:
    Click image for larger version

Name:	image.png
Views:	74
Size:	45.0 KB
ID:	1596626
    If I run this, all that comes into the log is this:
    Click image for larger version

Name:	image.png
Views:	71
Size:	24.0 KB
ID:	1596627
    I also tried with just some random text instead of the devicevalue. My log settings are:
    Click image for larger version

Name:	image.png
Views:	69
Size:	42.8 KB
ID:	1596628

    Any Ideas?

    Cheers

    Whitenoise​​

    Leave a comment:


  • Whitenoise
    replied
    My log is now smooth as silk. Thank you all, truly appreciated.

    Cheers

    Whitenoise

    Leave a comment:


  • Uncle Michael
    replied
    Originally posted by Whitenoise View Post
    I now get the values, but without the decimals, with this command:
    &nhs.WriteLog("AnyText", "Device value is " & hs.DeviceValue(163).ToString())
    Any idea how to log the value with decimals?
    Use the function hs.DeviceValueEx
    &nhs.WriteLog("AnyText", "Device value is " & hs.DeviceValueEx(163).ToString())

    Leave a comment:


  • Whitenoise
    replied
    Ok, I did get it to work, and yes it is very embarrassing. I had a Z-wave filter on in the log....

    I now get the values, but without the decimals, with this command:

    &nhs.WriteLog("AnyText", "Device value is " & hs.DeviceValue(163).ToString())

    Any idea how to log the value with decimals?

    Cheers

    Whitenoise

    Leave a comment:


  • Whitenoise
    replied
    This is getting embarrassing. I change the line, still nothing in the log. I run a HS4 on a Raspberry Pi. I saw that you used a dot (.) in the command, I assumed it should be a comma. Anyway, i tried both and with semicolon to be sure. I still only get Z-wave events in the log...

    Click image for larger version

Name:	even2.PNG
Views:	142
Size:	127.6 KB
ID:	1482404
    Click image for larger version

Name:	log.PNG
Views:	128
Size:	156.1 KB
ID:	1482405

    Thank you for your help

    Whitenoise

    Leave a comment:


  • Wade
    replied
    I'm running HS4 and the &nhs.WriteLog command in post #6 works for me.

    Leave a comment:


  • Uncle Michael
    replied
    Originally posted by w.vuyk View Post
    I have understood that writelog is no longer working as immediate command. You would need to change it to &hs.writelogex("Test", "This is a test log entry". "")
    WOW!!

    Just Wow.

    Any explanation for why?
    Is this a bug or is it deliberate?
    Is anyone keeping a list of the traps the have been set in HS4 for the unsuspecting?

    Leave a comment:


  • w.vuyk
    replied
    You are running HS4. I have understood that writelog is no longer working as immediate command. You would need to change it to &hs.writelogex("Test", "This is a test log entry". "")
    Watch the extra parameter. It can be an empty string or a color hex code to color the logline.

    Wim

    Leave a comment:


  • Whitenoise
    replied
    That is correct, there are no errors in log, only spam from a Z-wave node. I even tried this:
    &hs.WriteLog "Test", "This is a test log entry"

    And i tried to run it, but nothing in the log. It must be some setting I dont know of...

    Cheers

    Whitenoise

    Click image for larger version

Name:	event.PNG
Views:	191
Size:	207.0 KB
ID:	1482315

    Leave a comment:


  • Uncle Michael
    replied
    I assume there are no errors in the log.
    What happens if you run the event with the event run icon?

    How about trying something simpler:
    &hs.WriteLog "AnyText",hs.DeviceValue(144)

    Leave a comment:


  • Whitenoise
    replied
    Thank you anyway. I will research some more.

    Whitenoise

    Leave a comment:


  • Whitenoise
    replied
    It was not, I stil get no posts in the log from this.

    Leave a comment:


  • Wade
    replied
    Is Auto-update checked on your log page? I don't have any other ideas. If your syntax were wrong you should be seeing scripting errors in the log. There may be some other global log setting that I'm not thinking of. Maybe check Setup. If none of that helps, hopefully someone else will jump in with suggestions.

    Leave a comment:

Working...
X