Announcement

Collapse
No announcement yet.

Any way to tell if a trigger is a condition?

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

    Any way to tell if a trigger is a condition?

    I've got a trigger with a few sub-triggers which can all be conditions, but I'd like to show a different string for the sub-trigger names depending on whether the trigger is presently a condition, since the triggers fire when state changes but conditions check present state. I've looked at all the properties and methods available in AbstractTriggerType but I haven't found any way to check whether the currently configured trigger is a condition or not. Is this possible?

    #2
    there is a property that indicates if the trigger can also be used as condition

    Code:
    Public Overrides ReadOnly Property CanBeCondition As Boolean
    Get
    Return False
    End Get
    End Property
    Mark

    HS3 Pro 4.2.17.0
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3| Ultra1Wire3 | RFXCOM | NetCAM | HS MyQ | BLRadar | BLDenon | Jon00 Charting | Jon00 Links
    Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

    Comment


      #3
      Right, I've got the trigger working properly as a condition, I just want to see at UI-render-time whether the current trigger instance is a condition, so I can change the sub-trigger names.

      Comment


        #4
        https://github.com/HomeSeer/Plugin-SDK/issues/277
        https://github.com/HomeSeer/Plugin-SDK/issues/237

        Comment

        Working...
        X