Disabling Event Handlers - User
-
Hi,
I can't see how to give users permissions to Enable/disable event handlers, that have been created by admin.
I gave access to the Event Handlers menu item, which is there, but I can't see any options in the actual individual event handlers, which are not visible.Does anyone know?
(V3) -
@hayden_AUS
What you're looking for is:Requires global Event Handler privileges
Unfortunately, there is nothing clear to me right this minute that stands out as being able to make it permissable - to the extent I fear it's hardcoded for superadmin. I've dug through the source and nothing has made itself known yet...Fox
-
@MattFox Hi Matt, the application is a cold room used as a grow room.
The room has set-points for alarms and also automation to turn off grow lights, when the temp gets to high.
But we need to disable all the alarms and automation when they have the doors open for loading/unloading, using an easy method.I might try to setup the Event Handlers using external context points (maybe a virtual binary point,or physical switch) and scripts, if disabling the event handlers by a user is not possible.
...or just create another user with superadmin privileges.
Thanks anyway for looking at it...
-
@hayden_AUS if you can utilise extra points, then definitely try triggering a script instead and using an if statement logic based upon a virtual datapoint value that your users can amend. This will be a means to enable and disable the behaviour inside your script OR letting the event handler also fire conditionally based upon your alarm value being high and your custom user value being low.
That might give you the leverage you needEdit again: Set your alarm points fed via metapoints using the control points plus your user point and thus return a value!
Fox
-
@hayden_AUS we added permissions like this in Mango 4+, but there are only 2 levels for Event Handlers. View and Edit. If you wanted a user to be able to disable the event handler they would need to have the edit permission for that handler. Which would allow them to change any setting on it.
In Mango 3 Event Handlers are a superadmin thing only.
What @MattFox is suggesting is a common pattern that we use also, put your alarming logic inside Meta points and then set a basic event detector (State Detector) on the Meta point which can raise the event and handle it.
-
@terrypacker thanks for helping out in the forum, glad to see you're still around!
-
@terrypacker Thanks, I will set them up using meta points as you suggest.