Announcement

Collapse
No announcement yet.

Enable or Disable an Event Plugin

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

    Enable or Disable an Event Plugin

    Thought I'd post this simple plugin I wrote for myself in case it could be useful for anybody else. This plugin lets you enable or disable HomeSeer Events from an Event. Hopefully it is fairly self explanatory from this screenshot.


    Click image for larger version

Name:	drhsEventEnabler.jpg
Views:	1
Size:	69.0 KB
ID:	1207055

    During testing I found that the plugin does not function correctly on HS 3.0.0.96, because of a HomeSeer bug (http://bugzilla.homeseer.com/bugzill...ug.cgi?id=1439). However it works perfectly on 3.0.0.143 and above, both Windows & Linux.

    To install, unzip the drhsEventEnabler.exe file and copy it to your HomeSeer directory. Then on the Plugins/Manage page, enable drhsEventEnabler.

    Cheers
    -David
    HSPI_drhs_EventEnabler.zip

    #2
    Would it be possible to allow this to disable the event it is being called in? I would like to disable some events after they are run.

    Comment


      #3
      Originally posted by pmendiuk View Post
      Would it be possible to allow this to disable the event it is being called in? I would like to disable some events after they are run.
      There is a scripting command that will disable an event.
      You could try including an immediate script command [ &hs.DisableEvent "<event name>" ] as the last event action, after a wait of a second or two. I've never tried to disable a running event that way, but it might work.
      If it doesn't, you could try having the event run another event that has the immediate script command action.

      Mike____________________________________________________________ __________________
      HS3 Pro Edition 3.0.0.548, NUC i3

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

      Comment


        #4
        I did try that as immediate script without a delay and it didn't work. I loaded up the easy trigger plugin and I could disable the running event.

        Comment


          #5
          Hello,

          I have an event which is manually run and which I normally run from another event, but which I want to disable.
          I noticed when the event is disabled ( via this plugin or with the &hs.DisableEvent "event name"), it is still runs when the other event "runs" the disabled event. Is there a way to disable an event, so even when being run from another event it wont run.

          Thanks,
          Cor





          Comment


            #6
            Originally posted by Corvl1 View Post
            I have an event which is manually run and which I normally run from another event, but which I want to disable.
            I noticed when the event is disabled ( via this plugin or with the &hs.DisableEvent "event name"), it is still runs when the other event "runs" the disabled event. Is there a way to disable an event, so even when being run from another event it wont run.
            The easiest way I've found is, instead of disabling the event, create a virtual device that you turn on (or off) when you do not want the event to run. Add a condition to the event that the device is off (or on). Then, in the calling event select the advanced icon and choose 'Run only when conditions are true'

            Mike____________________________________________________________ __________________
            HS3 Pro Edition 3.0.0.548, NUC i3

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

            Comment


              #7
              Thanks Uncle Michael . Nice simple solution. From a completely different angle - just set a flag! You opened my eyes.
              Last edited by HouseholdGeek; May 17, 2020, 06:41 PM. Reason: credit where it's due.

              Comment

              Working...
              X