Announcement

Collapse
No announcement yet.

How to log less frequently

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

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

    Comment


      #17
      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:	110
Size:	127.6 KB
ID:	1482404
      Click image for larger version

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

      Thank you for your help

      Whitenoise

      Comment


        #18
        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

        Comment


          #19
          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())

          Mike____________________________________________________________ __________________
          HS3 Pro Edition 3.0.0.548, NUC i3

          HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

          Comment


            #20
            My log is now smooth as silk. Thank you all, truly appreciated.

            Cheers

            Whitenoise

            Comment


              #21
              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:	41
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:	39
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:	39
Size:	42.8 KB
ID:	1596628

              Any Ideas?

              Cheers

              Whitenoise​​

              Comment


                #22
                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:	34
Size:	17.5 KB
ID:	1596717
                HS4 Pro, 4.2.18.9 Windows 10 pro, Supermicro LP Xeon

                Comment


                  #23
                  Thank you sir, that solved it. Another dent in the ego

                  Cheers

                  Comment

                  Working...
                  X