I've worked with triggers in my plug-ins but never (until today) had cause to use HasConditions making a trigger selectable as a condition.
I added a new trigger (2) and for that trigger number set HasConditions to true and in BuildTriggerUI I've formatted my drop down selections accordingly by trigger number.
This works as expected and trigger(2) shows when adding a second item to an event (AND IF) and trigger(1) does not show.
Due to the nature of the conditions, they are not ideally suited to being used as initial triggers however I can't see a way to prevent trigger(2) from displaying in the IF dropdown (1st item in an event).
The only plug-in that I have on my live system that supports triggers being a condition is Sonos which exhibits this same behaviour in that a condition can be selected as the 1st item in an event. (See attached screenshot).
I suppose this event would work OK but not ideal if HS3 has to constantly evaluate if the Hallway Sonos device Is Playing in order to fire the event.
Just wondered if there is a way to make a trigger "condition only" and I'm just being thick an not able to see it.
Paul..
I added a new trigger (2) and for that trigger number set HasConditions to true and in BuildTriggerUI I've formatted my drop down selections accordingly by trigger number.
This works as expected and trigger(2) shows when adding a second item to an event (AND IF) and trigger(1) does not show.
Due to the nature of the conditions, they are not ideally suited to being used as initial triggers however I can't see a way to prevent trigger(2) from displaying in the IF dropdown (1st item in an event).
The only plug-in that I have on my live system that supports triggers being a condition is Sonos which exhibits this same behaviour in that a condition can be selected as the 1st item in an event. (See attached screenshot).
I suppose this event would work OK but not ideal if HS3 has to constantly evaluate if the Hallway Sonos device Is Playing in order to fire the event.
Just wondered if there is a way to make a trigger "condition only" and I'm just being thick an not able to see it.
Paul..
Comment