Action¶
-
class
aaa_modules.layout_model.actions.action.
Action
[source]¶ The base class for all zone actions. An action is invoked when an event is triggered (e.g. when a motion sensor is turned on).
An action may rely on the states of one or more sensors in the zone.
-
onAction
(events, zone, getZoneByIdFn)[source]¶ Subclass must override this method with its own handling.
Parameters: - events (scope.events) –
- zone (Zone) – the zone where the action takes place
- getZoneByIdFn (lambda) – a function that returns a Zone object given a zone id string
Returns: True if the event is processed; False otherwise.
-