Announcement

Collapse
No announcement yet.

Disable Event logging via script?

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

    Disable Event logging via script?

    This one should be fairly simple.

    Is there a scripting method to turn off logging for a newly created event? If it's discussed in the help(less) then it's escaped me.
    Real courage is not securing your Wi-Fi network.

    #2
    It's in the help files:
    Attached Files
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      From what I can see, that tells you what it is set to, but does not provide a method to change it.

      Cheers
      Al
      HS 4.2.8.0: 2134 Devices 1252 Events
      Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

      Comment


        #4
        If you use Rupp's method, you would essentially have to load the event, change the flag, then save the event. I dont think that's possible unless your script actually created the event in the first place.
        HS4Pro on a Raspberry Pi4
        54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
        Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

        HSTouch Clients: 1 Android

        Comment


          #5
          As far as I can see, that's a readable flag, not a means to set the flag.

          Or Not.

          I think I've got the idea.
          Last edited by Wadenut; December 9, 2014, 04:57 PM.
          Real courage is not securing your Wi-Fi network.

          Comment


            #6
            So, something like this?

            Sub CreateEvent(EvName As String, EvSub As String, EvGroup As String, Enable As Boolean)
            Dim I As Integer
            Try
            If Not hs.EventExists(EvName) Then
            I = hs.NewEventGetRef(EvName,EvGroup,"")
            Dim Evx As new strEventData

            Evx.Event_Ref = I
            Evx.Event_Name = EvName
            '
            ' And so on
            '
            Evx.Flag_Do_Not_Log = True
            End If
            Catch ex As Exception
            hs.Writelog("tst","Error Creating Event " & EvName)
            hs.Writelog("tst",ex.Message)
            End Try
            End Sub
            Real courage is not securing your Wi-Fi network.

            Comment


              #7
              Nope. Not unless there's a means of writing the structure back to an existing event. Reading it is the easy part. Evx = hs.Event_Info(I), but as far as I can see, it's read only.
              Real courage is not securing your Wi-Fi network.

              Comment


                #8
                So, no ideas?
                Real courage is not securing your Wi-Fi network.

                Comment


                  #9
                  Looks like it's time for an enhancement request in bugzilla

                  Cheers
                  Al
                  HS 4.2.8.0: 2134 Devices 1252 Events
                  Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                  Comment


                    #10
                    Originally posted by sparkman View Post
                    Looks like it's time for an enhancement request in bugzilla

                    Cheers
                    Al
                    Another one.
                    Real courage is not securing your Wi-Fi network.

                    Comment


                      #11
                      Did you ever figure anything out concerning building a script to turn off logging or turn it back on?

                      Most of the time I have event logging turned off on heavily repetitive events. I would like to build a script that would turn them on and when i need logging and then once I am done troubleshooting turn them off again.
                      Billy

                      Comment

                      Working...
                      X