Announcement

Collapse
No announcement yet.

Any Event Conditions in the API

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

    Any Event Conditions in the API

    I had never used event conditions in prior versions of HS, but did have to set some properties to indicate that conditions were not supported by the plugin. I looked today at the SDK and I saw only triggers and actions for event support. HS4 does has AND IF which looks like conditions to me. Does it mean that conditions can only be native (e.g. time, device value) and plugin type conditions no longer exist?

    #2
    Michael, I

    In short, no, any trigger can be a condition as well by overriding the CanBeCondition property with True in the triggertype for the plugin. This way the triggertype will also show in the conditions list (AND).
    AND IF is really starting a new trigger and not a condtion pur sang.

    Wim
    -- Wim

    Plugins:RFXCOM, HSTouch Server, Squeezebox, BLGData, Restart, Jon00's Perfmon and Network monitor, WeatherXML, BLBackup, TenScripting, BC4, Pushover, PHLocation, JowiHue, Zwave, Sonos
    650 devices ---- 336 events ----- 40 scripts

    Comment


      #3
      That was sure easy. Thank You.

      Comment

      Working...
      X